[求助]ruby on rails utuntu mysql安装时错误 _MySQL, Oracle及数据库讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  MySQL, Oracle及数据库讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 1566 | 回复: 0   主题: [求助]ruby on rails utuntu mysql安装时错误         下一篇 
jrong1987
注册用户
等级:新兵
经验:66
发帖:67
精华:0
注册:2011-12-23
状态:离线
发送短消息息给jrong1987 加好友    发送短消息息给jrong1987 发消息
发表于: IP:您无权察看 2014-12-11 9:54:38 | [全部帖] [楼主帖] 楼主

sudo gem install mysql
[sudo] password for chen:
Sorry, try again.
[sudo] password for chen:
Sorry, try again.
[sudo] password for chen:
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile
make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -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_MYSQL_H -I/usr/local/include  -D_FILE_OFFSET_BITS=64  -fPIC  -O2 -g -Wall -Wno-parentheses  -o mysql.o -c mysql.c


mysql.c:6:21: 错误: version.h:没有该文件或目录

mysql.c: 在函数‘make_field_obj’中:

mysql.c:185: 警告: 未使用的变量‘hash’

mysql.c: 在函数‘escape_string’中:

mysql.c:267: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:268: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:268: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:268: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:268: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c: 在函数‘real_escape_string’中:

mysql.c:401: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:402: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:402: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:402: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:402: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c: 在函数‘query’中:

mysql.c:710: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:710: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:729: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:729: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c: 在函数‘query_with_result_set’中:

mysql.c:882: 警告: 隐式声明函数‘TypeError’

mysql.c: 在函数‘fetch_field_direct’中:

mysql.c:960: 警告: 隐式声明函数‘Raise’

mysql.c: 在函数‘fetch_hash2’中:

mysql.c:1032: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:1033: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c: 在函数‘field_inspect’中:

mysql.c:1157: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:1158: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:1158: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c: 在函数‘stmt_bind_result’中:

mysql.c:1284: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c: 在函数‘stmt_execute’中:

mysql.c:1346: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:1347: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:1348: 错误: ‘struct RString’没有名为‘len’的成员

mysql.c:1359: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1360: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1361: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1362: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1363: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1364: 错误: ‘struct RArray’没有名为‘ptr’的成员

mysql.c:1316: 警告: 未使用的变量‘false’

mysql.c: 在函数‘stmt_prepare’中:

mysql.c:1584: 错误: ‘struct RString’没有名为‘ptr’的成员

mysql.c:1584: 错误: ‘struct RString’没有名为‘len’的成员

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

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/mysql-2.7 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mysql-2.7/gem_make.out


我在sudo gem install mysql 是出的这个错 网上实在找不到解决办法  哪位大哥帮忙看下怎么回事 

--转自 北京联动北方科技有限公司




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论