[Zope] mysqlda / mysql-python on OS X
Jim Roepcke
jim at roepcke.com
Wed Aug 25 18:39:47 EDT 2004
This page here might explain your problem and the solution:
http://q.queso.com/archives/001444
Note, if you're using the Plone 2 for Mac OS X install, you should use
"pysetup" (or do what it does) instead of just running python setup.py
build. The installer claims "ownership" of the Zope build, so it's
possible that a future upgrade could replace the Zope build and thus
remove your added packages.
If you use pysetup, the package will be installed into
$INSTANCE_HOME/lib/python, which Zope automatically adds to the
PYTHONPATH if it exists.
Example:
# assumes you have a Zope Instance in /Applications/Plone2/Sites named
"NameOfSite"
cd /path/to/python-package
/Applications/Plone2/Tools/pysetup NameOfSite
Jim
On Aug 25, 2004, at 1:04 PM, David Siedband wrote:
> I try installing mysql-python (for mysqlda) with the instance of
> python installed with the Plone installer on 10.3
>
> Ono-Sendai david$
> /Applications/Plone2/Library/Software/Zope270/Python/bin/python
> setup.py build
>
> I get:
>> building '_mysql' extension
>> gcc -bundle -bundle_loader
>> /Applications/Plone2/Library/Software/Zope270/Python/bin/python2.3
>> build/temp.darwin-7.5.0-Power_Macintosh-2.3/_mysql.o -L/usr/lib/mysql
>> -L/usr/local/lib/mysql -L/usr/local/mysql/lib
>> -L/usr/local/mysql/lib/mysql -L/sw/lib/mysql -lmysqlclient -lz -o
>> build/lib.darwin-7.5.0-Power_Macintosh-2.3/_mysql.so -flat_namespace
>> ld: warning -L: directory name (/usr/lib/mysql) does not exist
>> ld: warning -L: directory name (/usr/local/lib/mysql) does not exist
>> ld: warning -L: directory name (/usr/local/mysql/lib/mysql) does not
>> exist
>> ld: warning -L: directory name (/sw/lib/mysql) does not exist
>> ld: can't locate file for: -lbundle1.o
>> error: command 'gcc' failed with exit status 1
>
> lbundle1.o isn't anywhere on my system...
>
> Has anyone had this problem? Anyone got it to compile with this
> set-up?
>
> thanks
>
> --
> David
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
--
Jim Roepcke
Roepcke Computing Solutions: http://www.roepcke.com/
Jim's weblog: http://jim.roepcke.com/
More information about the Zope
mailing list