2012-05-13 20 views
2

"configure"コマンドをnginx srcパスで実行しようとすると、エラーが表示されます。Nginxの設定エラー:intサイズを検出できません

checking for OS 
+ Linux 2.6.32-71.el6.x86_64 x86_64 
checking for C compiler ... found 
+ using GNU C compiler 
+ gcc version: 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) 
checking for gcc -pipe switch ... found 
checking for gcc builtin atomic operations ... not found 
checking for C99 variadic macros ... not found 
checking for gcc variadic macros ... not found 
checking for unistd.h ... found 
checking for inttypes.h ... found 
checking for limits.h ... found 
checking for sys/filio.h ... not found 
checking for sys/param.h ... found 
checking for sys/mount.h ... found 
checking for sys/statvfs.h ... found 
checking for crypt.h ... found 
checking for Linux specific features 
checking for epoll ... not found 
checking for sendfile() ... not found 
checking for sendfile64() ... not found 
checking for sys/prctl.h ... found 
checking for prctl(PR_SET_DUMPABLE) ... not found 
checking for sched_setaffinity() ... not found 
checking for crypt_r() ... not found 
checking for sys/vfs.h ... found 
checking for poll() ... not found 
checking for /dev/poll ... not found 
checking for kqueue ... not found 
checking for crypt() ... not found 
checking for crypt() in libcrypt ... not found 
checking for F_READAHEAD ... not found 
checking for posix_fadvise() ... not found 
checking for O_DIRECT ... not found 
checking for F_NOCACHE ... not found 
checking for directio() ... not found 
checking for statfs() ... not found 
checking for statvfs() ... not found 
checking for dlopen() ... not found 
checking for dlopen() in libdl ... not found 
checking for sched_yield() ... not found 
checking for sched_yield() in librt ... not found 
checking for SO_SETFIB ... not found 
checking for SO_ACCEPTFILTER ... not found 
checking for TCP_DEFER_ACCEPT ... not found 
checking for TCP_KEEPIDLE, TCP_KEEPINTVL, TCP_KEEPCNT ... not found 
checking for TCP_INFO ... not found 
checking for accept4() ... not found 
checking for int size ... 
./configure: error: can not detect int size 

私のOSはCentOSの6.0であり、それはすでにカーネルヘッダパッケージを持っています カーネルヘッダ-2.6.32-71.el6.x86_64 OSのバージョンを次のとおりです。 CentOSのLinuxは6.0(ファイナルリリース)

答えて

3

私はパスの--prefix以外のパラメタなしでnginxのデフォルトインストールをテストしました。そしてそれは動作し、nginxは流暢にインストールされました。 そして、 "--with-cc-opt = '-m32 -march = i386'"というパラメタを確認しました。私のosは64ビットなので、削除してコマンドを実行します。 これはいつものように動作します....

+0

にこれを追加し、私はやや似理由がありました。 CFLAGSの1つが問題を引き起こしていました。 'export CFLAGS = ""'を実行してCLAGSをクリーンアップし、解決しました。 – Eye

+0

Solaris 11にインストールするには、 'export CFLAGS =" "'を設定してください。ありがとう。 – Welsh

1

私はこのエラーを数回経験しました。

1)は、私が誤って実際にそれが

2 C.

必要なときに、私は互換性のないプラグインを使用していた)、C++を使用してnginxのをコンパイルしようとした。うまくいけば、私の二つの問題は、あなたがあなたを絞り込むのに役立ちます。私が使用していたTCPプロキシプラグインは、最新バージョンのnginxと互換性がありませんでした。問題は、内部がプラグインのサポートを超えて変更されたことでした。

ハッピーハンティング。

0

OS Xの場合は、これと同じように、このbug reportに沿ってお試しください。

は基本的に行います。

brew install pcre 

とあなたは./configure

--with-ld-opt="-L /usr/local/lib" 
+0

これをandroid ndkでコンパイルしようとしていますが、configureファイルにオプションを追加した後も同じ問題があります –

関連する問題