mysql - Can't install do_mysql gem? -
I am trying to install do_mysql on my Snow Leopard system MacBook Pro 13, but I get this error :
n216-160: ~ $ sudo gem1.9 install do_mysql password: build original extension. This may take a while ... Error: Error installing do_mysql: Error: Mane failed to create native extension. Checking in /lot/local/bin/ruby1.9 for mysql_query () -lmysqlclient. .. no *** extconf.rb failed *** Could not make Makefile due to some reason, maybe lack of necessary libraries and / or headers. For more information check the mkmf.log file you may need the configuration option. Include configuration options: Include --with-opt-dir --without-opt-dir --with-opt-include-without-opt-in = $ {opt-dir} / include --with-opt -lib -without-opt-lib = $ {opt-dir} / lib - with-make-progman - without-make-cop - -srcdir = --Cardir - RUB = / Opt / Local / Bin / Ruby 1.9 - Include MSQL-config - without-mysql-config -with-mysql-dir - without-mysql-dir -with-mysql- - without- mysql- Include = $ {mysql-dir} / include - with-mysql-lib --without-mysql-lib = $ {mysql-dir} / lib -with-mysqlclientlib - without-mysqlclientlib gem files / opt / local / lib / Will be installed in ruby1.9 / gems / 1.9.1 / gems for inspection / do_mysql-0.10.0 /opt/local/lib/ruby1.9/gems/1.9.1/gems/do_mysql-0.10.0/ext/ Do_mysql_ext/gem_make.outn216-160: Login results in ~ $ $ itself
I do not know why I also have MySQL 5.4.3 beta, MySQ with 64-bit My caste of L had been restored, as suggested by other people, but there was no dice. Does anyone have any ideas that are wrong?
You are missing the libmysqlclient-dev package. You can install it on the deb system
sudo apt-get install libmysqlclient-dev
is not sure about Mac (probably "sudo port Install libmysqlclient-dev "?)
Comments
Post a Comment