- 论坛徽章:
- 0
|
Python: 2.3.3
mysql: 5.0.24
gcc: 3.4.6
solaris:5.10
root@Clio # python setup.py install
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.solaris-2.10-sun4u/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.10-sun4u-2.3/MySQLdb
running build_ext
building '_mysql' extension
/sgnome/tools/sparc-solaris/forte/SOS8/SUNWspro/bin/cc -i -xO4 -xspace -xstrconst -xarch=v8a -mr -DANSICPP -D__STDC_VERSION__=199409L -DNDEBUG -O -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/sfw/include/mysql -I/usr/sfw/include/python2.3 -c _mysql.c -o build/temp.solaris-2.10-sun4u-2.3/_mysql.o
cc: language arch=v8a not recognized
cc: _mysql.c: linker input file unused because linking not done
/sgnome/tools/sparc-solaris/forte/SOS8/SUNWspro/bin/cc -G build/temp.solaris-2.10-sun4u-2.3/_mysql.o -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient_r -lpthread -lz -lposix4 -lcrypt -lgen -lsocket -lnsl -lm -lpthread -o build/lib.solaris-2.10-sun4u-2.3/_mysql.so
cc: build/temp.solaris-2.10-sun4u-2.3/_mysql.o: No such file or directory
error: command '/sgnome/tools/sparc-solaris/forte/SOS8/SUNWspro/bin/cc' failed with exit status 1
google了一下,也查了本论坛,这个问题应该是mysql编译器用的是SUN CC,而编译mysql_python用的gcc,所以会出现cc: language arch=v8a not recognized,可以Sun CC编译mysql_python来解决这个问题,还没试验,这个是收费的软件,免费的有时间限制。
除了这个方法,通过该配置文件,或者代码,可以实现吗?关键是arch=v8a 这个参数要去了。
多谢 |
|