Forum: Ruby on Rails Problems installing mysql gem in Rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Nuugii L. (Guest)
on 2008-11-24 18:55
Hi' Rails riders. I having upgraded everything and upgraded to
Rails 2.2.2 I now wanted to install the MySQL gem as I am getting the
following error when trying to load up the app.

no such file to load -- mysql

Normally running gem install mysql works with no problems but, now I get
the following:

>gem install mysql
gem install mysql
Successfully installed mysql-2.7.3-x86-mswin32
1 gem installed
Installing ri documentation for mysql-2.7.3-x86-mswin32...
Installing RDoc documentation for mysql-2.7.3-x86-mswin32...
ERROR:  While generating documentation for mysql-2.7.3-x86-mswin32
... MESSAGE:   Unhandled special: Special: type=17, text="<!-- $Id:
README.html,v 1.20 2006-12-20 05:31:52 tommy Exp $ -->"
... RDOC args: --op
c:/ruby/lib/ruby/gems/1.8/doc/mysql-2.7.3-x86-mswin32/rdoc --exclude ext
--main README --quiet ext README docs/README.html
(continuing with the rest of the installation)
>

How to install mysql in Rails 2.2.2.
Frederick C. (Guest)
on 2008-11-24 19:12
(Received via mailing list)
On 24 Nov 2008, at 16:55, Nurzed L. wrote:

>
> c:/ruby/lib/ruby/gems/1.8/doc/mysql-2.7.3-x86-mswin32/rdoc --exclude
> ext
> --main README --quiet ext README docs/README.html
> (continuing with the rest of the installation)
>>
>
> How to install mysql in Rails 2.2.2.

Well first off install the mysql gem has nothing to do with what
version of rails is installed. If it's not happy with one of the rdoc
comments you could just pass --no-rdoc (although by the looks of it
doesn't matter - it installed the gem anyway, just not the docs).

Fred
Wally Valters (Guest)
on 2008-11-25 16:33
(Received via mailing list)
if you fire up irb and try require 'mysql' what do you get ??


On Nov 24, 11:11 am, Frederick C. <removed_email_address@domain.invalid>
Frederick C. (Guest)
on 2008-11-25 17:26
(Received via mailing list)
On 25 Nov 2008, at 14:04, Wally Valters wrote:

>
> if you fire up irb and try require 'mysql' what do you get ??
>
>
don't forget to require 'rubygems' first

Fred
Pokerlad (Guest)
on 2008-12-05 11:51
(Received via mailing list)
I had this problem. My solution was to copy libmysql.dll from the
MYSQL installation to ruby/bin.

The irb led me to this solution.

Scott

On Nov 25, 3:25 pm, Frederick C. <removed_email_address@domain.invalid>
Ray C. (Guest)
on 2008-12-07 00:38
(Received via mailing list)
I recently upgraded from 2.1.2 to 2.2.2 and was having trouble with
mysql - copying the dll fixed this for me also.  Thanks!
Ray
This topic is locked and can not be replied to.