Watch, Follow, &
Connect with Us

Please visit our new home

Public Report
Report From: 3rdRail/Docs    [ Add a report in this area ]  
Report #:  52338   Status: Closed
Q: 3rdRail tries '/usr/bin/rails' but rails binary is somewhere else!
Project:  3rdRail Build #:  v20070909_1913
Version:    unspecifie Submitted By:   Josip Gracin
Report Type:  Basic functionality failure Date Reported:  9/21/2007 1:22:30 AM
Severity:    Critical / Show Stopper Last Updated: 10/3/2007 5:06:02 PM
Platform:    All platforms Internal Tracking #:  
Resolution: Cannot Reproduce (Resolution Comments) Resolved in Build: : dup of 52141?
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
I have the 'rails' script in /var/lib/gem/1.8/bin/rails.  When I try to create a new Rails project, I get an error saying that '/usr/bin/rails' could not have been found.

How do I make it look for rails in another location?

I'm putting this in the docs category because I might be missing this information in the docs, in which case it is a documentation problem because such a thing should be easier to find.
Steps to Reproduce:
Creating a project without having /usr/bin/rails, i.e. having rails script in some other location.
It seems that 'rails' is being looked for in the same location as 'ruby'.  I have installed both ruby and rails to /usr/local, and it works now.

Robert Ehteshamzadeh at 10/3/2007 3:35:12 PM -
On Linux and Mac OSX, by default,  we install gems to

/usr/local/lib/ruby/gems/1.8/gems .

I see the path /var/lib/gems/1.8/gems/rails-1.1.6/bin for Debian ( Ubuntu ).

I don't see anything when googling for the path /var/lib/gem/1.8/bin  .

Is this a typo?  Are you using Ubuntu/Debian package management or your own custom configuration?

Robert Ehteshamzadeh at 10/3/2007 3:46:32 PM -
Here is a guide for installing rails on Ubuntu ( Hoary to Feisty ) .

Excerpted from above:

Simply copy and paste the following into a terminal:

$ sudo apt-get install ruby rubygems irb ri rdoc ruby1.8-dev build-essential
$ sudo gem install rails --include-dependencies
$ export PATH=$PATH:/var/lib/gems/1.8/bin

open a new terminal.

$ which ruby

( result_1:  note the path to the ruby interpreter )

$ which rails

( note the path to rails )

Having done that, open 3rdRail and do the following:

Window | Preferences | Interpreters

click Add

enter result_1 for the Interpreter executable.  The system libraries should magically be populated.

click OK to close the dialog.

from the menu, select File | New | Rails Project.

Follow the instructions in the wizard to create a new rails project.

Server Response from: ETNACODE01