mod_wsgi | linux安装错误

问题描述:

我收到以下错误,当我尝试安装mod_wsgi的mod_wsgi | linux安装错误

./configure 

checking for apxs2... no 
checking for apxs... /usr/sbin/apxs 
checking Apache version... 2.2.3 
configure: creating ./config.status 
config.status: creating Makefile 

make 

/usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm 
/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -pthread -I/usr/include/httpd -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/local/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo 
sh: /apr-1/build/libtool: No such file or directory 
apxs:Error: Command failed with rc=8323072 
. 
make: *** [mod_wsgi.la] Error 1 

libtool的安装在我的系统..

mod_wsgi的3.2 **** Apache 2.2的** ** ****的Python 2.6 ****

你可能缺少四月发展的文件。根据您的分销情况,请检查您的包裹经理'apr'。在Ubuntu上它可能是'libaprutil1-dev'。

+0

apr已经在我的系统中了.. – Switch 2010-04-11 20:25:53

+2

只是为了舒服。您正在尝试编译-not install-mod_wsgi(?)编译需要开发文件,即头文件。例如在Ubuntu上,有'libaprutil1'这是运行时文件,'libaprutil1-dev'是你需要编译的东西。你使用哪种分布? – robsn 2010-04-11 20:38:56