我正在尝试通过全新安装的 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
有人遇到类似的问题吗?
最佳答案
都很好,
安装了 64 位 mysql,运行正常。
关于用于 Snow Leopard 安装的 Mysql gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1353189/