Featured Post

Script para dar commit/deploy automático no Heroku

Para realizar commit e deploy automático no Heroku, utilizo o seguinte script: git add . git commit -m "Automatic Commit" git push heroku master

Read More

Erro ao utilizar o mysql no ruby: LIBMYSQL.dll is missing

Posted by Luiz Picanço | Posted in Ruby, Ruby on Rails | Posted on 21-02-2010

Tags: , , ,

4,988

Um erro muito comum que costuma acontecer no ruby/rails, em ambiente windows é: “LIBMYSQL.dll is missing from your computer”

LIMYSQL.dll is missing

E a mensagem também pode aparecer no console da seguinte forma:

ruby.exe - Unable to locate Component
This application has failed to start because LIBMYSQL.DLL was not
found. Re-installing the application might
fix this problem.

Esse erro ocorre porque a dll do mysql, LIBMYSQL.dll, não foi localizada. Para resolver esse problema, faça o seguinte:

1 – Instale a gem do mysql

1
gem install mysql

2 – Copie o arquivo LIBMYSQL.dll do diretório bin do mysql(ex.: c:\mysql\bin) para o diretório bin do ruby (ex.: c:\ruby\bin)