From: Markus Fischer Date: 2012-01-26T04:10:05+09:00 Subject: Re: Install mysql2 gem in Ubuntu 11.10 with RVM Hi, On 25.01.2012 19:36, Jim Wharton wrote: > /usr/bin/ld: skipping incompatible > /home/jim/.rvm/rubies/ruby-1.8.7-p334/lib/libruby.so when searching for > -lruby > /usr/bin/ld: cannot find -lruby > collect2: ld returned 1 exit status > make: *** [mysql2.so] Error 1 In case you missed that, there's some problem with your ruby library .. I wouldn't know why, I just had to install ruby via rvm on another system, worked flawlessly. Problem with p334 maybe? I mean I just did "rvm install 1.8.7", it gave me p357. Further installing mysql2 looked like this: $ gem install mysql2 Fetching: mysql2-0.3.11.gem (100%) Building native extensions. This could take a while... Successfully installed mysql2-0.3.11 1 gem installed Installing ri documentation for mysql2-0.3.11... Installing RDoc documentation for mysql2-0.3.11... Linux ubuntu1110 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux HTH