RoR & MySQL: mkmf (LoadError)
Ainda colocando a mesma aplicação Ruby on Rails para rodar, vi agora que falta a gem MySQL:
kosh@harvey-dent:~/Projects/Kosh/peniel/svn$ rake db:migrate
(in /home/kosh/Projects/Kosh/peniel/svn)
!!! 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
Fiz como a mensagem de erro sugere, e deu outro erro:
kosh@harvey-dent:~/Projects/Kosh/peniel/svn$ sudo gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:10:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:10
Claro, não tinha instalado o pacote ruby1.8-dev:
sudo apt-get install ruby1.8-dev
Agora sim, pude instalar a gem MySQL e executar o migrate.
;-)
kosh@harvey-dent:~/Projects/Kosh/peniel/svn$ rake db:migrate
(in /home/kosh/Projects/Kosh/peniel/svn)
!!! 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
Fiz como a mensagem de erro sugere, e deu outro erro:
kosh@harvey-dent:~/Projects/Kosh/peniel/svn$ sudo gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:10:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:10
Claro, não tinha instalado o pacote ruby1.8-dev:
sudo apt-get install ruby1.8-dev
Agora sim, pude instalar a gem MySQL e executar o migrate.
;-)
Comentários
Postar um comentário