Hi everyone,
I managed to build ok on intel mac 10.4.7 but under 10.3.9 PPC
trying to build MySQL-python-1.2.1_p2:
$ sudo python setup.py build
PPC's response is:
- running build
- running build_py
- copying MySQLdb/release.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
- running build_ext
- error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "" but "10.3" during configure
MySQL vital stats are:
-Server version 5.0.22-standard
-Protocol version 10
-Connection Localhost via UNIX socket
-UNIX socket /tmp/mysql.sock
and the python build is
- Python 2.4 (#1, Jan 24 2005, 07:01:34)
- [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
which has been extensively tested and runs fine.
anyone have a clue as to what the build problem is?
many thanks,
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank-you for reply Andy. I presume you mean the "build" directory in MySQL-python-1.2.1_p2
(
I was sudo-ing becasue I'm instantiating in /usr/local and was getting:
Traceback (most recent call last):
File "setup.py", line 89, in ?
rel = open("MySQLdb/release.py",'w')
IOError: [Errno 13] Permission denied: 'MySQLdb/release.py'
)
anyway, rm -rf ing the build directory and starting again returns the same error. I actually don't understand the error. Any further thought would be much appreciated. Here's the whole process.
Hi everyone,
I managed to build ok on intel mac 10.4.7 but under 10.3.9 PPC
trying to build MySQL-python-1.2.1_p2:
$ sudo python setup.py build
PPC's response is:
- running build
- running build_py
- copying MySQLdb/release.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
- running build_ext
- error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "" but "10.3" during configure
MySQL vital stats are:
-Server version 5.0.22-standard
-Protocol version 10
-Connection Localhost via UNIX socket
-UNIX socket /tmp/mysql.sock
and the python build is
- Python 2.4 (#1, Jan 24 2005, 07:01:34)
- [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin
which has been extensively tested and runs fine.
anyone have a clue as to what the build problem is?
many thanks,
David
Does anyone who has looked at this have any idea what the problem is?
thanks,
David
Get rid of your build directory and try again. You don't need to use sudo to build, only to install.
Thank-you for reply Andy. I presume you mean the "build" directory in MySQL-python-1.2.1_p2
(
I was sudo-ing becasue I'm instantiating in /usr/local and was getting:
Traceback (most recent call last):
File "setup.py", line 89, in ?
rel = open("MySQLdb/release.py",'w')
IOError: [Errno 13] Permission denied: 'MySQLdb/release.py'
)
anyway, rm -rf ing the build directory and starting again returns the same error. I actually don't understand the error. Any further thought would be much appreciated. Here's the whole process.
OSX:/usr/local/MySQL-python-1.2.1_p2 drw$ python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-7.9.0-Power_Macintosh-2.4
copying _mysql_exceptions.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4
creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/init.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/converters.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/connections.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/cursors.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/release.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
copying MySQLdb/times.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb
creating build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/init.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/CR.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/ER.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/FLAG.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/REFRESH.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
copying MySQLdb/constants/CLIENT.py -> build/lib.darwin-7.9.0-Power_Macintosh-2.4/MySQLdb/constants
running build_ext
error: $MACOSX_DEPLOYMENT_TARGET mismatch: now "" but "10.3" during configure