Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't install on jruby and darwin #13

Open
matee911 opened this issue Nov 18, 2011 · 0 comments
Open

Doesn't install on jruby and darwin #13

matee911 opened this issue Nov 18, 2011 · 0 comments

Comments

@matee911
Copy link


bundle update
Fetching source index for http://rubygems.org/
Using eventmachine (0.12.10) 
Installing eventmachine_httpserver (0.2.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/matee/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb 
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for main() in -lpthread... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch x86_64  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions     -c http.cpp
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch x86_64  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions     -c rubyhttp.cpp
g++ -shared -o eventmachine_httpserver.bundle http.o rubyhttp.o -L"." -L"/Users/matee/.rvm/rubies/jruby-1.6.4/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.4   -arch x86_64  -lcrypto -lssl -lpthread   
i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib
make: *** [eventmachine_httpserver.bundle] Error 1


Gem files will remain installed in /Users/matee/.rvm/gems/jruby-1.6.4/gems/eventmachine_httpserver-0.2.1 for inspection.
Results logged to /Users/matee/.rvm/gems/jruby-1.6.4/gems/eventmachine_httpserver-0.2.1/ext/gem_make.out
An error occured while installing eventmachine_httpserver (0.2.1), and Bundler cannot continue.
Make sure that `gem install eventmachine_httpserver -v '0.2.1'` succeeds before bundling.

gem_make.out

/Users/matee/.rvm/rubies/jruby-1.6.4/bin/jruby extconf.rb 
WARNING: JRuby does not support native extensions or the `mkmf' library very well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
checking for main() in -lpthread... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch x86_64  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions     -c http.cpp
g++ -I. -I. -I/Users/matee/.rvm/rubies/jruby-1.6.4/lib/native/include/ruby -I. -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE        -DOS_UNIX -DBUILD_FOR_RUBY -DWITH_SSL -fPIC -DTARGET_RT_MAC_CFM=0  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions    -arch x86_64  -fno-omit-frame-pointer -fno-strict-aliasing  -fexceptions     -c rubyhttp.cpp
g++ -shared -o eventmachine_httpserver.bundle http.o rubyhttp.o -L"." -L"/Users/matee/.rvm/rubies/jruby-1.6.4/lib" -bundle -framework JavaVM -Wl,-syslibroot, -mmacosx-version-min=10.4   -arch x86_64  -lcrypto -lssl -lpthread   
i686-apple-darwin10-g++-4.2.1: -bundle not allowed with -dynamiclib
make: *** [eventmachine_httpserver.bundle] Error 1

jRuby:

ruby --version
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java]

uname:

uname -a
Darwin prosiak 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant