From: Jim Wharton Date: 2012-01-26T04:49:46+09:00 Subject: Re: Install mysql2 gem in Ubuntu 11.10 with RVM Peter Vandenabeele wrote in post #1042534: > On Wed, Jan 25, 2012 at 7:36 PM, Jim Wharton > wrote: > >> >> gcc -I. -I. >> result.c:315:33: warning: variable ‘tokens’ set but not used >> -I/home/jim/.rvm/rubies/ruby-1.8.7-p334/lib/ruby/1.8/i686-linux -I. >> -Wl,-export-dynamic -Wl,-rpath,/usr/lib/mysql -Wl,-R >> /usr/bin/ld: cannot find -lruby >> >> It just crashes out. >> >> Any ideas from that error? >> > > Hi, I am unable to exactly reproduce your set-up because I do not > (longer ?) see ruby ruby-1.8.7-p334 in the list on known rubies from > rvm ... > > Would you have any problem with doing > $ rvm get stable > $ rvm install 1.8.7 > > and then trying again in that context ? In rvm that should not be a > siginificant problem, since you could still keep you older version if > you > wished. > > That would make it easier for others to reproduce your set-up. > > I just tried with ruby-1.8.7-p330 on Ubuntu 10.04 in a fresh gemset > and the `gem install mysql2` "just worked" ... > > HTH, > > Peter I get: jim@caesar ~$ rvm install 1.8.7 Installing Ruby from source to: /home/jim/.rvm/rubies/ruby-1.8.7-p352, this may take a while depending on your cpu(s)... ruby-1.8.7-p352 - #fetching ruby-1.8.7-p352 - #extracted to /home/jim/.rvm/src/ruby-1.8.7-p352 (already extracted) ruby-1.8.7-p352 - #configuring ruby-1.8.7-p352 - #compiling ERROR: Error running 'make ', please read /home/jim/.rvm/log/ruby-1.8.7-p352/make.log ERROR: There has been an error while running make. Halting the installation. I do have build-essential installed. Make is in my path as well. -- Posted via http://www.ruby-forum.com/.