如何在Debian Lenny上的Python 2.6源版本上安装MySQLdb?
我已经在我的Debian Lenny服务器上从源代码安装了Python 2.6,因为Lenny没有python2.6包。 所以,我的Python 2.5安装了MySQLdb,工作得很好,因为我安装了python-mysqldb软件包。 我想我可以从源码安装MySQLdb,但是因为我有Lenny python-dev软件包,所以它的版本是2.5: # python setup.py build running build running build_py copying MySQLdb/release.py -> build/lib.linux-x86_64-2.5/MySQLdb running build_ext building '_mysql' extension gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/usr/include/python2.5 -c _mysql.c -o build/temp.linux-x86_64-2.5/_mysql.o -DBIG_JOINS=1 -fPIC gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.5/_mysql.o -L/usr/lib/mysql -lmysqlclient_r -o build/lib.linux-x86_64-2.5/_mysql.so 我不想运行python […]