Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 670
    • Issues 670
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 181
    • Merge Requests 181
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Issues
  • #2261

Closed
Open
Opened Sep 24, 2013 by A. Wilcox@awilcoxDeveloper

'ruby' package is worthless without 'ruby-gems'

Environment

New server with freshly downloaded Alpine 2.6.4 mini ISO.

Linux ind-web010 3.10.10-1-grsec #2-Alpine SMP Tue Sep 3 07:05:53 UTC 2013 x86_64 Linux

Issue

Adding the ‘ruby’ package installs an interpreter that cannot be started.

Steps to reproduce

ind-web010:~# apk add ruby
(1/7) Installing libffi (3.0.13-r0)
(2/7) Installing gdbm (1.10-r0)
(3/7) Installing ncurses-base (5.9-r1)
(4/7) Installing ncurses-libs (5.9-r1)
(5/7) Installing readline (6.2.004-r0)
(6/7) Installing ruby-libs (2.0.0_p247-r0)
(7/7) Installing ruby (2.0.0_p247-r0)
Executing busybox-1.21.1-r0.trigger
Executing uclibc-utils-0.9.33.2-r21.trigger
OK: 332 MiB in 86 packages
ind-web010:~# ruby
/usr/lib/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- rubygems/compatibility (LoadError)
    from /usr/lib/ruby/2.0.0/rubygems.rb:15:in `<top (required)>'
    from <internal:gem_prelude>:1:in `require'
    from <internal:gem_prelude>:1:in `<compiled>'
ind-web010:~#

Suggested fix

Add the ‘ruby-gems’ package as a dependency of ‘ruby’, as installing this package fixes the issue:

ind-web010:~# apk add ruby-gems
(1/1) Installing ruby-gems (2.0.0_p247-r0)
Executing busybox-1.21.1-r0.trigger
Executing uclibc-utils-0.9.33.2-r21.trigger
OK: 333 MiB in 87 packages
ind-web010:~# ruby
puts "yay"
^D
yay
ind-web010:~#

(from redmine: issue id 2261, created on 2013-09-24, closed on 2013-10-02)

  • Changesets:
    • Revision 6e6c8a53 by Natanael Copa on 2013-09-26T14:07:01Z:
main/ruby: remove ruby-gems subpackage

ruby does not work witout it

fixes #2261
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Alpine 2.7.0
Milestone
Alpine 2.7.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: alpine/aports#2261