Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   gem1.9 install mysql on ruby 1.9.1p129 failed (http://www.velocityreviews.com/forums/t858534-gem1-9-install-mysql-on-ruby-1-9-1p129-failed.html)

geistteufel 07-14-2009 02:00 AM

gem1.9 install mysql on ruby 1.9.1p129 failed
 
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=3D/usr/bin/mysql_config
GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz
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=3D/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=3D1 -fPIC -fno-strict-aliasing -DUNIV_LINUX -fPIC -g -O2 -O=
2
-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 =91make_field_obj=92:
mysql.c:185: attention : unused variable =91hash=92
mysql.c: In function =91escape_string=92:
mysql.c:267: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:268: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:268: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:268: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:268: erreur: =91struct RString=92 has no member named =91len=92
mysql.c: In function =91real_escape_string=92:
mysql.c:401: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:402: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:402: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:402: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:402: erreur: =91struct RString=92 has no member named =91len=92
mysql.c: In function =91query=92:
mysql.c:710: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:710: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:729: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:729: erreur: =91struct RString=92 has no member named =91len=92
mysql.c: In function =91query_with_result_set=92:
mysql.c:882: attention : implicit declaration of function =91TypeError=92
mysql.c: In function =91fetch_field_direct=92:
mysql.c:960: attention : implicit declaration of function =91Raise=92
mysql.c: In function =91fetch_hash2=92:
mysql.c:1032: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:1033: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c: In function =91field_inspect=92:
mysql.c:1157: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:1158: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:1158: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c: In function =91stmt_bind_result=92:
mysql.c:1284: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c: In function =91stmt_execute=92:
mysql.c:1346: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:1347: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:1348: erreur: =91struct RString=92 has no member named =91len=92
mysql.c:1359: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1360: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1361: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1362: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1363: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1364: erreur: =91struct RArray=92 has no member named =91ptr=92
mysql.c:1316: attention : unused variable =91false=92
mysql.c: In function =91stmt_prepare=92:
mysql.c:1584: erreur: =91struct RString=92 has no member named =91ptr=92
mysql.c:1584: erreur: =91struct RString=92 has no member named =91len=92
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 ?



--=20
http://blog.celogeek.fr : Celogeek Blog
- a geek web site, with my tricks for phone (tuto, test ...), linux and=20
more (french only)
- Fan de linux, de mobile et de programmation, mon blog est fait pour=20
vous ! Tous mes trucs et astuces la !


Roger Pack 07-14-2009 02:12 AM

Re: gem1.9 install mysql on ruby 1.9.1p129 failed
 

> gem1.9 install mysql -- --with-mysql-config=/usr/bin/mysql_config
> GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz
> Installing gem mysql-2.7
> /usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/COPYING


You're going to want to install version 2.8.1 for ruby 1.9

or perhaps
sudo gem install hectoregm-mysql-ruby
gleaned from
http://isitruby19.com/mysql
=r
--
Posted via http://www.ruby-forum.com/.


geistteufel 07-14-2009 09:48 AM

Re: gem1.9 install mysql on ruby 1.9.1p129 failed
 
Roger Pack a =C3=A9crit :
>> gem1.9 install mysql -- --with-mysql-config=3D/usr/bin/mysql_config
>> GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz
>> Installing gem mysql-2.7
>> /usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/COPYING
>> =20

>
> You're going to want to install version 2.8.1 for ruby 1.9
>
> or perhaps
> sudo gem install hectoregm-mysql-ruby
> gleaned from
> http://isitruby19.com/mysql
> =3Dr
> =20

Ok I see

What's the difference between hectoregm-mysql-ruby and mysql-2.8.1 ?

--=20
http://blog.celogeek.fr : Celogeek Blog
- a geek web site, with my tricks for phone (tuto, test ...), linux and m=
ore (french only)
- Fan de linux, de mobile et de programmation, mon blog est fait pour vou=
s ! Tous mes trucs et astuces la !



geistteufel 07-14-2009 10:05 AM

Re: gem1.9 install mysql on ruby 1.9.1p129 failed
 
geistteufel a =C3=A9crit :
> Roger Pack a =C3=A9crit :
>>> gem1.9 install mysql -- --with-mysql-config=3D/usr/bin/mysql_config
>>> GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz
>>> Installing gem mysql-2.7
>>> /usr/lib/ruby1.9/gems/1.9.1/gems/mysql-2.7/COPYING
>>> =20

>>
>> You're going to want to install version 2.8.1 for ruby 1.9
>>
>> or perhaps
>> sudo gem install hectoregm-mysql-ruby
>> gleaned from
>> http://isitruby19.com/mysql
>> =3Dr
>> =20

> Ok I see
>
> What's the difference between hectoregm-mysql-ruby and mysql-2.8.1 ?
>

Thanks ! hectoregm-mysql-ruby works !

I have clone the git repos and build the gem. After that I have install i=
t.
So it's working !

It's not in gem global repository yet. gem install hectoregm-mysql-ruby=20
doesn't work.
Did I miss a source repository ?

--=20
http://blog.celogeek.fr : Celogeek Blog
- a geek web site, with my tricks for phone (tuto, test ...), linux and m=
ore (french only)
- Fan de linux, de mobile et de programmation, mon blog est fait pour vou=
s ! Tous mes trucs et astuces la !



Roger Pack 07-14-2009 12:51 PM

Re: gem1.9 install mysql on ruby 1.9.1p129 failed
 

> Thanks ! hectoregm-mysql-ruby works !
> Did I miss a source repository ?


gem sources -a http://gems.github.com
:)

--
Posted via http://www.ruby-forum.com/.


geistteufel 07-14-2009 04:59 PM

Re: gem1.9 install mysql on ruby 1.9.1p129 failed
 
Roger Pack a =C3=A9crit :
>> Thanks ! hectoregm-mysql-ruby works !
>> Did I miss a source repository ?
>> =20

>
> gem sources -a http://gems.github.com
> :)
>
> =20

ok I see.
I'm just starting learning myself rails. And well, I'm starting by=20
installing lastest ruby (over package here=20
http://blog.celogeek.fr/linux/celoge...-jaunty-repos/ I have made).
So now, installing rails is ok. Installing passenger is ok. I need mysql=20
connection. So it's my first issue.
Thanks for your help.

--=20
http://blog.celogeek.fr : Celogeek Blog
- a geek web site, with my tricks for phone (tuto, test ...), linux and m=
ore (french only)
- Fan de linux, de mobile et de programmation, mon blog est fait pour vou=
s ! Tous mes trucs et astuces la !




All times are GMT. The time now is 12:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57