RVM - ReadLine Support

402 views
Skip to first unread message

Jim Kirkbride

unread,
Sep 23, 2012, 2:33:32 PM9/23/12
to colum...@googlegroups.com
Hi All,

I'm getting started with the Conclave project, and I've run into a speed bump with ReadLine support.  The message I'm getting is:
You're running a version of ruby with no Readline support
Please `gem install rb-readline` or recompile ruby --with-readline.

I'm running Ubuntu 12.04, rvm 1.10.0.   'bundle install' runs successfully without any complaints, and I've tried the whole gem install rb-readline, as well as removing Ruby 1.9.2 via RVM ('rvm remove 1.9.2' followed by 'rvm install 1.9.2 --with-readline-dir=/usr/include/readline').  I've also wiped out my gemsets and gems in my .rvm directory to no avail.  

I'm more than comfortable on the command line, but I've googled around quite a bit but I'm not having any luck with the suggested solutions.   I figure there are probably at least a couple of Ruby newbs out there beside myself that are running into the same issues so I wanted to get your input.  Any help would be appreciated as I would really like to learn more and contribute to this project.  Let me know if you have any questions or concerns and thanks in advance!

- Jim K.

Isaac Sanders

unread,
Sep 23, 2012, 3:20:57 PM9/23/12
to colum...@googlegroups.com
You have to install the non-ruby deps. Look at `rvm requirements` 
--
 
 

Jim Kirkbride

unread,
Sep 23, 2012, 3:41:17 PM9/23/12
to colum...@googlegroups.com
Hi Isaac,

Thanks for the reply.  I probably should've mentioned that I have done that as well:

Hi Isaac,

Thanks for the reply.  I probably should've mentioned, I've done that as well:

<me>@magi-2:~/projects/conclave$ rvm requirements
Requirements for Linux ( DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS" )
NOTE: 'ruby' represents Matz's Ruby Interpreter (MRI) (1.8.X, 1.9.X)
             This is the *original* / standard Ruby Language Interpreter
      'ree'  represents Ruby Enterprise Edition
      'rbx'  represents Rubinius
bash >= 4.1 required
curl is required
git is required (>= 1.7 recommended)
patch is required (for ree and some ruby-head's).
To install rbx and/or Ruby 1.9 head (MRI) (eg. 1.9.2-head),
then you must install and use rvm 1.8.7 first.
NOTE: To all Multi-User installers - DO NOT forget to add your users to the 'rvm' group.
      The installer does not auto-add any users to the rvm group. Admins must do this.
      Group memberships are ONLY evaluated at login time. Log them out, then back in.
Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
  ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
# For JRuby, install the following:
  jruby: /usr/bin/apt-get install curl g++ openjdk-6-jre-headless
  jruby-head: /usr/bin/apt-get install ant openjdk-6-jdk
# For IronRuby, install the following:
  ironruby: /usr/bin/apt-get install curl mono-2.0-devel
<me>@magi-2:~/projects/conclave$ sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
Note, selecting 'libncurses5-dev' instead of 'ncurses-dev'
autoconf is already the newest version.
automake is already the newest version.
bison is already the newest version.
curl is already the newest version.
git-core is already the newest version.
libc6-dev is already the newest version.
libncurses5-dev is already the newest version.
libreadline6 is already the newest version.
libreadline6-dev is already the newest version.
libtool is already the newest version.
libyaml-dev is already the newest version.
subversion is already the newest version.
zlib1g is already the newest version.
zlib1g-dev is already the newest version.
build-essential is already the newest version.
libsqlite3-0 is already the newest version.
libsqlite3-dev is already the newest version.
libssl-dev is already the newest version.
libxml2-dev is already the newest version.
libxslt1-dev is already the newest version.
openssl is already the newest version.
sqlite3 is already the newest version.
The following packages were automatically installed and are no longer required:
  libunity6 libcommons-el-java libglew1.5 libcommons-compress-java libjasper-java libglewmx1.5 libservlet2.4-java liblucene2-java eclipse-platform-data jarwrapper libdee-1.0-1 sat4j
  libdb-je-java fastjar libjtidy-java libicu4j-java
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded.

I'm sure I'm missing something somewhere.  Any other ideas?

Thanks,

Jim K.

Matt Darby

unread,
Sep 23, 2012, 5:00:17 PM9/23/12
to colum...@googlegroups.com
These are the packages I install for a clean CentOS box, maybe there is something relative to Ubuntu that you need?

yum install gcc git autoconf automake bison bison-devel ruby zlib-devel openssl openssl-devel gcc-c++ curl-devel zlib-devel pcre-devel libxml2 libxml2-devel libyaml libyaml-devel libxslt libxslt-devel readline readline-devel patch make redis mysql mysql-devel mysql-server



--
 
 

Cheers!

Matt Darby, M.S.
Ruby | Rails | iOS

Skype: matt-darby

Jon Hogue

unread,
Sep 23, 2012, 6:06:05 PM9/23/12
to colum...@googlegroups.com
I've run into this before.

One of the dependencies has to be there befor you compile ruby. Perhaps, you installed rvm/ruby, then installed os dependencies?

Try removing all your rvm rubies, and reinstalling/compiling them.

Sent from my iPhone
--
 
 

James Kirkbride

unread,
Sep 23, 2012, 6:18:37 PM9/23/12
to colum...@googlegroups.com

Jon,

Entirely possible.  I'll try a clean install of RVM and Ruby 1.9.2 (and hopefully not bork my 1.8.7 install in the process) and see how that goes. 

Thanks,

Jim

--
 
 

Jon Hogue

unread,
Sep 23, 2012, 10:49:47 PM9/23/12
to colum...@googlegroups.com
rvm remove ruby-1.9.2
rvm install 1.9.2

should force the re-compile. rvm is just a bunch of shell tricks, so you shouldn't need to remove/reinstall rvm itself.  


--
 
 

Jon Hogue

unread,
Sep 28, 2012, 11:10:48 AM9/28/12
to colum...@googlegroups.com
Did this solve the problem for you? Just curious

On Sep 23, 2012, at 6:18 PM, James Kirkbride <james.k...@gmail.com> wrote:

--
 
 

James Kirkbride

unread,
Sep 28, 2012, 1:07:51 PM9/28/12
to colum...@googlegroups.com
Giving it a shot tonight, got caught up the family and my business website (Ruby 1.8.7/Rails 3, which I strangely do not have ReadLine issues with).  

- Jim K

--
 
 

Jim Kirkbride

unread,
Sep 29, 2012, 10:52:52 AM9/29/12
to colum...@googlegroups.com
Update, got it working. 

1.) Completely purged rvm from my system ('rvm implode' and remove any references to rvm from .bash_profile, .bashrc, etc)
2.) Install RVM (on Ubuntu 12.04 for a single user): 
curl -L get.rvm.io | bash -s stable --auto 
source $HOME/.rvm/scripts/rvm
rvm install 1.9.2

That was it, I'm able to run rake and rails just fine now.

Thanks to everyone for the assistance!

- Jim
Reply all
Reply to author
Forward
0 new messages