0

以前、マシンの Ubuntu で問題が発生しました。その後、問題を修正しました。現在、MPICH の最新の安定バージョン ( MPICH 3.0.4 ) を構成しようとしています。ただし、基本的なデータ型のサイズを決定しようとすると失敗するようです。

checking size of char... 0
checking size of unsigned char... 0
checking size of short... 0
checking size of unsigned short... 0
checking size of int... 0
checking size of unsigned int... 0
checking size of long... 0
checking size of unsigned long... 0
checking size of long long... 0
checking size of unsigned long long... 0
checking size of float... 0
checking size of double... 0
checking size of long double... 0
checking size of void *... 0
checking for ANSI C header files... (cached) no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking size of wchar_t... 0
checking size of float_int... 0
checking size of double_int... 0
checking size of long_int... 0
checking size of short_int... 0
checking size of two_int... 0
checking size of long_double_int... 0
checking sys/bitypes.h usability... no
checking sys/bitypes.h presence... yes
configure: WARNING: sys/bitypes.h: present but cannot be compiled
configure: WARNING: sys/bitypes.h:     check for missing prerequisite headers?
configure: WARNING: sys/bitypes.h: see the Autoconf documentation
configure: WARNING: sys/bitypes.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/bitypes.h: proceeding with the compiler's result
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to mpich-discuss@mcs.anl.gov ##
configure: WARNING:     ## ---------------------------------------- ##

ファイルを調べた後config.log、提案されているように、構成スクリプトが見つからないことがわかりましたsys/types.hまたはstdlib.h.

...
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
...

それでも、私はそれらの両方を見つけました:/usr/include/stdlib.h/usr/include/sys/types.h. configure スクリプトがこれら 2 つのシステム ライブラリを見つけられない原因は何ですか?

4

2 に答える 2

0

時間がないので、Ubuntu 12.04 の新規インストールを実行することにしました。その後、すべてが完全に機能しました。

于 2013-08-22T18:40:51.473 に答える
0

RHEL5 ボックスでビルドするときに同じエラーが発生しました。libtorque.so.2このシステムにインストールされている が見つからないことが原因のよう/usr/local/libです (ライブラリは自動的に検索されません)。手がかりは次の場所に隠されていましたsrc/pm/hydra/config.log:

configure:15881: checking size of unsigned int
configure:15886: gcc -o conftest    -O2    -I/home/price/Software/mpich-3.0.4/src/mpl/include -I/home/price/Software/mpich-3.0.4/src/mpl/include -I/home/price/Software/mpich-3.0.4/src/openpa/src -I/home/price/Software/mpich-3.0.4/src/openpa/src -I/home/price/Software/mpich-3.0.4/src/mpi/romio/include  -lnsl conftest.c -ltorque  >&5
configure:15886: $? = 0
configure:15886: ./conftest
./conftest: error while loading shared libraries: libtorque.so.2: cannot open shared object file: No such file or directory

を入れるのが解決策でし/usr/local/libLD_LIBRARY_PATH

于 2013-12-06T22:38:41.813 に答える