From: Luis Lavena Date: 2009-09-03T05:20:26+09:00 Subject: Re: gem install mysql returns list of No definition for XYZ On Sep 2, 6:46 pm, Joao Silva wrote: > I fix the problem. > > gem install mysql > it says, "Successfully installed mysql-2.8.1" > so I do, updatedb > then i do, locate mysql-2.8.1 > which gives me > /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/mysql_api.so > so I copy to my ruby program dir, cp > /var/lib/gems/1.8/gems/mysql-2.8.1/ext/mysql_api/mysql_api.so ./ > Then i must edit the require line of my program > require "./mysql" > becomes > require "./mysql_api" > > Thank you all. > First: do not top post. Second: there is no error in the installation, but the generation of documentation. Third: cannot reproduce: luis@seyori ~$ sudo gem install mysql --ri --rdoc Building native extensions. This could take a while... Successfully installed mysql-2.8.1 1 gem installed Installing ri documentation for mysql-2.8.1... Updating ri class cache with 2771 classes... Installing RDoc documentation for mysql-2.8.1... Forth: You're trying to use a gem, and for that you need to require 'rubygems' prior using it: require 'rubygems' require 'mysql' That works. Manual copy of the file could introduce other issues in your environment. Try avoid that. -- Luis Lavena