# Ruby/RoR problem, openssl.so, undefined symbol, update ruby 1.8.7-\>1.9.1

**URL:** <https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874>\
**Category:** Rails\
**Created:** [January 4, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874 "2009-01-04T18:09:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jukkai\_fi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8dc957/32.png) [@jukkai\_fi](https://www.ruby-forum.com/u/jukkai_fi)\
**Post date:** [January 4, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874/1 "2009-01-04T18:09:20Z")

</div>

Env: SUSE LINUX 10.1 (X86-64)

with Ruby 1.8.7-p72, RoR  
I can get welcome screen, but after that always get  
Memory Fault

Then I installed current stable  
ruby 1.8.7 (2008-12-29 revision 0) [x86\_64-linux]  
ruby: symbol lookup error: /usr/local/lib/ruby/1.8/x86\_64-linux/  
openssl.so: undefined symbol: EVP\_MD\_CTX\_md  
I founded some ssl.rb test, it give:  
ruby: symbol lookup error: /usr/local/lib/ruby/1.8/x86\_64-linux/  
openssl.so: undefined symbol: EVP\_CIPHER\_CTX\_cipher

I also installed  
[http://www.rubyenterpriseedition.com/download.html](http://www.rubyenterpriseedition.com/download.html)  
same error

Then installed snapshot  
ruby 1.9.1 (2009-01-04 patchlevel-5000 trunk 21288) [x86\_64-linux]  
same problem …

I’m real newbie with Ruby/RoR, this was my 1st install (trying) to  
create RoR environment.

After this I updated RoR  
gem install -v=2.2.2 rails

Then rest was …#)&%

rails new  
rails/new\>script/server  
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/lib/  
active\_support/dependencies.rb:153:in `require': no such file to load -- test/unit/error (MissingSourceFile) from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/ lib/active_support/dependencies.rb:153:in `block in require’  
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/  
lib/active\_support/dependencies.rb:521:in `new_constants_in' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/ lib/active_support/dependencies.rb:153:in `require’  
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/  
lib/active\_support/deprecation.rb:224:in `<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/ lib/active_support/dependencies.rb:153:in `require’  
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/  
lib/active\_support/dependencies.rb:153:in `block in require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/ lib/active_support/dependencies.rb:521:in `new\_constants\_in’  
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/  
lib/active\_support/dependencies.rb:153:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.2.2/ lib/active_support.rb:37:in `\<top (required)\>’  
from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.2.2/lib/  
commands/server.rb:1:in `require' from /usr/local/lib/ruby/gems/1.9.1/gems/rails-2.2.2/lib/ commands/server.rb:1:in `\<top (required)\>’  
from script/server:3:in `require' from script/server:3:in `’

Somebody said for me that RoR is nice, maybe ? But heavy job put to  
work.

---

<div class="post-metadata">

**Author:** ![jukkai\_fi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8dc957/32.png) [@jukkai\_fi](https://www.ruby-forum.com/u/jukkai_fi)\
**Post date:** [January 4, 2009, 7:22pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874/2 "2009-01-04T19:22:03Z")

</div>

jukkai\_fi wrote:

> Env: SUSE LINUX 10.1 (X86-64)
> 
> with Ruby 1.8.7-p72, RoR  
> I can get welcome screen, but after that always get  
> Memory Fault
> 
> Then I installed current stable  
> ruby 1.8.7 (2008-12-29 revision 0) [x86\_64-linux]  
> ruby: symbol lookup error: /usr/local/lib/ruby/1.8/x86\_64-linux/  
> openssl.so: undefined symbol: EVP\_MD\_CTX\_md  
> I founded some ssl.rb test, it give:  
> ruby: symbol lookup error: /usr/local/lib/ruby/1.8/x86\_64-linux/  
> openssl.so: undefined symbol: EVP\_CIPHER\_CTX\_cipher

Your problem is that the openssl library installed on your system is too  
old. Update that to the latest version and this problem should go away.

---

<div class="post-metadata">

**Author:** ![jukkai\_fi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8dc957/32.png) [@jukkai\_fi](https://www.ruby-forum.com/u/jukkai_fi)\
**Post date:** [January 4, 2009, 8:59pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874/3 "2009-01-04T20:59:40Z")

</div>

ROR is great!  
look more informations about how to install rails…see the following  
link  
[http://wiki.rubyonrails.com/rails/pages/HowtosInstallation](http://wiki.rubyonrails.com/rails/pages/HowtosInstallation)

---

<div class="post-metadata">

**Author:** ![jukkai\_fi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8dc957/32.png) [@jukkai\_fi](https://www.ruby-forum.com/u/jukkai_fi)\
**Post date:** [January 5, 2009, 6:53pm UTC](https://www.ruby-forum.com/t/ruby-ror-problem-openssl-so-undefined-symbol-update-ruby-1-8-7-1-9-1/156874/4 "2009-01-05T18:53:58Z")

</div>

> Your problem is that the openssl library installed on your system is too  
> old. Update that to the latest version and this problem should go away.

This was “interesting process” - I hate some distros …, Suse 10.1 is  
one of those

I updated Suse openssl using  
ftp://mirrors.kernel.org/suse/x86\_64/update/10.2/rpm/x86\_64/

- openssl is about one year old, still same problem with 1.8.7-p72
- then I install also ruby and ruby-dev from suse site  
ftp://mirrors.kernel.org/suse/x86\_64/update/10.2/rpm/x86\_64/
- it’s 1.8.5, but my ssl.rb test works

I also tried openssl using source, but ruby making say something about  
“use -fPIC flag compiling openssl …”  
I was used …

Now I have some working ruby + RoR environment, even little old. Maybe  
this is enough for me to test RoR possibilities.  
I tested also blog, using db postgreSql 8.3.5

- works fine, but encoding set not work … active\_record pg not use  
database.yum encoding setting ?
- edited manually  
/usr/lib64/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active\_record/  
connection\_adapters  
utf8 → latin1 and now it works …

I think that if your pg instance has created latin1, then database  
must be also latin1. Ex. sorting and indexing use instance character  
set and locales  
Ex. I have created using --locale=fi\_FI --lc-collate=sv\_SE  
initdb -E LATIN1 --locale=fi\_FI --lc-collate=sv\_SE

[http://guides.rubyonrails.org/getting\_started\_with\_rails.htm](http://guides.rubyonrails.org/getting_started_with_rails.htm)  
was the most helpful for me to create RoR env and first servers.

-jukka-
