jj.69kt
28-05-2009, 13:38
Ciao il mio sistema è Mac OSX Leopard...
E ho ricevuto questo errore:
mbp:ocarotti exol$ rake db:migrate
(in /Users/exol/Sites/ruby/ocarotti)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
Quindi documentandomi ho trovato la soluzione visto che "gem install mysql" dava errori...
Ma comunque ecco il risultato...
bash-3.2$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/applications/XAMPP/xamppfiles/bin/mysql_config
Password:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/applications/XAMPP/xamppfiles/bin/mysql_config
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... 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
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
bash-3.2$
Notare che io mysql in effetti lo ho in "/applications/XAMPP/xamppfiles/bin/" non è un errore...
Suggerimenti sul da farsi??
E ho ricevuto questo errore:
mbp:ocarotti exol$ rake db:migrate
(in /Users/exol/Sites/ruby/ocarotti)
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load -- mysql
(See full trace by running task with --trace)
Quindi documentandomi ho trovato la soluzione visto che "gem install mysql" dava errori...
Ma comunque ecco il risultato...
bash-3.2$ sudo env ARCHFLAGS="-arch i386" gem install mysql -- --with-mysql-config=/applications/XAMPP/xamppfiles/bin/mysql_config
Password:
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb --with-mysql-config=/applications/XAMPP/xamppfiles/bin/mysql_config
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... 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
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
bash-3.2$
Notare che io mysql in effetti lo ho in "/applications/XAMPP/xamppfiles/bin/" non è un errore...
Suggerimenti sul da farsi??