Instal MySQL gem problem

Hi dear members,
I'm having a problem in installing Mysql Gem on cPanel. I searched the
web for a solution, but I didn't get relevant solutions to solve this
issue. The problem picture is in this document http://bit.ly/dM3VMT.
Thanks for your attention.

Regards,
André.


André Freitas

          2011年1月31日 2:06

Hi dear members,

      I'm having a problem in installing Mysql Gem on cPanel. I

searched the

      web for a solution, but I didn't get relevant solutions to

solve this

      issue. The problem picture is in this document

.
Thanks for your attention.
Regards,
André.


I am curious why the errors didn't include the --with-mysql-dir

option,but you may try it

gem install mysql -- --with-mysql-dir=/usr/local/mysql

the mysql dir is important,ruby know the mysql installation because

it will copy some .so files to ruby library

Hello Andre,

I too faced the exact same error several times not sure what worked for me. But you can google it for some option, something will work. I am optimistic that only by specifying the various option you can able to figure it out.

Please give a try with below option

gem install mysql – --with-mysql-config=//mysql/mysql_config

or

gem install mysql – --with-opt-lib=//mysql/lib

Where you are specifying mysql try giving the option.

mysql – --with-mysql-config=//mysql/mysql_config

but as u r installing from cpanel I am not sure you have access to the mysql installation path or not.

Thanks!

Butu