Hi, I've been successfully running merb for a while now. I recently had to move to a Linux RHEL 4 machine which by default has mysql 4.1 installed. I don't have admin permissions to uninstall mysql 4.1 so I compiled mysql 5.1 (to my personal folder) and I'm doing 'thor merb:gem:install' to unpack&compile all the gems. Unfortunately I'm getting the following error (see below - ERROR1). I can see from the compiler options that it is looking in the wrong location for the mysql client libraries to link to (it is looking /usr/ include/mysql which I think it is the 4.1 version). I then installed merb and data_objects on this machine. When I installed the data_objects gem, I did have to specify the mysql 5.1 path, and it compiled just fine. However, when I try to run it, I get the following error (see below - ERROR2).
What can I do to fix this? Is there a way I can tell merb/data_objects/ do_mysql to look at the mysql 5.1 libraries? Thanks, Tiberiu ---------ERROR1--------- Installing do_mysql-0.9.12 Building native extensions. This could take a while... ERROR: Failed to build gem native extension. /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/bin/ruby extconf.rb extconf.rb:12: warning: Insecure world writable dir /ax_int/bin in PATH, mode 040777 checking for mysql.h... yes checking for main() in -lmysqlclient... yes checking for mysql_query()... yes checking for mysql_ssl_set()... yes creating Makefile make gcc -I. -I. -I/soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/1.8/ i686-linux -I. -DHAVE_MYSQL_H -DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET -D_FILE_OFFSET_BITS=64 -I/usr/include/mysql -g -pipe -m32 -march=i386 - mtune=pentium4 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 - D_LARGEFILE_SOURCE -fno-strict-aliasing -fPIC -g -O2 -Wall -c do_mysql_ext.c do_mysql_ext.c: In function `infer_ruby_type': do_mysql_ext.c:87: error: `MYSQL_TYPE_BIT' undeclared (first use in this function) ---------ERROR2--------- ~ loading gem 'merb-exceptions' ... ~ loading gem 'data_objects' ... ~ ~ FATAL: The file do_mysql was not found ~ ~ FRAMEWORK_ROOT = /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/ gems/gems/merb-core-1.0.8.1/lib ~ ~ LoadError: libmysqlclient.so.16: cannot open shared object file: No such file or directory - /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ ruby/gems/gems/do_mysql-0.9.12/lib/do_mysql_ext.so ~ ./config/dependencies.rb:25 ~ /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:31:in `gem_original_require' ~ /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:31:in `require' ~ /home/motoct/uploader/trunk/config/init.rb:3 ~ FRAMEWORK_ROOT/merb-core/bootloader.rb:520:in `load' ~ FRAMEWORK_ROOT/merb-core/bootloader.rb:520:in `load_initfile' ~ FRAMEWORK_ROOT/merb-core/bootloader.rb:388:in `run' ~ FRAMEWORK_ROOT/merb-core/bootloader.rb:99:in `run' ~ FRAMEWORK_ROOT/merb-core/server.rb:172:in `bootup' ~ FRAMEWORK_ROOT/merb-core/server.rb:42:in `start' ~ FRAMEWORK_ROOT/merb-core.rb:170:in `start' ~ /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/gems/gems/merb- core-1.0.8.1/bin/merb:11 ~ /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/gems/bin/merb: 19:in `load' ~ /soft/fw/tools/ruby/ruby-1.8.6-p369-rhel3/lib/ruby/gems/bin/merb:19 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
