0

我的设置如下

# 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

知道如何解决吗?

4

1 回答 1

2

那个首字母cd看起来/usr/local/bin很奇怪;你是在全局 /usr 树中构建它吗?

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

更新:似乎问题在于它正在尝试构建PCRE 库。如果您预先构建了它,那似乎是一个奇怪的决定。这篇博客文章建议使用该--with-cc-opt="-I /usr/include/pcre"选项来指出您有 PCRE 标头的配置脚本,这可能值得一试。

于 2009-11-06T09:33:26.080 回答