Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Dec 16, 2008 10:25 pm 
Offline
Senior Newbie

Joined: Tue Dec 16, 2008 2:13 pm
Posts: 7
Hello All,
I have just created a new install of Ubuntu 8.10, and have proceeded to install all of the necessary packages for Ruby on Rails. I installed ruby, gems, and rails, but when i run rails -v, i get the following error:

root@li41-22:~# rails -v
-bash: rails: command not found

any guidance would be greatly appreciated

Jason


Top
   
 Post subject:
PostPosted: Mon Dec 22, 2008 12:22 pm 
Offline
Senior Newbie

Joined: Sat Jan 19, 2008 8:37 pm
Posts: 19
It's probably just not in your path? The deb package for rails installs it to /usr/bin/rails, check to see if that file exists. I'm not sure where it goes if you install it from gem, but i think that is the recommended method.


Top
   
 Post subject:
PostPosted: Wed Dec 31, 2008 1:47 pm 
Offline
Senior Newbie

Joined: Sun Jun 22, 2008 11:35 am
Posts: 7
How did you install Rails? Via Rubygems or Aptitude?

If you installed via RubyGems, it's probably in a directory like
Code:
/var/lib/gems/1.8/bin


Top
   
 Post subject:
PostPosted: Fri Jan 09, 2009 6:09 pm 
Offline
Senior Newbie

Joined: Wed Dec 31, 2008 10:49 am
Posts: 6
you have to create the symlinks :)

sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby
sudo ln -s /usr/bin/ri1.8 /usr/bin/ri
sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc
sudo ln -s /usr/bin/irb1.8 /usr/bin/irb


edit: ops i didin't see this post was this old. Maybe this will be usefull for future generation :P


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group