I attempted for around 3-4 hrs looking to get the mysql jewel to set up for ruby 1.9.1 on snow leopard. The mysql jewel accustomed to work all right on 1.9.1 before I upgraded to snow leopard. I uninstalled MySQL server and jewel from my machine. Then i downloaded and installed: mysql-5.1.37-osx10.5-x86_64.dmg. I've been in a position to assert this latest version I installed is running like a 64bit application.

I uninstalled the mysql jewel. After I attempted to set up the jewel with this particular command:


env ARCHFLAGS="-arch x86_64" jewel install mysql --verbose -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

I acquired this error:


GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz

GET 200 OK: http://gems.github.com/latest_specs.4.8.gz

Setting up jewel mysql-2.8.1

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/COPYING

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/COPYING.ja

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/History.txt

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/Manifest.txt

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/README.txt

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/Rakefile

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/ext/mysql_api/extconf.rb

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/ext/mysql_api/mysql.c

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/extra/README.html

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/extra/README_ja.html

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/extra/tommy.css

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/lib/mysql.rb

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/tasks/jewel.rake

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/tasks/native.rake

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/tasks/vendor_mysql.rake

/Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/test/test_mysql.rb

Building native extensions.  This may require sometime...

ERROR:  Error setting up mysql:

        ERROR: Unsuccessful to construct jewel native extension.

/Customers/sean/.rvm/ruby-1.9.1-p243/bin/ruby extconf.rb --with-mysql-config=/usr/local/mysql/bin/mysql_config

checking for mysql_ssl_set()... yes

checking for rb_str_set_len()... no

checking for rb_thread_start_timer()... no

checking for mysql.h... yes

creating Makefile

make

gcc -I. -I/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/i386-darwin9.8. -I/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/backward -I/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1 -I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I/usr/local/mysql/include  -g -Os -arch x86_64 -fno-common   -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT  -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common  -O2 -g -Wall -Wno-parentheses  -fno-common -pipe -fno-common  -o mysql.o -c mysql.c

In file incorporated from /Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby.h:32,

                 from mysql.c:5:

/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h: In function 'INT2NUM':

/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is definitely true because of limited selection of data type

/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:464: warning: comparison is definitely true because of limited selection of data type

/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h: In function 'UINT2NUM':

/Customers/sean/.rvm/ruby-1.9.1-p243/include/ruby-1.9.1/ruby/ruby.h:472: warning: comparison is definitely true because of limited selection of data type

mysql.c: In function 'escape_string':

mysql.c:290: error: lvalue needed as left operand of assignment

mysql.c:290: error: lvalue needed as left operand of assignment

mysql.c: In function 'real_escape_string':

mysql.c:434: error: lvalue needed as left operand of assignment

mysql.c:434: error: lvalue needed as left operand of assignment

make: *** [mysql.o] Error 1

Jewel files will stay set up in /Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1 for inspection.

Results drenched to /Customers/sean/.jewel/ruby/1.9.1/gems/mysql-2.8.1/ext/mysql_api/jewel_make.out

I've attempted everything I've read in the following links.

  1. http://void-design.internet/2009/08/05/ruby-191-mysql-and-a-snow-leopard/
  2. http://world wide web.schmidp.com/2009/06/14/rubyrails-and-mysql-on-snow-leopard-10a380/
  3. http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard

Any ideas?