I'm trying to install mysqldb 1.2.3c1 on my Mac OSX 10.5.8 Leopard so I can
use MySQL with Django.
I have MAMP installed on my mac, is it possible to use this version of MySQL
with MySQLdb?
Or do I have to install MySQL separately for this module to work?
I tried
python setup.py build
and I got the following error:
runningbuildrunningbuild_pycopyingMySQLdb/release.py->build/lib.macosx-10.5-i386-2.5/MySQLdbrunningbuild_extbuilding'_mysql'extensiongcc-Wl,-F.-bundle-undefineddynamic_lookup-archi386-archppcbuild/temp.macosx-10.5-i386-2.5/_mysql.o-L/Applications/MAMP/Library/lib/mysql-lmysqlclient_r-lz-lm-obuild/lib.macosx-10.5-i386-2.5/_mysql.sold:librarynotfoundfor-lmysqlclient_rcollect2:ldreturned1exitstatusld:librarynotfoundfor-lmysqlclient_rcollect2:ldreturned1exitstatuslipo:can't open input file: /var/folders/sE/sEdFajpBFXergJVaiXZyfU+++TI/-Tmp-//ccCcrywu.out (No such file or directory)error:command'gcc'failedwithexitstatus1
What am I doing wrong and how can I fix it?
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-02-08
Update:
I did the following:
rm -r build
python setup.py clean
and re-build, got a little further but still the same damned -lmysqlclient_r
error:
runningbuildrunningbuild_pycreatingbuildcreatingbuild/lib.macosx-10.5-i386-2.5copying_mysql_exceptions.py->build/lib.macosx-10.5-i386-2.5creatingbuild/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/__init__.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/converters.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/connections.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/cursors.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/release.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcopyingMySQLdb/times.py->build/lib.macosx-10.5-i386-2.5/MySQLdbcreatingbuild/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/__init__.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/CR.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/FIELD_TYPE.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/ER.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/FLAG.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/REFRESH.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantscopyingMySQLdb/constants/CLIENT.py->build/lib.macosx-10.5-i386-2.5/MySQLdb/constantsrunningbuild_extbuilding'_mysql'extensioncreatingbuild/temp.macosx-10.5-i386-2.5gcc-fno-strict-aliasing-Wno-long-double-no-cpp-precomp-mno-fused-madd-fno-common-dynamic-DNDEBUG-g-Os-Wall-Wstrict-prototypes-DMACOSX-I/usr/include/ffi-DENABLE_DTRACE-archi386-archppc-pipe-Dversion_info=(1,2,3,'gamma',1)-D__version__=1.2.3c1-I/Applications/MAMP/Library/include/mysql-I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5-c_mysql.c-obuild/temp.macosx-10.5-i386-2.5/_mysql.o-fno-omit-frame-pointer-D_P1003_1B_VISIBLE-DSIGNAL_WITH_VIO_CLOSE-DSIGNALS_DONT_BREAK_READ-DIGNORE_SIGHUP_SIGQUIT-DDONT_DECLARE_CXA_PURE_VIRTUALgcc-Wl,-F.-bundle-undefineddynamic_lookup-archi386-archppcbuild/temp.macosx-10.5-i386-2.5/_mysql.o-L/Applications/MAMP/Library/lib/mysql-lmysqlclient_r-lz-lm-obuild/lib.macosx-10.5-i386-2.5/_mysql.sold:librarynotfoundfor-lmysqlclient_rcollect2:ldreturned1exitstatusld:librarynotfoundfor-lmysqlclient_rcollect2:ldreturned1exitstatuslipo:can'topeninputfile:/var/folders/sE/sEdFajpBFXergJVaiXZyfU+++TI/-Tmp-//ccS9WhSa.out (No such file or directory)error:command'gcc'failedwithexitstatus1
Any ideas anyone?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-04-26
are you using sudo?
It looks like it can't write files to /var/folders which makes me think
permissions for the user
Steve
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm trying to install mysqldb 1.2.3c1 on my Mac OSX 10.5.8 Leopard so I can
use MySQL with Django.
I have MAMP installed on my mac, is it possible to use this version of MySQL
with MySQLdb?
Or do I have to install MySQL separately for this module to work?
I tried
and I got the following error:
What am I doing wrong and how can I fix it?
Thanks in advance.
Update:
I did the following:
and re-build, got a little further but still the same damned -lmysqlclient_r
error:
Any ideas anyone?
are you using sudo?
It looks like it can't write files to /var/folders which makes me think
permissions for the user
Steve
Monchi,
Did you find a solution for this? I am having the sam exact problem. I've
tried everything I have seen out there. And yes, I am using sudo.
Thanks,
Jeremy