chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] mysql-client egg not working


From: Albert Hoenigmann
Subject: Re: [Chicken-users] mysql-client egg not working
Date: Sat, 19 May 2012 22:50:44 -0700

Thanks Carl.  It is working now.

On Sat, May 19, 2012 at 7:20 PM, Carl <address@hidden> wrote:
> Hi Albert,
>
> I was able to reproduce this problem with MySQL 5.5, chicken 4.7.0,
> mysql-client 0.6.
>
> There's two work arounds, either change the dependent shared library
> install name in your installed mysql-client egg:
>
> sudo install_name_tool -change libmysqlclient.18.dylib
> /usr/local/mysql/lib/libmysqlclient.18.dylib
> /usr/local/lib/chicken/6/mysql-client.so
>
> Or, add the MySQL library path:
>
> export DYLD_LIBRARY_PATH=/usr/local/mysql/lib
>
> It looks like this problem is due to the MySQL 5.5 installation, where
> the symlink in /usr/local/mysql/lib does not use a full path, it
> points to another file in the same directory:
>
> lrwxr-xr-x   1 root  wheel        23 20 May 11:05 libmysqlclient.dylib
> -> libmysqlclient.18.dylib
>
> Hope that helps,
> Carl
>
>
> On Sun, May 20, 2012 at 2:31 AM, Albert Hoenigmann <address@hidden> wrote:
>> More information:
>>
>> Chicken version:
>> csi -version
>>
>> CHICKEN
>> (c)2008-2011 The Chicken Team
>> (c)2000-2007 Felix L. Winkelmann
>> Version 4.7.0
>> macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
>> compiled 2012-02-15 on Alberts-MacBook-Air.local (Darwin)
>>
>> Output of chicken-install -s mysql-client >mysql-egg-install.log 2>&1
>> retrieving ...
>> resolving alias `kitten-technologies' to:
>> http://chicken.kitten-technologies.co.uk/henrietta.cgi
>> connecting to host "chicken.kitten-technologies.co.uk", port 80 ...
>> requesting "/henrietta.cgi?name=mysql-client&mode=default" ...
>> reading response ...
>> HTTP/1.1 200 OK
>> Date: Sat, 19 May 2012 16:26:56 GMT
>> Server: Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.9-dev DAV/2
>> SVN/1.6.17 PHP/5.2.17 mod_fastcgi/2.4.6
>> Connection: close
>> Transfer-Encoding: chunked
>> Content-Type: text/plain
>> reading chunks .
>> reading files ...
>>  ./doc/
>>  ./doc/mysql-client.wiki
>>  ./Makefile
>>  ./README
>>  ./mysql-client.release-info
>>  ./mysql-client.meta
>>  ./mysql-client.setup
>>  ./mysql-client.scm
>>  mysql-client located at
>> /var/folders/xv/j3nfmkcs2l59vtbtf6l1g60w0000gn/T/tempab22/mysql-client
>> checking platform for `mysql-client' ...
>> checking dependencies for `mysql-client' ...
>> install order:
>> ("mysql-client")
>> installing mysql-client: ...
>> changing current directory to
>> /var/folders/xv/j3nfmkcs2l59vtbtf6l1g60w0000gn/T/tempab22/mysql-client
>>  /usr/local/bin/csi -bnq -setup-mode -e "(require-library setup-api)"
>> -e "(import setup-api)" -e "(setup-error-handling)" -e
>> "(extension-name-and-version '(\"mysql-client\" \"\"))" -e
>> "(sudo-install #t)"
>> /var/folders/xv/j3nfmkcs2l59vtbtf6l1g60w0000gn/T/tempab22/mysql-client/mysql-client.setup
>>  /usr/local/bin/csc -feature compiling-extension -setup-mode    -C
>> -I/usr/local/mysql/include -L -L/usr/local/mysql/lib -L -lmysqlclient
>> -L -lpthread -d0 -O3 -s mysql-client.scm -j mysql-client
>>  /usr/local/bin/csc -feature compiling-extension -setup-mode    -d0
>> -O3 -s mysql-client.import.scm
>>  sudo cp -r mysql-client.so /usr/local/lib/chicken/6/mysql-client.so
>>  sudo chmod a+r /usr/local/lib/chicken/6/mysql-client.so
>>  sudo cp -r mysql-client.import.so
>> /usr/local/lib/chicken/6/mysql-client.import.so
>>  sudo chmod a+r /usr/local/lib/chicken/6/mysql-client.import.so
>>  sudo mv /var/folders/xv/j3nfmkcs2l59vtbtf6l1g60w0000gn/T/tempab23.tmp
>> /usr/local/lib/chicken/6/mysql-client.setup-info
>>  sudo chmod a+r /usr/local/lib/chicken/6/mysql-client.setup-info
>>
>>
>> On Sat, May 19, 2012 at 5:19 AM, Carl <address@hidden> wrote:
>>> Hi Albert,
>>>
>>> Could you also provide the output from the installation process, for 
>>> example:
>>>
>>> chicken-install -s mysql-client >mysql-egg-install.log 2>&1
>>>
>>> Thanks,
>>> Carl
>>>
>>> On Sat, May 19, 2012 at 9:57 PM, Albert Hoenigmann <address@hidden> wrote:
>>>> Here is the additional information on my mysql-client egg not working
>>>> in macosx Lion 10.7.3 after sudo chicken-install mysql-client was
>>>> successful:
>>>>
>>>> Output from: chicken-status mysql-client:
>>>> chicken-status mysql-client
>>>> mysql-client .................................................... version: 
>>>> 0.6
>>>>
>>>> Output from mysql_config --version
>>>> 5.5.24
>>>>
>>>> /usr/local/lib/chicken/6/mysql-client.so:
>>>>        libmysqlclient.18.dylib (compatibility version 18.0.0, current
>>>> version 18.0.0)
>>>>        /usr/local/lib/libchicken.dylib (compatibility version 1.0.0,
>>>> current version 1.0.0)
>>>>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
>>>> current version 159.1.0)
>>>>        /opt/local/lib/gcc46/libgcc_s.1.dylib (compatibility version
>>>> 1.0.0, current version 1.0.0
>>>>
>>>> On Mac OS X Lion 10.7.3, so output of tool -L
>>>> /usr/local/lib/chicken/6/mysql-client.so
>>>> /usr/local/lib/chicken/6/mysql-client.so:
>>>>        libmysqlclient.18.dylib (compatibility version 18.0.0, current
>>>> version 18.0.0)
>>>>        /usr/local/lib/libchicken.dylib (compatibility version 1.0.0,
>>>> current version 1.0.0)
>>>>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
>>>> current version 159.1.0)
>>>>        /opt/local/lib/gcc46/libgcc_s.1.dylib (compatibility version
>>>> 1.0.0, current version 1.0.0)
>>>>
>>>> thanks,
>>>> albert
>>>> On Sat, May 19, 2012 at 3:14 AM, Carl <address@hidden> wrote:
>>>>> Hi Albert,
>>>>>
>>>>> Can you provide additional information:
>>>>>
>>>>> * Output from: chicken-status mysql-client
>>>>> * Output from: mysql_config --version
>>>>> * If on Linux, the output of: ldd /usr/local/lib/chicken/6/mysql-client.so
>>>>> * If on Mac, the output of: otool -L 
>>>>> /usr/local/lib/chicken/6/mysql-client.so)
>>>>>
>>>>> Thanks,
>>>>> Carl
>>>>>
>>>>> On Sat, May 19, 2012 at 4:35 PM, Albert Hoenigmann <address@hidden> wrote:
>>>>>> When starting the chicken scheme interpreter (csi) and executing the
>>>>>> following s-expression the following error occurs in the interpreter.
>>>>>> The command sudo chicken-install mysql-client installed the egg
>>>>>> without any problems.
>>>>>>
>>>>>> #;1> (use mysql-client)
>>>>>> ; loading /usr/local/lib/chicken/6/mysql-client.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/scheme.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/chicken.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/foreign.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/irregex.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/data-structures.import.so ...
>>>>>> ; loading /usr/local/lib/chicken/6/mysql-client.so ...
>>>>>>
>>>>>> Error: unbound variable:
>>>>>> |\xcf\xfa\xed\xfe\x07\x00\x00\x01\x03\x00\x00\x00\x08\x00\x00\x00|
>>>>>>
>>>>>>        Call history:
>>>>>>
>>>>>>        <syntax>          (use mysql-client)
>>>>>>        <syntax>          (##core#require-extension (mysql-client) #t)
>>>>>>        <syntax>          (##core#begin (##core#begin (##core#begin
>>>>>> (##sys#require (quote mysql-client))) (import mysql-client......
>>>>>>        <syntax>          (##core#begin (##core#begin (##sys#require
>>>>>> (quote mysql-client))) (import mysql-client))
>>>>>>        <syntax>          (##core#begin (##sys#require (quote 
>>>>>> mysql-client)))
>>>>>>        <syntax>          (##sys#require (quote mysql-client))
>>>>>>        <syntax>          (quote mysql-client)
>>>>>>        <syntax>          (##core#quote mysql-client)
>>>>>>        <syntax>          (import mysql-client)
>>>>>>        <syntax>          (import scheme chicken foreign irregex
>>>>>> data-structures)
>>>>>>        <syntax>          (##core#undefined)
>>>>>>        <syntax>          (##core#undefined)
>>>>>>        <syntax>          (##core#undefined)
>>>>>>        <eval>    (##sys#require (quote mysql-client))  <--
>>>>>>
>>>>>> _______________________________________________
>>>>>> Chicken-users mailing list
>>>>>> address@hidden
>>>>>> https://lists.nongnu.org/mailman/listinfo/chicken-users



reply via email to

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