Jruby -S bundle install tries to install native mysql gem

$ jruby -S bundle install

Fetching source index from http://gemcutter.org/
Using rake (0.8.7) from bundler gems
Using abstract (1.0.0) from bundler gems
Using builder (2.1.2) from bundler gems
Using i18n (0.3.6) from bundler gems
Using memcache-client (1.8.1) from bundler gems
Using tzinfo (0.3.18) from bundler gems
Using activesupport (3.0.0.beta2) from bundler gems
Using activemodel (3.0.0.beta2) from bundler gems
Using erubis (2.6.5) from bundler gems
Using rack (1.1.0) from bundler gems
Using rack-mount (0.6.1) from bundler gems
Using rack-test (0.5.3) from bundler gems
Using actionpack (3.0.0.beta2) from bundler gems
Using mime-types (1.16) from bundler gems
Using polyglot (0.3.1) from bundler gems
Using treetop (1.4.5) from bundler gems
Using mail (2.1.5.3) from bundler gems
Using text-hyphen (1.0.0) from bundler gems
Using text-format (1.0.0) from bundler gems
Using actionmailer (3.0.0.beta2) from bundler gems
Using arel (0.3.3) from bundler gems
Using activerecord (3.0.0.beta2) from bundler gems
Using activeresource (3.0.0.beta2) from bundler gems
Using bundler (0.9.16) from bundler gems
Installing hpricot (0.8.2) from rubygems repository at
http://gemcutter.org/
Installing mysql (2.8.1) from .gem files at
/Users/anil/.rvm/gems/jruby-1.4.0/cache
with native extensions
/Users/anil/.rvm/rubies/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/installer.rb:482:in
`build_extensions’: ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)

/Users/anil/.rvm/rubies/jruby-1.4.0/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the mkmf' library. Check wiki.jruby.org for alternatives. extconf.rb:30: undefined method with_config’ for main:Object
(NoMethodError)

Gem files will remain installed in
/Users/anil/.rvm/gems/jruby-1.4.0/gems/mysql-2.8.1 for inspection.
Results logged to
/Users/anil/.rvm/gems/jruby-1.4.0/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

from
/Users/anil/.rvm/rubies/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/installer.rb:445:in
each' from /Users/anil/.rvm/rubies/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/installer.rb:445:in build_extensions’
from
/Users/anil/.rvm/rubies/jruby-1.4.0/lib/ruby/site_ruby/1.8/rubygems/installer.rb:197:in
install' from /Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/source.rb:159:in install’
from
/Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/installer.rb:34:in
run' from /Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/spec_set.rb:12:in each’
from
/Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/spec_set.rb:12:in
each' from /Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/installer.rb:21:in run’
… 9 levels…
from
/Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/bin/bundle:13
from
/Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/bin/bundle:19:in
`load’
from /Users/anil/.rvm/gems/jruby-1.4.0/bin/bundle:19

How to avoid bundler doing installation of mysql gem?

You need to remove it form the Rails gemfile, and then it should be
ok. Check out Nick S.'s walkthrough on getting Rails running, or
other messages in the archive.

On Sat, Apr 3, 2010 at 5:39 AM, Anil W. [email protected]
wrote:

Using erubis (2.6.5) from bundler gems
Using actionmailer (3.0.0.beta2) from bundler gems
(Gem::Installer::ExtensionBuildError)
from
`install’
/Users/anil/.rvm/gems/jruby-1.4.0/gems/bundler-0.9.16/lib/bundler/installer.rb:21:in
Anil


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email