2009-08-30 138 views
2

我想要安裝一個全新的Snow Leopard安裝的MySQL gem。Snow Leopard安裝的Mysql gem

我從mysql站點安裝了mysql 5.1 x86,並試圖使用這個命令安裝mysql gem。

sudo gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

得不到愛。

這是我的錯誤。

gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin10.0.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/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 i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno-common -D_XOPEN_SOURCE=1 -O2 -g -Wall -Wno-parentheses -fno-common -pipe -fno-common -o mysql.o -c mysql.c

mysql.c: In function ‘escape_string’:

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

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

mysql.c: In function ‘real_escape_string’:

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

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

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

任何有類似問題的人?

回答

1

ALl好,

安裝了64位mysql,工作正常。

+0

可以在此處找到分步說明: http://www.icoretech.org/2009/08/install-mysql-and-mysql-ruby-gem-on-snow-leopard-64-bit/ – Jared 2009-08-30 18:17:59

+0

您是否安裝了預先打包的MySQL x86_64二進制文件,或者您是否編譯了自己的文件?我遇到了與您發佈的相同的確切錯誤。 – 2009-08-31 07:13:01

+0

是我自己編譯的,64位版本 – 2009-09-02 00:53:39