Hi all,

I am trying to install the do_mysql gem so that I can use datawrapper
with a MySQL database.  However, whenever I try to install the gem (on
Mac OS 10.5.6) I get:

sudo gem install do_mysql  -- --with-mysql-dir=/usr/local/mysql/bin/
mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
Building native extensions.  This could take a while...
ERROR:  Error installing do_mysql:
        ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb install do_mysql -- --with-mysql-dir=/usr/local/mysql/bin/
mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
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/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DHAVE_MYSQL_H -
DHAVE_MYSQL_QUERY -DHAVE_MYSQL_SSL_SET  -I/usr/local/mysql/include -Os
-arch i386 -fno-common -fno-common -arch i386 -Os -pipe -fno-common -
Wall   -c do_mysql_ext.c
do_mysql_ext.c: In function ‘infer_ruby_type’:
do_mysql_ext.c:89: error: ‘MYSQL_TYPE_BIT’ undeclared (first use in
this function)
do_mysql_ext.c:89: error: (Each undeclared identifier is reported only
once
do_mysql_ext.c:89: error: for each function it appears in.)
do_mysql_ext.c:99: error: ‘MYSQL_TYPE_NEWDECIMAL’ undeclared (first
use in this function)
do_mysql_ext.c: In function ‘cConnection_initialize’:
do_mysql_ext.c:512: error: ‘MYSQL_OPT_RECONNECT’ undeclared (first use
in this function)
make: *** [do_mysql_ext.o] Error 1


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/
do_mysql-0.9.11 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/do_mysql-0.9.11/ext/
do_mysql_ext/gem_make.out

which mysql and which mysql_config point to the directories I listed
in the command.

Thanks in advance for any tips.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to