我尝试在Cool Stack平台上使用Solaris 1.3.1编译mod_wsgi:
export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin
FLAGS="-I/opt/coolstack/include" LIBS="-lintl -lgettextlib" \
LD_LIBRARY_PATH=/opt/coolstack/lib LDFLAGS="-L/opt/coolstack/lib -R/opt/coolstack/lib" \
./configure --prefix=/usr/local/mod_wsgi \
--with-apxs=/opt/coolstack/apache2/bin/apxs \
--with-python=/opt/csw/bin/python
我收到此错误消息:
# make
/opt/coolstack/apache2/bin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG mod_wsgi.c -L/opt/coolstack/lib -R/opt/coolstack/lib -L/usr/local/lib -L/usr/local/lib/python2.6/config -lpython2.6 -lsocket -lnsl -lrt -ldl -lm
/opt/coolstack/apache2/build/libtool --silent --mode=compile cc -prefer-pic -DSSL_EXPERIMENTAL -DSSL_ENGINE -xO4 -xtarget=generic -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/coolstack/apache2/include -I/opt/coolstack/apache2/include -I/opt/coolstack/apache2/include -I/opt/coolstack/include -I/usr/local/include/python2.6 -DNDEBUG -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
/opt/coolstack/apache2/build/libtool: line 1320: cc: command not found
apxs:Error: Command failed with rc=65536
怎么了?
答案 0 :(得分:2)
您没有安装SUN C / C ++编译器。 Cool Stack软件包看起来是用编译器而不是gcc构建的,对于Apache apxs / libtool,它可能是硬件连接到工具中。因此,当使用这些工具时,它们将失败,因为找不到该编译器。
请注意,仅将“cc”更改为“gcc”是不够的,因为工具是针对相关编译器专门配置的,并根据配置的编译器使用不同的选项。换句话说,它不是动态的,仅在配置/安装工具时填写此类信息。