【问题标题】:Problem compiling nginx on Solaris 10在 Solaris 10 上编译 nginx 时出现问题
【发布时间】:2010-12-13 18:34:58
【问题描述】:

我的设置如下

# 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

知道怎么解决吗?

【问题讨论】:

    标签: nginx solaris-10


    【解决方案1】:

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

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

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

    【讨论】:

    • 感谢您提供的博文链接解决方案,现在可以正常工作了 :)
    猜你喜欢
    • 1970-01-01
    • 2013-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多