Description:
Hallo,
im use mysql gem version (2.8.1) and openssl @1.0.0a_0 (installed from MacPorts).
when im use mysql gem in my projects i have this error:
dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/libssl.0.9.8.dylib
Referenced from: /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle
Reason: image not found
Trace/BPT trap
because i have 1.0.0 version installed.
My svn and ssh works with the 1.0.0 version and i have to switch between this version of openssl to work with mysql
and ssh/svn.
Greets,
Piotr Szal
How to repeat:
Install openssl 1.0.0 with macports and uninstall openssl 0.9.8.
Then install mysql with rubygems
gem install mysql
pisz-7:~ pisz$ sudo gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/Users/pisz/.multiruby/install/1.8.6-p114/bin/ruby extconf.rb
checking for mysql_ssl_set()... yes
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... yes
checking for mysql.h... yes
creating Makefile
make
gcc -I. -I. -I/Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/1.8/i686-darwin9.8.0 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_RB_THREAD_START_TIMER -DHAVE_MYSQL_H -I/opt/local/include/mysql5/mysql -fPIC -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -g -O2 -pipe -fno-common -c mysql.c
cc -dynamic -bundle -undefined suppress -flat_namespace -o mysql_api.bundle mysql.o -L"." -L"/Users/pisz/.multiruby/install/1.8.6-p114/lib" -L. -L/opt/local/lib -L/opt/local/lib/mysql5/mysql -lmysqlclient -L/opt/local/lib -lz -lm -L/opt/local/lib/ -lssl -lcrypto -ldl -lobjc
ld: file not found: /opt/local/lib/libssl.0.9.8.dylib
collect2: ld returned 1 exit status
make: *** [mysql_api.bundle] Error 1
Gem files will remain installed in /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1 for inspection.
Results logged to /Users/pisz/.multiruby/install/1.8.6-p114/lib/ruby/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/gem_make.out