在 Solaris 10 上编译 nginx 时出现问题
我的设置如下
# 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 -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
如何修复它吗?
My setup as below
# 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
and i get error code as such when i execute 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
any idea how to fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最初的
cd
到/usr/local/bin
看起来很奇怪;您是否在全局 /usr 树中构建它?由于某种原因,它看起来好像 cd:ing 到了错误的目录。查看引用的 Makefile (
objs/Makefile
) 并尝试找出原因。更新:问题似乎在于它正在尝试构建 PCRE 库。如果你已经预先构建了它,这似乎是一个奇怪的决定。 这篇博文建议使用
-- with-cc-opt="-I /usr/include/pcre"
选项指出您有 PCRE 标头的配置脚本,可能值得尝试。That initial
cd
to/usr/local/bin
looks very strange; are you building it in the global /usr tree?It looks as if it's cd:ing to the wrong directory, for some reason. Look in the referenced Makefile (
objs/Makefile
) and try to figure out why.UPDATE: It seems the problem is that it's trying to build the PCRE library. If you have it pre-built, that seems like an odd decision. This blog post suggests using the
--with-cc-opt="-I /usr/include/pcre"
option to point out to the configure script where you have headers for PCRE, might be worth trying.