eventmachine

196 views
Skip to first unread message

Chhi'mèd Künzang

unread,
Jul 27, 2012, 8:23:07 PM7/27/12
to maglev-d...@googlegroups.com
I tried getting the eventmachine gem working on MagLev (1.0.0-27184) with no luck.  I tried the main branch and also the fork in the maglev section at GitHub.

It's also entirely possible that I did something wrong along the way.  Has anyone else successfully installed eventmachine?

Either way, can anyone offer any advice for either getting this working or determining how hard that would be?

Thanks,
Chhi'mèd

Conrad Taylor

unread,
Jul 29, 2012, 12:44:59 AM7/29/12
to maglev-d...@googlegroups.com
Chhi'mèd,  can you post the error(s) here that you're seeing when you attempt to install eventmachine?  Next, are you using this with a Rails or Ruby application with Bundler?
 
Thanks,
Chhi'mèd

--
You received this message because you are subscribed to the Google Groups "MagLev Discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/maglev-discussion/-/nexkoOF6FeQJ.
To post to this group, send email to maglev-d...@googlegroups.com.
To unsubscribe from this group, send email to maglev-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maglev-discussion?hl=en.



--

Think different and code well,

-Conrad


Tim Felgentreff

unread,
Jul 29, 2012, 4:09:35 AM7/29/12
to maglev-d...@googlegroups.com, Conrad Taylor
Hi

It seems something changed in MagLev itself that made the EM C-ext not
load. I fixed that in the Maglev/eventmachine repository, and it loads
now, and runs some tests. Not all tests work, though, and I would
recommend the pure Ruby version of EM, unless you need features that
only the C-ext has.

On 07/29/2012 06:44 AM, Conrad Taylor wrote:
> On Fri, Jul 27, 2012 at 5:23 PM, Chhi'm�d K�nzang
> <clku...@gmail.com>wrote:
>
>> I tried getting the eventmachine gem working on MagLev
>> (1.0.0-27184) with no luck. I tried the main branch and also the
>> fork in the maglev section at GitHub.
>>
>> It's also entirely possible that I did something wrong along the
>> way. Has anyone else successfully installed eventmachine?
>>
>> Either way, can anyone offer any advice for either getting this
>> working or determining how hard that would be?
>>
>>
> Chhi'm�d, can you post the error(s) here that you're seeing when
> you attempt to install eventmachine? Next, are you using this with
> a Rails or Ruby application with Bundler?
>
>
>> Thanks, Chhi'm�d

Conrad Taylor

unread,
Jul 30, 2012, 11:09:08 AM7/30/12
to maglev-d...@googlegroups.com
Chhi'mèd, I would also recommend filing an issue here with the steps to reproduce:

 
Thanks,
Chhi'mèd

--
You received this message because you are subscribed to the Google Groups "MagLev Discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msg/maglev-discussion/-/nexkoOF6FeQJ.
To post to this group, send email to maglev-d...@googlegroups.com.
To unsubscribe from this group, send email to maglev-discuss...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maglev-discussion?hl=en.

Chhi'mèd Künzang

unread,
Jul 30, 2012, 12:30:17 PM7/30/12
to maglev-d...@googlegroups.com


Chhi'mèd,  can you post the error(s) here that you're seeing when you attempt to install eventmachine?  Next, are you using this with a Rails or Ruby application with Bundler?

Here's what I got after fetching the latest from the MagLev version.  It looks like maybe a development pathname is built into the bundle?
 
Warning: loadCLibrary dlopen failed, name: /Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle
   dlerror: dlopen(/Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle, 265): Library not loaded: /export/orpheus4/users/buildgss/gs64/30/build27184/fast42/openssl/install42/lib/libssl.1.0.0.dylib
  Referenced from: /Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle
  Reason: image not found
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
ERROR 2702 , a RubyLoadError occurred (error 2702), dlopen(/Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle, 265): Library not loaded: /export/orpheus4/users/buildgss/gs64/30/build27184/fast42/openssl/install42/lib/libssl.1.0.0.dylib
  Referenced from: /Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle
  Reason: image not found (LoadError)
 

Tim Felgentreff

unread,
Jul 30, 2012, 1:04:14 PM7/30/12
to maglev-d...@googlegroups.com
Hm

This is a pathname for the Mac OS X build, I'm not sure what's going on,
but I got rid of my Mac some time ago, so I'm just guessing.

One thing that seems strange to me is that rubyeventmachine.bundle
should have a direct reference to that libssl, since it should have
compiled and linked on your machine. Secondly, I'm not sure how rvm sets
this up, but running from the source tree, I have the rubyeventmachine
shared object in lib/maglev/gems/1.8/gems/eventmachine-1.0.0.beta.4/ext/

Have you tried running from a source tree, or else install and run
MagLev using rbenv[1] and ruby-build[2]? RVM juggles with the paths for
Ruby installs, so it may be something wrong there.

If the problem persists, please file an issue on github with the backtrace.

-Tim

[1] https://github.com/sstephenson/rbenv
[2] https://github.com/sstephenson/ruby-build

On 07/30/2012 06:30 PM, Chhi'm�d K�nzang wrote:
>
>>
>>
>>
>> Chhi'm�d, can you post the error(s) here that you're seeing when you

Peter McLain

unread,
Jul 30, 2012, 1:08:06 PM7/30/12
to maglev-d...@googlegroups.com

On Jul 30, 2012, at 9:30 AM, Chhi'mèd Künzang wrote:

> ERROR 2702 , a RubyLoadError occurred (error 2702), dlopen(/Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle, 265): Library not loaded: /export/orpheus4/users/buildgss/gs64/30/build27184/fast42/openssl/install42/lib/libssl.1.0.0.dylib
> Referenced from: /Users/clwk/.rvm/gems/maglev-head/gems/eventmachine/lib/rubyeventmachine.bundle
> Reason: image not found (LoadError)

This is a known issue. I'm not sure why that version got pushed out, but I'll try and get a correct version out shortly.


--
Peter McLain
pmc...@vmware.com




Monty Williams

unread,
Jul 30, 2012, 3:13:52 PM7/30/12
to maglev-d...@googlegroups.com
We can look into this for the next MagLev update, which we're planning in August. There is a dependency on finishing up a customer release of GS/S 3.1.0.1 which will be used as the underlying VM, so plans could get delayed.

Chhi'mèd Künzang

unread,
Jul 30, 2012, 5:18:38 PM7/30/12
to maglev-d...@googlegroups.com
On Monday, July 30, 2012 12:13:52 PM UTC-7, Monty Williams wrote:
We can look into this for the next MagLev update, which we're planning in August. There is a dependency on finishing up a customer release of GS/S 3.1.0.1 which will be used as the underlying VM, so plans could get delayed.

Okay, thanks for all the help.  I'll keep an eye on the next release and see what happens.

 
Reply all
Reply to author
Forward
0 new messages