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

そのイニシャルcdto/usr/local/binは非常に奇妙に見えます。グローバルな /usr ツリーに構築していますか?

何らかの理由で、間違ったディレクトリに cd:ing しているように見えます。参照されている Makefile ( objs/Makefile) を調べて、その理由を突き止めてください。

更新: PCRE ライブラリをビルドしようとしていることが問題のようです。事前に構築されている場合、それは奇妙な決定のように思えます。このブログ投稿--with-cc-opt="-I /usr/include/pcre"では、オプションを使用して、PCRE のヘッダーがある configure スクリプトを指摘することを提案しています。試してみる価値があるかもしれません。

于 2009-11-06T09:33:26.080 に答える