Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 11:49:22 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: readline error trying to use script/console  (Read 1419 times)
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« on: October 07, 2007, 09:05:27 AM »

While trying to get a simple ROR app running on my VPS server, I came across a suggestion to try using script/console to test. When I tried it, I got the following error:

Code:
[root@vps testapp]# script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
        from /usr/local/lib/ruby/1.8/irb/completion.rb:10
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
        from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
        from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
        from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
        from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
        from /usr/local/bin/irb:13
[root@vps testapp]#

I googled around and the only suggestion I found was to install the readline package as follows:

Code:
Fixing Console Readline Issue ("no such file to load -- readline")
$ sudo apt-get install libncurses5-dev libreadline5-dev
$ sudo updatedb
$ slocate ext/ |grep ext/readline
$ cd ext/readline
$ sudo ruby extconf.rb
$ sudo make
$ sudo make install

sudo apt-get doesn't work. I think I have to use yum:

Code:
[root@vps ~]# yum install libncurses5-dev libreadline5-dev
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00     
base                      100% |=========================| 1.1 kB    00:00     
centosplus                100% |=========================|  951 B    00:00     
addons                    100% |=========================|  951 B    00:00     
extras                    100% |=========================| 1.1 kB    00:00     
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libncurses5-dev
No Match for argument: libreadline5-dev
Nothing to do
[root@vps ~]#

I think I have to update yum so that it knows where to find the packages I requested. How do I do this?

Thanks,
George
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #1 on: October 09, 2007, 09:12:56 PM »

Hi,

The package names you got in the suggestion are from a Debian based Linux distributive. Please setup ncurses-devel and readline-devel using yum in your VPS to get the needed libraries installed.
Logged

Kind Regards,
Vlad Artamonov
geolev
Intergalactic Cowboy
*****
Offline Offline

Posts: 74


WWW
« Reply #2 on: October 19, 2007, 11:17:55 AM »

Thanks, I'll give this a try tonight or this weekend and report what I find.

George
Logged

perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #3 on: October 19, 2007, 09:37:32 PM »


Anytime Wink
Logged

Kind Regards,
Vlad Artamonov
FabianMueller
Newbie
*
Offline Offline

Posts: 1


« Reply #4 on: November 18, 2007, 08:05:31 AM »

I have exactly the same problem!

Could you find a solution?

I could not install readline-devel with yum!

Thanks you!
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #5 on: November 19, 2007, 03:24:27 AM »

I have exactly the same problem!

Could you find a solution?

I could not install readline-devel with yum!

Thanks you!

What is the problem you are experiencing with installing readline libraries using yum?
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM