From: Justin To on
After downloading the mysql-ruby-2.8pre4 from
[http://tmtm.org/downloads/mysql/ruby/]...I stuck it into
C:\ruby\lib\mysql-ruby-2.8pre4.

The instructions on http://www.tmtm.org/en/mysql/ruby/ says I need to
run the command % ruby extconf.rb:

checking for main() in libmysql.lib... no

is the error that I get.

I need to access MySQL with Ruby, but I keep running into all sorts of
problems!

Thanks for the help!
--
Posted via http://www.ruby-forum.com/.

From: hemant on
On Sat, Jul 5, 2008 at 9:30 AM, Justin To <tekmc(a)hotmail.com> wrote:
> After downloading the mysql-ruby-2.8pre4 from
> [http://tmtm.org/downloads/mysql/ruby/]...I stuck it into
> C:\ruby\lib\mysql-ruby-2.8pre4.
>
> The instructions on http://www.tmtm.org/en/mysql/ruby/ says I need to
> run the command % ruby extconf.rb:
>
> checking for main() in libmysql.lib... no
>
> is the error that I get.
>
> I need to access MySQL with Ruby, but I keep running into all sorts of
> problems!
>

You need mysql client libraries and header files. On ubuntu hardy, I
would get them with:

apt-get install mysql-common mysql-client libmysqlclient15-dev

From: Luis Lavena on
On Jul 5, 6:00 am, Justin To <te...(a)hotmail.com> wrote:
> After downloading the mysql-ruby-2.8pre4 from
> [http://tmtm.org/downloads/mysql/ruby/]...I stuck it into
> C:\ruby\lib\mysql-ruby-2.8pre4.
>
> The instructions onhttp://www.tmtm.org/en/mysql/ruby/says I need to
> run the command % ruby extconf.rb:
>
> checking for main() in libmysql.lib... no
>
> is the error that I get.
>
> I need to access MySQL with Ruby, but I keep running into all sorts of
> problems!
>
> Thanks for the help!

There is a pre-built gem for mysql-ruby for Windows (since It seems
you're trying to get it running there).

gem install mysql and choose latests version (with mswin32 platform)
if you're asked by rubygems.

HTH,
--
Luis Lavena
From: Justin To on
Doesn't seem to work, error with rdoc
--
Posted via http://www.ruby-forum.com/.

From: Luis Lavena on
On Jul 7, 1:52 am, Justin To <te...(a)hotmail.com> wrote:
> Doesn't seem to work, error with rdoc

It doesn't say "1 gem installed" ?

Weird, I just had it installed :-P

D.\Users\Luis>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

But even with the documentation error, still is installed.

HTH,
--
Luis Lavena
 | 
Pages: 1
Prev: false || not(true)
Next: unsubscribe