Sébastien
2008-Jan-20 18:03 UTC
[Eventmachine-talk] Trouble with install eventmachine 0.11.0 gem
Hi, I am trying to setup my Ubuntu server to run eventmachine with ruby1.9 but I am running into the following error during the make of the extension: g++ -I. -I/usr/include/ruby-1.9/i486-linux -I/usr/include/ruby-1.9 -I. -DHAVE_SYS_EPOLL_H -DHAVE_RB_THREAD_BLOCKING_REGION - DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -I/include/include -DOS_UNIX -DBUILD_FOR_RUBY -DHAVE_EPOLL -DHAVE_TBR -DWITH_SSL -fPIC -fno-strict- aliasing -g -fPIC -fno-strict-aliasing -g -c em.cpp em.cpp: In member function ?int SelectData_t::_Select()?: em.cpp:637: error: invalid conversion from ?VALUE (*)(void*)? to ?VALUE (*)(rb_thread_t*, void*)? em.cpp:637: error: initializing argument 1 of ?VALUE rb_thread_blocking_region(VALUE (*)(rb_thread_t*, void*), void*, void (*)(rb_thread_t*, void*), void*)? make: *** [em.o] Error 1 Also, in order to be able to even get there, I had to comment the following 2 lines in extconf.rb: #linkso = Object.send :remove_const, "LINK_SO" #LINK_SO = linkso + "; strip $@" Otherwise I would get that error: [..] checking for openssl/err.h... yes *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options [..] extconf.rb:141:in `method_missing'': private method `remove_const'' called for Object:Class (NoMethodError) from extconf.rb:141:in `<main>'' Any help or pointers would be greatly appreciated! Thank you, S?bastien FYI, system info is: ruby 1.9.0 (2007-08-30 patchlevel 0) [i486-linux] (from Ubuntu rep) Linux ubuntu 2.6.22-14-server #1 SMP i686 GNU/Linux $ gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c+ +,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with- system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/ 4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486- linux-gnu Thread model: posix gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) $ g++ -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c+ +,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with- system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/ 4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486- linux-gnu Thread model: posix gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Francis Cianfrocca
2008-Jan-21 05:14 UTC
[Eventmachine-talk] Trouble with install eventmachine 0.11.0
On Jan 20, 2008 9:03 PM, S?bastien <sebastien at there4i.am> wrote:> Hi, > > I am trying to setup my Ubuntu server to run eventmachine with ruby1.9 > but I am running into the following error during the make of the > extension: > > g++ -I. -I/usr/include/ruby-1.9/i486-linux -I/usr/include/ruby-1.9 -I. > -DHAVE_SYS_EPOLL_H -DHAVE_RB_THREAD_BLOCKING_REGION - > DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -I/include/include -DOS_UNIX > -DBUILD_FOR_RUBY -DHAVE_EPOLL -DHAVE_TBR -DWITH_SSL -fPIC -fno-strict- > aliasing -g -fPIC -fno-strict-aliasing -g -c em.cpp > em.cpp: In member function ''int SelectData_t::_Select()'': > em.cpp:637: error: invalid conversion from ''VALUE (*)(void*)'' to > ''VALUE (*)(rb_thread_t*, void*)'' > em.cpp:637: error: initializing argument 1 of ''VALUE > rb_thread_blocking_region(VALUE (*)(rb_thread_t*, void*), void*, void > (*)(rb_thread_t*, void*), void*)'' > make: *** [em.o] Error 1 > > Also, in order to be able to even get there, I had to comment the > following 2 lines in extconf.rb: > #linkso = Object.send :remove_const, "LINK_SO" > #LINK_SO = linkso + "; strip $@" > > Otherwise I would get that error: > [..] > checking for openssl/err.h... yes > *** extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Provided configuration options [..] > > extconf.rb:141:in `method_missing'': private method `remove_const'' > called for Object:Class (NoMethodError) > from extconf.rb:141:in `<main>'' > > Any help or pointers would be greatly appreciated! > > Thank you, > > S?bastien > > > FYI, system info is: > ruby 1.9.0 (2007-08-30 patchlevel 0) [i486-linux] (from Ubuntu rep) > Linux ubuntu 2.6.22-14-server #1 SMP i686 GNU/Linux > > $ gcc -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v --enable-languages=c,c+ > +,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with- > system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- > threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/ > 4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu > --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486- > linux-gnu > Thread model: posix > gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) > > $ g++ -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v --enable-languages=c,c+ > +,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with- > system-zlib --libexecdir=/usr/lib --without-included-gettext --enable- > threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/ > 4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu > --enable-libstdcxx-debug --enable-mpfr --enable-checking=release i486- > linux-gnu > Thread model: posix > gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) >My laptop runs Ubuntu and compiles EM 0.11 cleanly. Can you try a more recent version of Ruby 1.9? I''m testing with the 12-25-2007 version. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080121/f604cbff/attachment.html
Sébastien
2008-Jan-21 07:15 UTC
[Eventmachine-talk] Trouble with install eventmachine 0.11.0
Hi, Just out of curiosity, did you just compile it by hand or did you find it (ruby1.9-20071225) in the Ubuntu repo? Thanks! On Jan 21, 2008, at 7:14 AM, Francis Cianfrocca wrote:> My laptop runs Ubuntu and compiles EM 0.11 cleanly. Can you try a more > recent version of Ruby 1.9? I''m testing with the 12-25-2007 version. >
Francis Cianfrocca
2008-Jan-21 07:52 UTC
[Eventmachine-talk] Trouble with install eventmachine 0.11.0
On Jan 21, 2008 10:15 AM, S?bastien <sebastien at there4i.am> wrote:> Hi, > > Just out of curiosity, did you just compile it by hand or did you find > it (ruby1.9-20071225) in the Ubuntu repo? > > Thanks! >I just compiled it by hand. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/eventmachine-talk/attachments/20080121/efa47a74/attachment.html