简体   繁体   English

Snow Leopard安装的Mysql gem

[英]Mysql gem for Snow Leopard Install

I'm trying to get the mysql gem installed with a fresh install of Snow Leopard. 我正在尝试使用全新安装的Snow Leopard安装mysql gem。

I got mysql 5.1 x86 installed from mysql site, and have tried install the mysql gem using this command. 我从mysql站点安装了mysql 5.1 x86,并尝试使用此命令安装mysql gem。

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

getting no love. 没有爱。

this is my error. 这是我的错误。

gcc -I. 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. -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 -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I / USR /本地/ MySQL的/包括-g -Os -arch I386 -fno共用-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL -fno共用-D_XOPEN_SOURCE = 1 -O2 - g -Wall -Wno括号-fno-common-管道-fno-common -o mysql.o -c mysql.c

mysql.c: In function 'escape_string': mysql.c:在函数'escape_string'中:

mysql.c:290: error: lvalue required as left operand of assignment mysql.c:290:错误:需要左值作为赋值的左操作数

mysql.c:290: error: lvalue required as left operand of assignment mysql.c:290:错误:需要左值作为赋值的左操作数

mysql.c: In function 'real_escape_string': mysql.c:在函数“ real_escape_string”中:

mysql.c:434: error: lvalue required as left operand of assignment mysql.c:434:错误:需要左值作为赋值的左操作数

mysql.c:434: error: lvalue required as left operand of assignment mysql.c:434:错误:需要左值作为赋值的左操作数

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

Anyone having similar problems? 任何人有类似的问题吗?

ALl good, 都好,

installed 64 bit mysql, and worked ok. 安装了64位mysql,并且工作正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM