Hi,
I’m trying to install mysql gem on ruby 1.9.1p129.
Here the result : (do in root)
gem1.9 install mysql – --with-mysql-config=/usr/bin/mysql_config
GET 304 Not Modified: RubyGems.org | your community gem host
Installing gem mysql-2.7
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/COPYING
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/COPYING.ja
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/README.html
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/README_ja.html
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/extconf.rb
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/mysql.c.in
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/test.rb
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/tommy.css
/usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/mysql.gemspec
Building native extensions. This could take a while…
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9 extconf.rb install mysql –
–with-mysql-config=/usr/bin/mysql_config
checking for mysql_ssl_set()… yes
checking for mysql.h… yes
creating Makefile
make
gcc -I. -I/usr/include/ruby1.9-1.9.1/x86_64-linux
-I/usr/include/ruby1.9-1.9.1/ruby/backward -I/usr/include/ruby1.9-1.9.1
-I. -DHAVE_MYSQL_SSL_SET -DHAVE_MYSQL_H -I/usr/include/mysql
-DBIG_JOINS=1 -fPIC -fno-strict-aliasing -DUNIV_LINUX -fPIC -g -O2 -O2
-g -Wall -Wno-parentheses -fPIC -o mysql.o -c mysql.c
mysql.c:6:21: erreur: version.h : Aucun fichier ou dossier de ce type
mysql.c: In function ‘make_field_obj’:
mysql.c:185: attention : unused variable ‘hash’
mysql.c: In function ‘escape_string’:
mysql.c:267: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:268: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:268: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:268: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:268: erreur: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘real_escape_string’:
mysql.c:401: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:402: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:402: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:402: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:402: erreur: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘query’:
mysql.c:710: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:710: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:729: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:729: erreur: ‘struct RString’ has no member named ‘len’
mysql.c: In function ‘query_with_result_set’:
mysql.c:882: attention : implicit declaration of function ‘TypeError’
mysql.c: In function ‘fetch_field_direct’:
mysql.c:960: attention : implicit declaration of function ‘Raise’
mysql.c: In function ‘fetch_hash2’:
mysql.c:1032: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:1033: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘field_inspect’:
mysql.c:1157: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:1158: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:1158: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘stmt_bind_result’:
mysql.c:1284: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c: In function ‘stmt_execute’:
mysql.c:1346: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:1347: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:1348: erreur: ‘struct RString’ has no member named ‘len’
mysql.c:1359: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1360: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1361: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1362: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1363: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1364: erreur: ‘struct RArray’ has no member named ‘ptr’
mysql.c:1316: attention : unused variable ‘false’
mysql.c: In function ‘stmt_prepare’:
mysql.c:1584: erreur: ‘struct RString’ has no member named ‘ptr’
mysql.c:1584: erreur: ‘struct RString’ has no member named ‘len’
make: *** [mysql.o] Erreur 1
So, it seems “version.h” is missing. I have install
“libmysqlclient16-dev” because I’m using mysql 5.1.
I have found mysql_version.h in package.
Did I miss another package ?