Code Kuno

Problems, solutions, and other stuff I've encountered as a Software Guy

    • Edit
    • Delete
    • Autopost

    openssl, eventmachine, and the ruby 1.8.7 (and ree, too) bus error

    Rails 3 is going to require at least Ruby 1.8.7 so I decided to install Ruby Enterprise Edition on my Mac. I have OSX Leopard (10.5.8) and use macports. After installing rvm, I encountered the same problem whenever I executed my web server in my Rails app:

    /usr/local/rvm/ree-1.8.7-2009.10/lib/ruby/1.8/openssl/ssl.rb:31: [BUG] Bus Error
    ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0], MBARI 0x8770, Ruby Enterprise Edition 2009.10

    The culprit is that I have two openssl installations and the eventmachine gem isn’t compiled with the same openssl as the my REE install. This issue was reported here.

    So the solution is either to recompile REE to use Macport’s openssl or recompile eventmachine to use the system’s openssl lib. I chose to recompile REE.

    sudo rvm install ree --configure --enable-shared=true,--with-openssl-dir=/opt/local --debug
    Tags » eventmachine openssl ruby solution
    • 6 January 2010
    • Views
    • 0 Comments
    • Permalink
    • Favorited 0 Times
    • Tweet

    Comments 0 Comments

    Leave a Comment

  • Tim Medina's Posterous

    I'm a guy with a passion for software development and programming. I like exploring emerging software tools and technologies. I consider Ruby as my primary programming language and Python as my favorite. I'm a co-founder of Sinefunc, Inc. - a Ruby shop here in Manila, Philippines. You can view my Google profile here.

  • About Tim Medina

    I'm a guy with a passion for software development and programming. I like exploring emerging software tools and technologies. I consider Ruby as my primary programming language and Python as my favorite. I'm a co-founder of Sinefunc, Inc. - a Ruby shop here in Manila, Philippines. You can view my Google profile here.

  • Subscribe

    Subscribe to this posterous
    Unsubscribe
    Follow this posterous RSS
  • Follow Me

Theme created for Posterous by Obox