thanks,
oliver
I used the following: http://www.python.org/ftp/python/2.4.3/
Universal-MacPython-2.4.3.dmg
> X-Google-Language: ENGLISH,ASCII-7-bit
> Received: by 10.54.68.14 with SMTP id q14mr186704wra;
> Mon, 22 May 2006 01:14:46 -0700 (PDT)
> Return-Path: <oliver....@gmail.com>
> Received: from nz-out-0102.google.com ([64.233.162.202])
> by mx.googlegroups.com with ESMTP id v23si900553cwb.
> 2006.05.22.01.14.45;
> Mon, 22 May 2006 01:14:46 -0700 (PDT)
> Received-SPF: pass (googlegroups.com: domain of
> oliver....@gmail.com designates 64.233.162.202 as permitted
> sender)
> DomainKey-Status: good (test mode)
> Received: by nz-out-0102.google.com with SMTP id 12so877103nzp
> for <django...@googlegroups.com>; Mon, 22 May 2006
> 01:14:44 -0700 (PDT)
> DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
> s¾ta; d=gmail.com;
> h=received:message-id:date:from:to:subject:mime-
> version:content-type:content-transfer-encoding:content-disposition;
>
> b=Nv9LCuBrrybarlI40OXgXRGeLjs0zI7Jn2z81H8FKGJV55IN41GFo4hbOb9DMFyX0anu
> CnCfgTMzWPhm5wcjEjl/AMAF1USIhAAmv7sLff/
> Joj4xzVQD22rfvujw9M6aA9plXVax27nmTiPbcymPARdxtHD0Q8VYiqKpeLVgs7UReceiv
> ed: by 10.36.38.12 with SMTP id l12mr5028305nzl;
> Mon, 22 May 2006 01:14:44 -0700 (PDT)
> Received: by 10.36.141.16 with HTTP; Mon, 22 May 2006 01:14:44
> -0700 (PDT)
> Message-ID:
> <e56d1a1a0605220114s780...@mail.gmail.com>
> Date: Mon, 22 May 2006 10:14:44 +0200
> From: "Oliver Kiessler" <oliver....@gmail.com>
> To: django...@googlegroups.com
> Subject: Django on Intel mac?
> Mime-Version: 1.0
> Content-Type: text/plain
> Content-Transfer-Encoding: quoted-printable
- oliver
--
oliver kiessler
j2ee software architect . senior technical consultant
luxemburger str. 266 . 50937 koeln . germany
voice +49.221.3562125 . fax +49.2561.959195624
home www.inceedo.com . blog blog.inceedo.com
skype okiessler . aim okiessler2
regards
Ian
If you come up with a solution, could you let me know? I've also run
into an inability to compile psycopg on an Intel Mac...
--
"May the forces of evil become confused on the way to your house."
-- George Carlin
macbookpro:~/Desktop/psycopg-1.1.21 oliver$ ./configure
--with-postgres-libraries=/Library/PostgreSQL8/lib
--with-postgres-includes=/Library/PostgreSQL8/include
checking for python... /usr/local/bin/python
checking python version... 2.4
checking python installation prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking python installation exec_prefix...
/Library/Frameworks/Python.framework/Versions/2.4
checking definitions in Python library makefile... done
checking location of python library... $(prefix)/lib/python2.4/site-packages
checking location of python shared modules...
$(exec_prefix)/lib/python2.4/site-packages
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for inline... inline
checking PostgreSQL version... 8.1
checking PostgreSQL type catalog...
/Library/PostgreSQL8/include/postgresql/server/catalog/pg_type.h
checking for mxDateTime.h... configure: error: can't build without mx headers
I know this seems to be some lib but I don't know where to find it...
---
I also tried MysqlDB which compiles fine but throws a runtime error:
macbookpro:~/mysite oliver$ python manage.py runserverValidating models...
Unhandled exception in thread started by <function inner_run at 0x77b930>
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
line 757, in inner_run
validate()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
line 741, in validate
num_errors = get_validation_errors(outfile)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/management.py",
line 634, in get_validation_errors
import django.models
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/models/__init__.py",
line 1, in ?
from django.core import meta
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/meta/__init__.py",
line 3, in ?
from django.core import db
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Django-0.91-py2.4.egg/django/core/db/__init__.py",
line 23, in ?
raise ImproperlyConfigured, "Could not load database backend: %s.
Is your DATABASE_ENGINE setting (currently, %r) spelled correctly?
Available options are: %s" % \
django.core.exceptions.ImproperlyConfigured: Could not load database
backend: Failure linking new module:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/_mysql.so:
Symbol not found: _uncompress
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/_mysql.so
Expected in: dynamic lookup
. Is your DATABASE_ENGINE setting (currently, 'mysql') spelled
correctly? Available options are: 'ado_mssql', 'mysql', 'postgresql',
'sqlite3'
---
settings.py snippet:
DATABASE_ENGINE = 'mysql' # 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'django' # Or path to database file if
using sqlite3.
DATABASE_USER = 'root' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.
---
thanks,
oliver
> X-Google-Language: ENGLISH,ASCII
> Received: by 10.54.68.17 with SMTP id q17mr190053wra;
> Mon, 22 May 2006 03:52:50 -0700 (PDT)
> Return-Path: <kry...@gmail.com>
> Received: from circe.holsman.net (218-214-209-234.people.net.au [218.214.209.234])
> by mx.googlegroups.com with ESMTP id v23si936869cwb.2006.05.22.03.52.46;
> Mon, 22 May 2006 03:52:49 -0700 (PDT)
> Received-SPF: neutral (googlegroups.com: 218.214.209.234 is neither permitted nor denied by domain of kry...@gmail.com)
> Received: from [127.0.0.1] (localhost [127.0.0.1])
> by circe.holsman.net (Postfix) with ESMTP id 6C90F1CDA72
> for <django...@googlegroups.com>; Mon, 22 May 2006 20:52:32 +1000 (EST)
> Mime-Version: 1.0
> Content-Type: text/plain; charsetISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> In-Reply-To: <e56d1a1a0605220306r1aa...@mail.gmail.com>
> References: <e56d1a1a0605220114s780...@mail.gmail.com> <3A61DFDC-454B-44EC...@gmail.com> <e56d1a1a0605220306r1aa...@mail.gmail.com>
> Message-Id: <4B22471A-67E8-46F5...@gmail.com>
> From: Ian Holsman <kry...@gmail.com>
> Subject: Re: Django on Intel mac?
> Date: Mon, 22 May 2006 20:52:31 +1000
> To: django...@googlegroups.com
> X-Mailer: Apple Mail (2.750)
http://www.egenix.com/files/python/eGenix-mx-Extensions.html#Download-mxBASE
I remember compiling psycopg was a pain, but that error isn't
intel-specific, so the comments at the bottom of this page should
help:
http://www.djangoproject.com/documentation/install/
Jeremy is correct that you need the MX Python modules installed in
order to install psycopg; if you install them and still get the error,
it just means you have to make sure they are in the place that the
compiler is looking for them.
Regards,
Jeff
I'm fighting the same problem now trying to use MySQL with my Intel
Mac. This particular error is because
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/_mysql.so
was compiled for the PPC chipset.
I've tried compiling from source for the i386 architecture, but am
having no luck. :-(
What error are you getting?
Everything is working really well now
Corey Oordt
$ sudo python setup.py build
Password:
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.4-fat-2.4/MySQLdb
running build_ext
building '_mysql' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g
-bundle -undefined dynamic_lookup
build/temp.macosx-10.4-fat-2.4/_mysql.o
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o
build/temp.macosx-10.4-fat-2.4/_mysql_results.o -L/opt/local/lib/mysql
-L/opt/local/lib -lmysqlclient_r -lz -lm -lssl -lcrypto -o
build/lib.macosx-10.4-fat-2.4/_mysql.so
/usr/bin/ld: for architecture i386
/usr/bin/ld: multiple definitions of symbol __mysql_DataError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_DataError
in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_DataError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_DatabaseError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_DatabaseError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_DatabaseError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_Error
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_Error in
section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_Error in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_IntegrityError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_IntegrityError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_IntegrityError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_InterfaceError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_InterfaceError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_InterfaceError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_InternalError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_InternalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_InternalError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_MySQLError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_MySQLError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_MySQLError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_NotSupportedError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_OperationalError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_OperationalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_OperationalError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_ProgrammingError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_Warning
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_Warning
in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_Warning in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_server_init_done
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_server_init_done in section (__DATA,__data)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_server_init_done in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_DataError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_DatabaseError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_Error in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_IntegrityError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_InterfaceError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_InternalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_MySQLError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_OperationalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_Warning in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_server_init_done in section (__DATA,__common)
collect2: ld returned 1 exit status
/usr/bin/ld: for architecture ppc
/usr/bin/ld: multiple definitions of symbol __mysql_DataError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_DataError
in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_DataError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_DatabaseError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_DatabaseError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_DatabaseError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_Error
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_Error in
section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_Error in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_IntegrityError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_IntegrityError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_IntegrityError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_InterfaceError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_InterfaceError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_InterfaceError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_InternalError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_InternalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_InternalError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_MySQLError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_MySQLError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_MySQLError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_NotSupportedError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_OperationalError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_OperationalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_OperationalError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_ProgrammingError
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_Warning
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of __mysql_Warning
in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_Warning in section (__DATA,__common)
/usr/bin/ld: multiple definitions of symbol __mysql_server_init_done
build/temp.macosx-10.4-fat-2.4/_mysql.o definition of
__mysql_server_init_done in section (__DATA,__data)
build/temp.macosx-10.4-fat-2.4/_mysql_connections.o definition of
__mysql_server_init_done in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_DataError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_DatabaseError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_Error in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_IntegrityError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_InterfaceError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_InternalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_MySQLError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_NotSupportedError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_OperationalError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_ProgrammingError in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_Warning in section (__DATA,__common)
build/temp.macosx-10.4-fat-2.4/_mysql_results.o definition of
__mysql_server_init_done in section (__DATA,__common)
/usr/bin/ld: warning /opt/local/lib/mysql/libmysqlclient_r.dylib
cputype (7, architecture i386) does not match cputype (18) for
specified -arch flag: ppc (file not loaded)
/usr/bin/ld: warning /opt/local/lib/libz.dylib cputype (7, architecture
i386) does not match cputype (18) for specified -arch flag: ppc (file
not loaded)
/usr/bin/ld: warning /opt/local/lib/libssl.dylib cputype (7,
architecture i386) does not match cputype (18) for specified -arch
flag: ppc (file not loaded)
/usr/bin/ld: warning /opt/local/lib/libcrypto.dylib cputype (7,
architecture i386) does not match cputype (18) for specified -arch
flag: ppc (file not loaded)
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc7rHM2b.out (No such file or
directory)
error: command 'gcc' failed with exit status 1
Fromt the error stack, it seems that the build process is still
targetting the PPC architecture, but I'm definitely a newb at mac build
processes & I have no idea how to change it. (I'm a bit surprised that
the system wasn't able to detect its own chipset, but I suppose using
the python-based build, I never did call ./configure)
Yeah, the only cases I've read about where people have gotten this
working on the Intel Mac has been through darwinports. I was really
hoping to avoid that and use independently-installed packages (such as
the pythonmac.org Universal distribution), and my currently-installed
MySql, which has been on my system for quite some time and has data I'd
like to keep - I'm not really keen on having two instances of MySQL or
having to port data from one to the other because of build/install
issues.
I think that you only need darwinports of python (and maybe apache2).
If your sql works, python mysql module should be able to connect to it
through local socket.
regards,
Jure Cuhalev