|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 677
|
[RoR] Errore con mysql..
Ciao il mio sistema è Mac OSX Leopard...
E ho ricevuto questo errore: Codice:
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) Ma comunque ecco il risultato... Codice:
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$
Suggerimenti sul da farsi??
__________________
Desktop: (In Vendita) iMac (12,2) 27" --> i5 QaudCore 2,7GHz, 8GB RAM, 1TB HDD.. Laptop (In Pensione): MacBook PRO (3,1) 15.4" (Glossy, ma pentito) --> 2.2Ghz, 4GB Ram.. Camera: Nikon D80 with Nikkor 18-55mm 1:3-5.6 GII + Nikkor 55-200mm 1:4-5.6 VR "Mobile": iPhone 5 64Gb MyEbay: 100%! • Mercatino (Green = Good; Red = Bad) UncleSam, Boxi80, Zuckerbaer, lamerone, danidj, maxmax80 |
|
|
|
|
|
#2 |
|
Senior Member
Iscritto dal: Oct 2007
Messaggi: 677
|
Ripropongo questo problema di mesi or sono..
__________________
Desktop: (In Vendita) iMac (12,2) 27" --> i5 QaudCore 2,7GHz, 8GB RAM, 1TB HDD.. Laptop (In Pensione): MacBook PRO (3,1) 15.4" (Glossy, ma pentito) --> 2.2Ghz, 4GB Ram.. Camera: Nikon D80 with Nikkor 18-55mm 1:3-5.6 GII + Nikkor 55-200mm 1:4-5.6 VR "Mobile": iPhone 5 64Gb MyEbay: 100%! • Mercatino (Green = Good; Red = Bad) UncleSam, Boxi80, Zuckerbaer, lamerone, danidj, maxmax80 |
|
|
|
|
|
#3 |
|
Senior Member
Iscritto dal: Dec 2001
Messaggi: 702
|
hai controllato il log di errore? quel problema si verifica quando non trova gli include mysql per compilare l'estensione .. verifica i vari path
ciao, g
__________________
Le mie app per iphone: Wow Minis Match Tracker ||| Wow Minis Hit Calculator (in review Frieza#916 @ SC2 ||| Giullo @ Steam |
|
|
|
|
|
#4 |
|
Messaggi: n/a
|
Domanda: hai provato eventualmente a reinstallare Ruby e RoR?
Magari con una nuova installazione pulita il problema si risolve? Nel caso tu non l'abbia ancora fatto prova a postare il tuo problema anche su questo forum specializzato: http://railsforum.com/ Ciao. |
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 11:04.



















