Hi,

I successfully ran sudo install do_mysql 0.9.12 on Solaris but when I
started up Merb I got an error.
Using an irb session with require 'rubygems' and require 'do_mysql'
fails with the same message that Merb gave about libmysqlclient.so.16
failed to open.

When I export LD_LIBRARY_PATH to include the path to libmysqlclient.so.
16 the require succeeds and Merb loads but I read somewhere that
setting ld_library_path manually should be avoided.

So, I tried re-installing do_mysql with the following parameters,
hoping that the library paths would be included.
sudo gem install do_mysql -- --with-mysql-dir=/usr/local/mysql --with-
mysql-lib=/usr/local/mysql/lib/mysql --with-mysql-include=/usr/local/
mysql/include/mysql

Unfortunately that doesn't work.
I tried with just --with-mysql-config=<path_to_mysql_config_file> and
that failed to.


Here's the error message from the irb session:
LoadError: ld.so.1: ruby: fatal: libmysqlclient.so.16: open failed: No
such file or directory - /usr/local/lib/ruby/gems/1.8/gems/
do_mysql-0.9.12/lib/do_mysql_ext.so
        from /usr/local/lib/ruby/gems/1.8/gems/do_mysql-0.9.12/lib/
do_mysql_ext.so
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/do_mysql-0.9.12/lib/
do_mysql.rb:10
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:36:in `require'


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to