chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Compiling mysql egg (Mac OS X)


From: Kon Lovett
Subject: Re: [Chicken-users] Compiling mysql egg (Mac OS X)
Date: Fri, 13 Oct 2006 11:58:20 -0700

On Oct 13, 2006, at 9:05 AM, Brent Fitzgerald wrote:

Hi all, I've only just begun with chicken and I am discovering all the wonderful eggs. I'm particularly interested in getting Toby Butzon's mysql egg installed, but I'm having some trouble with the compilation. See below for transcript of the trouble.

My mysql install is /usr/local/mysql. Among various baffled attempts, I've tried adding -I/usr/local/mysql/include and -L/usr/ local/mysql/lib to the mysql.setup's csc options, but with no effect.

1) Refers to "mysql.h" as "mysql/mysql.h" so either a link, say "/usr/ local/include/mysql", to "/usr/local/mysql/include" or such a link in ""/usr/local/mysql/include" is needed. Or edit the source.

2) The symbols MYSQL_OPTION_MULTI_STATEMENTS_ON, etc. will never be 'defined' since they are declared as foreign-variable which cannot be "seen" outside the current compilation unit.

3) mysql-get-proto-info is defined wrong in the source.

3) Will not work w/ ver > 3 since mysql_connect, mysql_create_db, & mysql_drop_db are not only deprecated as of ver 4 but not available unless the mysql client library is compiled w/ -DUSE_OLD_FUNCTIONS. A problem for people who just have the binaries (like me).

Attached are a new setup & source which might work for you.

Best Wishes,
Kon

<snip>
---

Attachment: mysql.scm
Description: Binary data

Attachment: mysql.setup
Description: Binary data




reply via email to

[Prev in Thread] Current Thread [Next in Thread]