RubyGems install path prevents mongrel from being a recognized command

Bug #116237 reported by Jared Brown
12
Affects Status Importance Assigned to Milestone
libgems-ruby (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: rubygems

When using RubyGems installed through Synaptic, running "sudo gem install mongrel" places mongrel_rails under /var/lib instead of /usr/bin and /usr/lib, thus preventing users from easily running it via their environment paths. The immediate work around is to download and install RubyGems from the official site.

Revision history for this message
Timo Derstappen (teemow) wrote :

I can confirm this bug. gem executables end up in /var/lib/gems/1.8/bin. Work arounds are symbolic links in /usr/local/bin or adding /var/lib/gems/1.8/bin to PATH.

Revision history for this message
Jared Brown (jaredbrown) wrote : Re: [Bug 116237] Re: RubyGems install path prevents mongrel from being a recognized command

I would be very helpful if there was no need for a work around after
installing RubyGems

On 5/22/07, teemow <email address hidden> wrote:
>
> I can confirm this bug. gem executables end up in /var/lib/gems/1.8/bin.
> Work arounds are symbolic links in /usr/local/bin or adding
> /var/lib/gems/1.8/bin to PATH.
>
> --
> RubyGems install path prevents mongrel from being a recognized command
> https://bugs.launchpad.net/bugs/116237
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Jared Brown
<email address hidden>
(765) 409-0875
7001 Central Ave
Indianapolis, IN 46220

Revision history for this message
Neil Wilson (neil-aldur) wrote :

This is working as designed.

Ubuntu rubygems is derived from Debian rubygems, and both of them deliberately place the gem executables into /var/lib/gems/1.8/bin. It is a matter of policy

See the README.Debian file at /usr/share/doc/libgems-ruby1.8/README.Debian

You have to place /var/lib/gems/1.8/bin on your PATH in your .bashrc and then everything works fine.

Changed in libgems-ruby:
status: New → Invalid
Revision history for this message
Ryan Maki (ryan.maki) wrote :

I've just wound up filing a duplicate of this bug.

Perhaps we could find a way to inform users at installation that they need to alter their $PATH, just so they don't wind up confused enough to file a bug report, as I just did. Thanks.

Revision history for this message
Jared Brown (jaredbrown) wrote : Hello
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.