MySQL Forums
Forum List  »  Connector/Python

Re: MySQL-python on Solaris: build problems
Posted by: Edward Lawford
Date: September 04, 2007 03:43AM

Hi,

I'm also having this problem but under Solaris 2.9 with only GCC installed (no cc):

hostname:/apps/un/MySQL-python-1.2.2 # python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.9-sun4u-2.3/MySQLdb
running build_ext
building '_mysql' extension
cc -DNDEBUG -O -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/apps/mysql/include -I/opt/csw/include/python2.3 -c _mysql.c -o build/temp.solaris-2.9-sun4u-2.3/_mysql.o -mt -D_FORTEC_ -xarch=v8
unable to execute cc: No such file or directory
error: command 'cc' failed with exit status 1

If I CC=gcc, I get:

hostname:/apps/un/MySQL-python-1.2.2 # CC=gcc python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.9-sun4u-2.3/MySQLdb
running build_ext
building '_mysql' extension
gcc -DNDEBUG -O -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/apps/mysql/include -I/opt/csw/include/python2.3 -c _mysql.c -o build/temp.solaris-2.9-sun4u-2.3/_mysql.o -mt -D_FORTEC_ -xarch=v8
gcc: warning: `-x arch=v8' after last input file has no effect
cc1: invalid option `t'
error: command 'gcc' failed with exit status 1

Any ideas on how to enable GCC support for compiling the module? There doesn't seem to be any kind of configuration for libraries, includes, compiler options etc (at least I can't find them). Any help would be great.

Options: ReplyQuote


Subject
Written By
Posted
November 10, 2005 09:04AM
April 10, 2006 01:07AM
Re: MySQL-python on Solaris: build problems
September 04, 2007 03:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.