LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-22-2010, 07:20 AM   #1
cre84j
Member
 
Registered: Oct 2010
Posts: 40

Rep: Reputation: 3
Interactive Ruby Shell (irb) I have ruby but no irb?


there are a few things not working properly

Ruby version manager seems ok but untill i get working with ruby i don't know if it is working properly. One thing that is not there is irb Interactive ruby is not available according the the message i get.

gregory@gregory-laptop:~$ irb
Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.
You may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.
ruby-1.9.2-p0 >

well i have no idea what readline is but i did everything that is on that webpage referance page http://rvm.beginrescueend.com/packages/readline/. thanks to anyone who can help and have been working to get this set up for over a week now. I have got a lot of progress and learned heaps about linux shell and bash terminal. The thing is i need to get this going and have tried feenode but it is very foreign and how it works i do not have a clue but can understand these forums if anyone can help me. I have got 2 things resolved so far through this forum but using other threads in it. Please help if you can. i need to get irb going before i can progress to using ruby on Rails properly.

I am using a Eeepc running ubuntu easy peasy its version 9.04 of ubuntu. I need the whole of rails to work and want to get a handle on using ruby version manager along with the apache stack with mysql/phpmyadmin and am using this as a dummy run for setting up a development system.

My focus right now is getting irb working and functioning before going onto using Ruby on Rails.
 
Old 10-22-2010, 07:02 PM   #2
cre84j
Member
 
Registered: Oct 2010
Posts: 40

Original Poster
Rep: Reputation: 3
Well it looks like its a recurring thing and that most problems like this one are down to a difference between MS command line output and the bash terminal output in linux although it is working with the same software. In this case the ruby on rails package. In MSwindows it looks like this

irb(main):0001>

and on my linux system it looks like this

ruby-1.8.6-p399 >

there is no line numbers now and the bash interface acts differently like putting and out some weird charactors when i hit the back or forward keys or up and down like:

ruby-1.8.6-p399 > ^[[A

it didn't do this on mswin but all the same it seems to be working after testing it with a few simple tests to see if the ruby interactive shell is working.

ruby-1.8.6-p399 > 100 + 100
=> 200
ruby-1.8.6-p399 > "Hello, " + "world!"
=> "Hello, world!".

the main reason i thought is was not there is because i cannot find the .irbrc file and it should be there according to a lot of referances on the linux sites and ruby tutes etc. As for the weird cahractor response to some keys on the keyboard. Well whether it is normal or not in linux i don't know yet. I do know it was not there on mswin command line and they had line numbers also which i can do without its only to test short snippets and not the whole program. After having to use notepad on mswin for all these years it's not a problem and i have the power of gedit now which turns out to be an awsome app for scripting.

this is a great experience using linux ubuntu easy peasy using bash speeds things up a lot and you have the power to resolve problems without going to some microsoft university or somehting rediculous like that which would cost way to much

no more reliance on mswindows free at last!!!
 
Old 10-22-2010, 07:33 PM   #3
cre84j
Member
 
Registered: Oct 2010
Posts: 40

Original Poster
Rep: Reputation: 3
OK i have just realised that the line nummbers that are not now in irb are what is being refered to in this exception note that i referred to in my first post on this thread here above.

gregory@gregory-laptop:~$ irb
Readline was unable to be required, if you need completion or history install readline then reinstall the ruby.
You may follow 'rvm notes' for dependencies and/or read the docs page http://rvm.beginrescueend.com/packages/readline/ . Be sure you 'rvm remove X ; rvm install X' to re-compile your ruby with readline support after obtaining the readline libraries.
ruby-1.8.6-p399 >

I did everything that i read in this note and also went and downloaded according to rvm instructions on the site but still they are not there. so that can only mean i have something more to do yet to get it going but for the moment at least i know i can use irb and it functions ok and is usable. so am confident to use it as is.

I'll just have to use it as is and continue to look out for some knowhow on installing readline properly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
Strangeness pasting ruby code into irb command line darenw Programming 0 06-18-2009 08:45 PM
Ruby SDL/ Ruby OpenGL tutorials/reference? LinuxNoob75 Programming 0 12-30-2007 12:47 PM
linux instead of router(VLAN ,IRB and etc) ye_adam Linux - Networking 0 01-26-2006 02:13 PM
Where is the shell interactive for ruby languaje? Manuel Tejada Red Hat 5 02-02-2004 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration