On 11/12/2010 6:19 AM, dave lilley wrote:


On 11 December 2010 17:17, Jeremy Evans <[email protected] <mailto:[email protected]>> wrote:


    On Dec 10, 7:00 pm, dave <[email protected]
    <mailto:[email protected]>> wrote:
    > I've used the snippet of code below on my devlopement box fine
    (using
    > linux) and on another Linux box.
    >
    This should make it obvious what the problem is.  Install the mysql
    gem and the problem should go away.

Well I got a LIBMYSQL.dll error so found it on the net and now I get a error procedure point mysql_row_tell could not be located in the DDL libmysql.

I don't want to have mysql server installed as I want to create an exe or single file (via exerb) that i can take and put onto other windows PC's and have the program "just work".

I will be accessing a remote MYSQL server via the net or local network just not local to the PC.

I rechecked my Linux dev PC and see I've not got mysql gem loaded so this was something i didn't think of.

have you other thoughts ?

You need to install the mysql gem (2.8.1 is the latest I think)

gem install mysql

and then go here:

http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll

to get a copy if libmysql.dll and put it in your ruby/lib folder (C:/Ruby187/lib/ in your setup it seems)

The problem is that the mysql gem under windows only seems to work properly with an older libmysql.dll from mysql 5.0 as I suspect that is what the latest version of the mysql gem was compiled against.

When you install the mysql gem under linux, it get compiled against whwever version of mysql client you have at the time and so always works.

Cheers,
Gary.



--
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to