0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Open MPI > ./configure ... > "/lib/cpp" fails sanity check > g++コマンドがない

Last updated at Posted at 2018-02-21
動作環境
CentOS 6.8 (64bit)
on VMWare workstation

Xeon上のWRF3.9環境と同じものをVMWare上で構築中。

https://qiita.com/7of9/items/0dd38bfe6c9ed15622ac
のOpen MPIのconfigureでエラーが出た。

$ ./configure --prefix=/usr/local/openmpi-2.1.1_gcc492 CC=gcc CXX=g++
...
configure: error: in `/home/yasokada/INSTALL_OPENMPI_211/openmpi-2.1.1':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check

参考: https://askubuntu.com/questions/509663/c-preprocessor-lib-cpp-fails-sanity-check

g++のインストールを忘れていた。

$ g++
bash: g++: command not found

devtoolset-3でv4.9.2を使うので、以下の方法でインストールをする必要がある。

$sudo yum install devtoolset-3-gcc-c++

セットアップメモに記載を忘れていた。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?