Advertisement

01.23.2008 at 11:39PM PST, ID: 23107033
[x]
Attachment Details

How to install Ruby On Rails on Linux (SuSE) with console support

Asked by ostraaten in Ruby Scripting Language, SuSE Linux

Tags: rubyonrails.org, Ruby On Rails, 2.0.1, Console support

I am installing Ruby On Rails on SLES 10, http://www.novell.com/documentation/sles10/esd/di_sles10_vmware.html.

All was fine until I tried to start the console. From Google I think I learned that readline and readline-devel need to be installed to be able to run the console.

I now have readline and readline-devel installed. I recompiled Ruby and RubyGems. The console still fails with the same message that readline is missing.

To recompile:
user@SRC-DEV-VAS123:~/soft> export RUN=${HOME}/packages
user@SRC-DEV-VAS123:~/soft> tar zxvf ruby-1.8.6.tar.gz
user@SRC-DEV-VAS123:~/soft> cd ruby-1.8.6
user@SRC-DEV-VAS123:~/soft/ruby-1.8.6> ./configure --prefix=/usr
user@SRC-DEV-VAS123:~/soft/ruby-1.8.6> make
user@SRC-DEV-VAS123:~/soft/ruby-1.8.6> sudo make install
user@SRC-DEV-VAS123:~/soft/ruby-1.8.6> cd ..
user@SRC-DEV-VAS123:~/soft> tar zxvf rubygems-0.9.4.tgz
user@SRC-DEV-VAS123:~/soft> cd rubygems-0.9.9.4
user@SRC-DEV-VAS123:~/soft/rubygems-0.9.4> sudo ruby ./setup.rb


Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
user@SRC-DEV-VAS123:~/epfwiki.resultinfra.com/current> rpm -q readline
readline-5.1-24.4
user@SRC-DEV-VAS123:~/epfwiki.resultinfra.com/current> rpm -q readline-devel
readline-devel-5.1-24.4
user@SRC-DEV-VAS123:~/epfwiki.resultinfra.com/current> ruby script/console
Loading development environment (Rails 2.0.1)
/usr/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
from /usr/lib/ruby/1.8/irb/completion.rb:10
from /usr/lib/ruby/1.8/irb/init.rb:252:in `require'
from /usr/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
from /usr/lib/ruby/1.8/irb/init.rb:250:in `each'
from /usr/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
from /usr/lib/ruby/1.8/irb/init.rb:21:in `setup'
from /usr/lib/ruby/1.8/irb.rb:54:in `start'
from /usr/bin/irb:13
user@SRC-DEV-VAS123:~/epfwiki.resultinfra.com/current>
[+][-]01.24.2008 at 06:21AM PST, ID: 20733176

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Ruby Scripting Language, SuSE Linux
Tags: rubyonrails.org, Ruby On Rails, 2.0.1, Console support
Sign Up Now!
Solution Provided By: fridom
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628