Can't install/compile Eventmachine under Ruby 2.0.0-p0

688 views
Skip to first unread message

Steffen Roller

unread,
Feb 24, 2013, 8:20:41 PM2/24/13
to rubyin...@googlegroups.com
Was somebody able to install Thin/Eventmachine using 64-bit versions of DEVKIT and Ruby?

I got the following error message(s):

make
generating rubyeventmachine-x64-mingw32.def
compiling binder.cpp
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-EHs'
x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-GR'
make: *** [binder.o] Error 1


Gem files will remain installed in C:/ruby/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.0 for inspection.
Results logged to C:/ruby/lib/ruby/gems/2.0.0/gems/eventmachine-1.0.0/ext/gem_make.out

under the 32-bit version the error is slightly different:

C:\temp>gem install eventmachine --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
        ERROR: Failed to build gem native extension.

    C:/ruby/bin/ruby.exe extconf.rb
checking for main() in -lssl... *** extconf.rb failed ***

any ideas?

-st

Luis Lavena

unread,
Feb 24, 2013, 8:26:24 PM2/24/13
to rubyin...@googlegroups.com
On Sun, Feb 24, 2013 at 10:20 PM, Steffen Roller
<steffen...@gmail.com> wrote:
> Was somebody able to install Thin/Eventmachine using 64-bit versions of
> DEVKIT and Ruby?
>
> I got the following error message(s):
>
> make
> generating rubyeventmachine-x64-mingw32.def
> compiling binder.cpp
> x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-EHs'
> x86_64-w64-mingw32-g++.exe: error: unrecognized command line option '-GR'
> make: *** [binder.o] Error 1
>
>

Looks to me eventmachine is not detecting properly the platform or
Ruby and it thinks is Visual C.

>
> under the 32-bit version the error is slightly different:
>
> C:\temp>gem install eventmachine --platform=ruby
> Temporarily enhancing PATH to include DevKit...
> Building native extensions. This could take a while...
> ERROR: Error installing eventmachine:
> ERROR: Failed to build gem native extension.
>
> C:/ruby/bin/ruby.exe extconf.rb
> checking for main() in -lssl... *** extconf.rb failed ***
>

The second error is because eventmachine requires OpenSSL.

Search the group to find knapsack packages to download and use as
headers/libs for compilation.

> any ideas?
>

I'm not sure if eventmachine compiles cleanly on Windows "natively",
it used to require cross-compilation.

I suggest report this issue to Eventmachine developers:

https://github.com/eventmachine/eventmachine/issues

and provide them:

ruby -v
gem -v
gcc --v

ruby -rrbconfig -e "p RbConfig::CONFIG.values_at('host_os', 'target_os')"

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Steffen Roller

unread,
Feb 24, 2013, 8:43:48 PM2/24/13
to rubyin...@googlegroups.com
Hi Luis,

thanks for the info. I did compile before under 1.9.3, 32 bit.
I just switched back to gcc 4.5.2 and ruby 1.9.3-p374.
I'm going to reach out to the EM guys though.

BTW: It seems the version command is now
gcc -v (just one dash?)
gcc --v returned an error on my installation

-st


2013/2/24 Luis Lavena <luisl...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyinstalle...@googlegroups.com.
To post to this group, send email to rubyin...@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Luis Lavena

unread,
Feb 24, 2013, 8:48:01 PM2/24/13
to rubyin...@googlegroups.com
On Sun, Feb 24, 2013 at 10:43 PM, Steffen Roller
<steffen...@gmail.com> wrote:
> Hi Luis,
>
> thanks for the info. I did compile before under 1.9.3, 32 bit.
> I just switched back to gcc 4.5.2 and ruby 1.9.3-p374.
> I'm going to reach out to the EM guys though.
>

I only see this:

https://github.com/eventmachine/eventmachine/blob/master/ext/extconf.rb#L79-L82

And this:

https://github.com/eventmachine/eventmachine/blob/master/ext/extconf.rb#L79-L82

The root of the flags being added:

https://github.com/eventmachine/eventmachine/blob/master/ext/extconf.rb#L109-L111
https://github.com/eventmachine/eventmachine/blob/master/ext/fastfilereader/extconf.rb#L45-L46

> BTW: It seems the version command is now
> gcc -v (just one dash?)
> gcc --v returned an error on my installation
>

Sorry, was going to type "--version" and then thought "-v" provided
better output.
Reply all
Reply to author
Forward
0 new messages