From: Michael Neumann Date: 2001-09-25T19:04:55+09:00 Subject: [ruby-talk:21664] Re: Problems with the mysql-module Jens Rohde wrote: > Hi > > I'm trying to use the mysql-module (made by TOMITA Masahiro), but it's > giving me a hard time. > > I've modified the extconf.rb file, so it can find my mysql-installation, > and it compiles and installs ok. But when i try to run the test-script I > get the following: > > # ruby -I. ./test.rb localhost root > ./test.rb:11:in `require': libmysqlclient.so.10: cannot load shared object > file: No such file or directory - ./mysql.so (LoadError) > from ./test.rb:11 > > The libmysqlclient.so.10 is situated in /pack/mysql/lib/mysql (and mysql > is working ok) and mysql.so is in > /usr/local/lib/ruby/1.6/i686-linux/mysql.so. Type: ldd /usr/local/lib/ruby/1.6/i686-linux/mysql.so Are there any "=> not found" entries? If yes, put the line: export LD_LIBRARY_PATH=/pack/mysql/lib/mysql in you .profile file, or recompile ruby/mysql with a --rpath option in the makefile (specifying the directories of shared libraries). Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de