Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Does not work on Mac OS ruby 1.9.3 - crashes immediately #13

Closed
marksherman opened this issue Jan 25, 2014 · 9 comments
Closed

Does not work on Mac OS ruby 1.9.3 - crashes immediately #13

marksherman opened this issue Jan 25, 2014 · 9 comments

Comments

@marksherman
Copy link

Trying to bro anything results in the exact same error (below). I've done a full gem update.

$ bro bro
/Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/runner.rb:365:in `block in require_program': program version required (Commander::Runner::CommandError)
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/runner.rb:364:in `each'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/runner.rb:364:in `require_program'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/runner.rb:52:in `run!'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require': dlopen(/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.0/openssl.bundle, 9): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib (LoadError)
  Referenced from: /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.0/openssl.bundle
  Reason: image not found - /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.0/openssl.bundle
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/openssl.rb:17:in `<top (required)>'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/rest-client-1.6.7/lib/restclient.rb:6:in `<top (required)>'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/rest-client-1.6.7/lib/rest-client.rb:2:in `<top (required)>'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/bropages-0.0.15/lib/bro.rb:7:in `<top (required)>'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/bropages-0.0.15/bin/bro:3:in `<top (required)>'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/bin/bro:19:in `load'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/bin/bro:19:in `<main>'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/bin/ruby_executable_hooks:15:in `eval'
    from /Users/mark/.rvm/gems/ruby-1.9.3-p194/bin/ruby_executable_hooks:15:in `<main>'
mark@lotus:~$ vim /Users/mark/.rvm/gems/ruby-1.9.3-p194/gems/bropages-0.0.15/bin/bro 
@JosephRedfern
Copy link
Contributor

Do you have OpenSSL installed?

Try running brew install openssl.

@marksherman
Copy link
Author

Yes, I do have openssl installed.

$ openssl version

OpenSSL 0.9.8y 5 Feb 2013

So I installed it through brew anyway. Same error when I try to bro.

kernel: Reason: image not found -
/Users/mark/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/x86_64-darwin11.4.0/openssl.bundle

On Sat, Jan 25, 2014 at 1:36 PM, Joseph Redfern notifications@github.comwrote:

Do you have OpenSSL installed?

Try running brew install openssl.


Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v1/url?u=https://github.com/hubsmoke/bro/issues/13%23issuecomment-33296163&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=QLR7x6UKbcj43NzZZ3FuW1m04vE6qfg3thKTblzlBQ0%3D%0A&m=XADY3jopS5z240%2B8TnaeDzkcwyJTTwQJ4t%2Br4q4nGAM%3D%0A&s=05af71f09eab56b70ea6e6903d105bc0dabf97c4377900921c6212842a38c841
.

@JosephRedfern
Copy link
Contributor

Odd. Could you try following the instructions here (http://www.mattburkedev.com/overcoming-ruby-error-sha1-bundle-not-loaded/), i.e:

rvm get head rvm autolibs homebrew rvm autolibs enable rvm reinstall ruby-1.9.3-p194

and see where that gets you.

@dClauzel
Copy link

You need a newer version of ruby.

With MacPorts installed, simply run as root:

port -d install ruby21
gem2.1 install bropages

@hubsmoke
Copy link
Owner

@marksherman Did you ever figure out what was going on?

Based on the stacktrace I'm not sure if this is a bro-specific thing. Have you gotten other gems to work on your machine?

Also, just leaving this here in case it helps: https://stackoverflow.com/questions/16848541/error-loading-rubygems-plugin-library-not-loaded-opt-local-lib-libssl-1-0-0-dy

Curious as to what is causing this...

@marksherman
Copy link
Author

I tried upgrading ruby (dubious as I was that it was the cause) and managed
to break homebrew. Before that happened, I tried many things, all without
success, and the error is basically the same.

Reading the stackoverflow link, if it's a permission error I could start to
understand things. Brew insists on running sans-root, but it if it relies
on a root-perm-only executable, things could get hairy.

My current course of action: 1. un-fsckup homebrew. 2. see if the library
it's calling belongs to something that is expecting a different permission.

On Tue, Jan 28, 2014 at 4:29 AM, Sina Iman notifications@github.com wrote:

@markshermanhttps://urldefense.proofpoint.com/v1/url?u=https://github.com/marksherman&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=QLR7x6UKbcj43NzZZ3FuW1m04vE6qfg3thKTblzlBQ0%3D%0A&m=6Ag%2BBMfQ0fhchaIuLKhET5ZjY8i%2BBwLcirJwV8AMYeE%3D%0A&s=e37ed36bf84e2d2cfb0165379b77fd1b8f7315a59a55898817963209252fa20dDid you ever figure out what was going on?

Based on the stacktrace I'm not sure if this is a bro-specific thing. Have
you gotten other gems to work on your machine?

Also, just leaving this here in case it helps:
https://stackoverflow.com/questions/16848541/error-loading-rubygems-plugin-library-not-loaded-opt-local-lib-libssl-1-0-0-dyhttps://urldefense.proofpoint.com/v1/url?u=https://stackoverflow.com/questions/16848541/error-loading-rubygems-plugin-library-not-loaded-opt-local-lib-libssl-1-0-0-dy&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=QLR7x6UKbcj43NzZZ3FuW1m04vE6qfg3thKTblzlBQ0%3D%0A&m=6Ag%2BBMfQ0fhchaIuLKhET5ZjY8i%2BBwLcirJwV8AMYeE%3D%0A&s=1dbc1b4c0273dbc4fde7560934d6c90be9ad794b82710586822b41713f84c1fe

Curious as to what is causing this...

Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v1/url?u=https://github.com/hubsmoke/bro/issues/13%23issuecomment-33462677&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=QLR7x6UKbcj43NzZZ3FuW1m04vE6qfg3thKTblzlBQ0%3D%0A&m=6Ag%2BBMfQ0fhchaIuLKhET5ZjY8i%2BBwLcirJwV8AMYeE%3D%0A&s=7498d7277be86b3c9216913ddf5e30f8ad40ea272d9e3eafd5fafa5da2b462e6
.

@hubsmoke
Copy link
Owner

👍 Let us know how it goes

@marksherman
Copy link
Author

I now have brew fixed, but it seems that it managed to update the system
ruby, which now insists it is 2.0.0p247, linked from the
System/Library/Frameworks etc. Not sure if brew did this, or it's been
there the whole time (while linked to the older version folder) or apple
just pushed an update or what.

Starting over with the gem install. (needs root to install to
/Library/Ruby/Gems/2.0.0 which I'm not super impressed with (not your
fault))

AND IT WORKS

It appears the updating ruby itself, and doing a clean re-install on the
2.0.0 platform, did the trick.

Recommend revising the sentence "bro is meant to work out of the box for
any machine running Ruby 1.8.7+".

Thank you all for your help.

On Tue, Jan 28, 2014 at 8:44 AM, Sina Iman notifications@github.com wrote:

[image: 👍] Let us know how it goes

Reply to this email directly or view it on GitHubhttps://urldefense.proofpoint.com/v1/url?u=https://github.com/hubsmoke/bro/issues/13%23issuecomment-33478795&k=wf2FkHoZDP5jrUw2KePZ5g%3D%3D%0A&r=QLR7x6UKbcj43NzZZ3FuW1m04vE6qfg3thKTblzlBQ0%3D%0A&m=Jt0ChTOGynknztp0X22LvgVAqfEMz4mGb2EHOw%2BZu%2F8%3D%0A&s=e7a0353e7dc17f4cf78165bc5b4aaa58c6dad58c86fc4362249f14852f5d342a
.

@hubsmoke
Copy link
Owner

Thanks Mark, I'm glad you got it working!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants