2009-11-06 121 views
0

我的设置nginx的编译如下问题在Solaris 10

# export PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/usr/ccs/bin 
# ./configure --prefix=/usr/local/nginx --user=webservd --group=webservd --with-http_stub_status_module --with-openssl=/usr/local/ssl/bin/openssl --with-debug --with-pcre=/usr/local/bin 

和我得到的错误代码,例如,当我执行make

# make 
make -f objs/Makefile 
make[1]: Entering directory `/export/home/myhome/nginx-0.7.63' 
cd /usr/local/bin \ 
     && if [ -f Makefile ]; then make distclean; fi \ 
     && CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \ 
     ./configure --disable-shared 
/bin/sh: ./configure: not found 
make[1]: *** [/usr/local/bin/Makefile] Error 1 
make[1]: Leaving directory `/export/home/myhome/nginx-0.7.63' 
make: *** [build] Error 2 

任何想法如何解决呢?

回答

2

那最初的cd/usr/local/bin看起来很奇怪;你在全球/ usr树中构建它吗?

它看起来好像是cd:出于某种原因错误的目录。查看引用的Makefile(objs/Makefile)并尝试找出原因。

更新:看来问题在于它试图构建 PCRE库。如果你有它预先建立,这似乎是一个奇怪的决定。 This blog post建议使用--with-cc-opt="-I /usr/include/pcre"选项指出配置脚本,其中包含用于PCRE的标头,可能值得尝试。

+0

感谢您的博客文章链接解决方案,它现在工作正常:) – conandor 2009-11-09 03:11:11