coba di uninstall dulu yang 2.7 nya (apa udah?) trus ikuti install instruction dari README nya http://github.com/kwatch/mysql-ruby/tree/master nggak pake gem, compile manual :)
sukses sob! --Gozali On May 20, 2009, at 8:39 AM, ShidEx wrote: > > > muncul error kayak di bawah ini??katanya sih di search di internet > suruh hapus #define ulong unsigned long, tapi di file mana ya?? ada > solusi? > > Pesan error : > > In file included from /usr/include/stdlib.h:320, > from /usr/local/include/ruby-1.9.1/ruby/ruby.h:50, > from /usr/local/include/ruby-1.9.1/ruby.h:32, > from mysql.c:6: > /usr/include/sys/types.h:151: error: duplicate unsigned > make: *** [mysql.o] Error 1 > > Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/ > gems/kwatch-mysql-ruby-2.8.1 for inspection. > Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/kwatch-mysql- > ruby-2.8.1/ext/gem_make.out > > ________________________________ > From: Achmad Gozali <[email protected]> > To: [email protected] > Sent: Tuesday, May 19, 2009 18:18:04 > Subject: Re: [id-ruby] error install gem mysql > > masih pake connector yg 2.7? di install dulu yg 2.8 trus update > kwatch- > mysql-ruby nya > kira2 begitu :) > > --gozali > > On May 19, 2009, at 5:35 PM, ShidEx wrote: > > > > > > > om gozalli pakegem install kwatch-mysql-ruby > > --source=http://gems.github.com/Bisa > > Trus aku coba gem install mysql lagi gak????soalnya masih ke mysql > > 2.7 nya??ngubah ke mysql 2.8 nya gmn?? > > > > ________________________________ > > From: Achmad Gozali <[email protected]> > > To: [email protected] > > Sent: Tuesday, May 19, 2009 17:28:37 > > Subject: Re: [id-ruby] error install gem mysql > > > > dia pake Ruby 1.9.1 juga mungkin yg jadi masalah :) > > coba liat ini mas ShidEx > > http://www.rubyflow.com/items/1631 > > saya sendiri belum nyoba 1.9.1:) > > semoga berhasil > > > > --Gozali > > > > On May 19, 2009, at 5:23 PM, Leo Laksmana wrote: > > > > > > > > > > > Libmysqlclient-dev dah diinstall belom? > > > > > > -- > > > http://beol.laksmana.com/ > > > http://koprol.com/users/beol > > > > > > -----Original Message----- > > > From: ShidEx <[email protected]> > > > > > > Date: Tue, 19 May 2009 03:04:52 > > > To: <[email protected]> > > > Subject: [id-ruby] error install gem mysql > > > > > > > > > aku ada problem nih saat install mysql lewat gem..aku pake ruby > > > 1.9.1 trus rubygem 1.3.3 trus saat gem mysql ada pesan erornya. > ada > > > solusi gak ya??nih aku lampirin pesan erornya.. thanx > > > > > > Daun:/var/www/daunweb/sarang# gem install mysql > > > 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 > > > 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: error: version.h: No such file or directory > > > mysql.c: In function make_field_obj: > > > mysql.c:185: warning: unused variable hash > > > mysql.c: In function escape_string: > > > mysql.c:267: error: struct RString has no member named len > > > mysql.c:268: error: struct RString has no member named len > > > mysql.c:268: error: struct RString has no member named ptr > > > mysql.c:268: error: struct RString has no member named ptr > > > mysql.c:268: error: struct RString has no member named len > > > mysql.c: In function real_escape_string: > > > mysql.c:401: error: struct RString has no member named len > > > mysql.c:402: error: struct RString has no member named len > > > mysql.c:402: error: struct RString has no member named ptr > > > mysql.c:402: error: struct RString has no member named ptr > > > mysql.c:402: error: struct RString has no member named len > > > mysql.c: In function query: > > > mysql.c:710: error: struct RString has no member named ptr > > > mysql.c:710: error: struct RString has no member named len > > > mysql.c:729: error: struct RString has no member named ptr > > > mysql.c:729: error: struct RString has no member named len > > > mysql.c: In function query_with_result_set: > > > mysql.c:882: warning: implicit declaration of function TypeError > > > mysql.c: In function fetch_field_direct: > > > mysql.c:960: warning: implicit declaration of function Raise > > > mysql.c: In function fetch_hash2: > > > mysql.c:1032: error: struct RString has no member named ptr > > > mysql.c:1033: error: struct RString has no member named ptr > > > mysql.c: In function field_inspect: > > > mysql.c:1157: error: struct RString has no member named len > > > mysql.c:1158: error: struct RString has no member named ptr > > > mysql.c:1158: error: struct RString has no member named ptr > > > mysql.c: In function stmt_bind_result: > > > mysql.c:1284: error: struct RString has no member named ptr > > > mysql.c: In function stmt_execute: > > > mysql.c:1346: error: struct RString has no member named ptr > > > mysql.c:1347: error: struct RString has no member named len > > > mysql.c:1348: error: struct RString has no member named len > > > mysql.c:1359: error: struct RArray has no member named ptr > > > mysql.c:1360: error: struct RArray has no member named ptr > > > mysql.c:1361: error: struct RArray has no member named ptr > > > mysql.c:1362: error: struct RArray has no member named ptr > > > mysql.c:1363: error: struct RArray has no member named ptr > > > mysql.c:1364: error: struct RArray has no member named ptr > > > mysql.c:1316: warning: unused variable false > > > mysql.c: In function stmt_prepare: > > > mysql.c:1584: error: struct RString has no member named ptr > > > mysql.c:1584: error: struct RString has no member named len > > > make: *** [mysql.o] Error 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 > > > > > > > > > Get your new Email address! > > > Grab the Email name you've always wanted before someone else does! > > > http://mail.promotions.yahoo.com/newdomains/aa/ > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > > > ------------------------------------ > > > > > > ID-Ruby > > > Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk > > > segala varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program > > > yang dibuat dengan Ruby (Ruby on Rails, JRuby on Rails, Merb) > > > > > > http://rubyurl.com/Q8DD > > > http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > ------------------------------------ > > > > ID-Ruby > > Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk > > segala varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program > > yang dibuat dengan Ruby (Ruby on Rails, JRuby on Rails, Merb) > > > > http://rubyurl.com/Q8DD > > http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia > > > > Yahoo! Groups Links > > > > New Email addresses available on Yahoo! > > Get the Email name you've always wanted on the new @ymail and > > @rocketmail. > > Hurry before someone else does! > > http://mail.promotions.yahoo.com/newdomains/aa/ > > > > [Non-text portions of this message have been removed] > > > > > > > > [Non-text portions of this message have been removed] > > ------------------------------------ > > ID-Ruby > Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk > segala varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program > yang dibuat dengan Ruby (Ruby on Rails, JRuby on Rails, Merb) > > http://rubyurl.com/Q8DD > http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia > > Yahoo! Groups Links > > Get your preferred Email name! > Now you can @ymail.com and @rocketmail.com. > http://mail.promotions.yahoo.com/newdomains/aa/ > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] ------------------------------------ ID-Ruby Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk segala varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program yang dibuat dengan Ruby (Ruby on Rails, JRuby on Rails, Merb) <*> Kunjungi *arsip milis* id-ruby di http://groups.yahoo.com/group/id-ruby/messages http://www.mail-archive.com/[email protected]/ http://rubyurl.com/Q8DD http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia <*> Baca peraturan id-ruby sebelum posting http://rubyurl.com/gay1 <*> Ikutilah Jajak Pendapat ID-Ruby http://rubyurl.com/3CCt <*> Links ID-Ruby http://rubyurl.com/n96r <*> Database ID-Ruby http://rubyurl.com/Iw3u <*> Kunjungi Situs Resmi Ruby Indonesia http://www.ruby-lang.org/id/ <*> Join Ruby Indonesia on Facebook http://rubyurl.com/QV48 <*> Join Ruby Indonesia on LinkedIn http://rubyurl.com/eh0i Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/id-ruby/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/id-ruby/join (Yahoo! ID required) <*> To change settings via email: mailto:[email protected] mailto:[email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

