saya dah coba pake yg pertama mysqlplus ada error begini:
Building native extensions.  This could take a while...
ERROR:  Error installing mysqlplus:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
--with-opt-dir
 --without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
 --with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
 --without-make-prog
--srcdir=.
--curdir
 --ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-mysql-config
 --without-mysql-config
--with-mysql-dir
--without-mysql-dir
 --with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
 --without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
 --with-mlib
--without-mlib
--with-mysqlclientlib
 --without-mysqlclientlib
--with-zlib
--without-zlib
 --with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
 --without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
 --with-nsllib
--without-nsllib
--with-mysqlclientlib
 --without-mysqlclientlib
--with-mygcclib
--without-mygcclib
 --with-mysqlclientlib
--without-mysqlclientlib


Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/mysqlplus-0.1.1 for inspection.

kalo pake cara yg kedua ada masalah ini:

sudo ARCHFLAGS=”-arch i386″ gem install mysql —
–with-mysql-dir=/Applications/XAMPP/xamppfiles/
Password:
sudo: ARCHFLAGS=”-arch: command not found

ada saran? mungkin ada component yg saya belum install kali ya?

2010/2/15 Bobby Prabowo <[email protected]>

>
>
>
> On Feb 15, 2010, at 1:14 AM, Dwinanto Santoso wrote:
>
> > saya mau tanya apakah ada yg pernah coba instalasi gem mysql dengan
> platform
> > mac os x 10.5.8 dan menggunakan xampp?
> >
> > saya sudah coba ikuti instruksi berikut:
> >
> http://wonko.com/post/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard
> >
> > tp masih gagal, message errornya sama kalo misalnya kita coba install
> dengan
> > menggunakan gem install mysql.
> >
> > ada yang bisa kasih saran saya musti cari literatur dimana?
> >
> > thx a bunch
> >
> >
> bisa juga pakai yang ini kalau masih mau mempertahankan xampp nya
>
>
> http://blog.keksrolle.de/2009/10/09/resolving-trouble-with-ruby-on-rails-with-mysql-on-xampp-on-osx-snow-leopard.html
>
>
> [Non-text portions of this message have been removed]
>
>  
>



-- 
www.adeape.com


[Non-text portions of this message have been removed]

Kirim email ke