py-sqlalchemy install fails

Len Conrad lconrad at Go2France.com
Thu Aug 23 21:05:50 UTC 2012


fbsd 9.0

py 2.7.3

cd /usr/ports/databases/py-sqlalchemy

make

ends with:

creating build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/PKG-INFO -> build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/SOURCES.txt -> build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/dependency_links.txt -> build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/not-zip-safe -> build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
copying lib/SQLAlchemy.egg-info/top_level.txt -> build/bdist.freebsd-9.0-RELEASE-i386/egg/EGG-INFO
creating dist
creating 'dist/SQLAlchemy-0.7.8-py2.7.egg' and adding 'build/bdist.freebsd-9.0-RELEASE-i386/egg' to it
removing 'build/bdist.freebsd-9.0-RELEASE-i386/egg' (and everything under it)
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***************************************************************************


make install

...

building '_mysql' extension
cc -DNDEBUG -O2 -pipe -fno-strict-aliasing -O2 -pipe -fno-strict-aliasing -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/include/mysql -I/usr/local/include/python2.7 -c _mysql.c -o temp.freebsd-9.0-RELEASE-i386-2.7/_mysql.o -pipe -fno-strict-aliasing -g -DMY_PTHREAD_FASTMUTEX=1
In file included from pymemcompat.h:10,
                 from _mysql.c:29:
/usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file or directory
In file included from _mysql.c:36:
/usr/local/include/mysql/my_config.h:422:1: warning: "HAVE_WCSCOLL" redefined
In file included from /usr/local/include/python2.7/Python.h:8,
                 from pymemcompat.h:10,
                 from _mysql.c:29:
/usr/local/include/python2.7/pyconfig.h:890:1: warning: this is the location of the previous definition
error: command 'cc' failed with exit status 1
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
*** Error code 1

Stop in /usr/ports/databases/py-MySQLdb.
*** Error code 1

Stop in /usr/ports/databases/py-sqlalchemy.
*** Error code 1

Stop in /usr/ports/databases/py-sqlalchemy.

thanks
Len



More information about the freebsd-questions mailing list