From: Eric Wong Date: 2012-01-26T04:19:38+09:00 Subject: Re: Install mysql2 gem in Ubuntu 11.10 with RVM Jim Wharton wrote: > gcc -shared -o mysql2.so result.o mysql2_ext.o client.o -L. > -L/home/jim/.rvm/rubies/ruby-1.8.7-p334/lib > -Wl,-R/home/jim/.rvm/rubies/ruby-1.8.7-p334/lib -L. -rdynamic > -Wl,-export-dynamic -Wl,-rpath,/usr/lib/mysql -Wl,-R > -Wl,/home/jim/.rvm/rubies/ruby-1.8.7-p334/lib > -L/home/jim/.rvm/rubies/ruby-1.8.7-p334/lib -lruby > -Wl,-Bsymbolic-functions -rdynamic -L/usr/lib/mysql -lmysqlclient_r > -lrt -ldl -lcrypt -lm -lc > /usr/bin/ld: skipping incompatible > /home/jim/.rvm/rubies/ruby-1.8.7-p334/lib/libruby.so when searching for > -lruby > /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 I'm not familiar with RVM (but many people on this list are), but I'm wondering why libruby.so is there. Do you find libruby-static.a in /home/jim/.rvm/rubies/ruby-1.8.7-p334 as well? Can you run "file /home/jim/.rvm/rubies/ruby-1.8.7-p334/lib/libruby.so" and see if it's a valid shared object? Any chance you're running a mixed 32/64-bit userland and you got them mixed up in your RVM installation? This doesn't appear to be an issue with mysql2 specifically, but any C extensions you might have... > Results logged to > /home/jim/.rvm/gems/ruby-1.8.7-p334@rails307/gems/mysql2-0.3.11/ext/mysql2/gem_make.out Does gem_make.out have any extra info not in your original email?