|
[Sponsors] |
SU2 installation error on Linux:about c++ compiler |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Yue Zehua
Join Date: Apr 2019
Posts: 10
Rep Power: 7 ![]() |
Hi there,
whihe installing su2 on my Centos work station, I met this error when doing ./configure and enabling mpi settings. I typed: ./configure --prefix=/opt/software/SU2 CXXFLAGS="-O3" --enable-mpi --with-c=/opt/software/mpi/openmpi/1.6.5/gnu/4.8.2/bin/mpicc --with-cxx=/opt/spftware/mpi/openmpi/1.6.5/gnu/4.8.2/bin/mpicxx however, there's an error: checking whether we are cross compiling... configure: error: in `/home/customer/desktop/Yue/SU2/SU2-6.2.0': configure: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details so I checked the 'config.log': configure:3550: ./conftest ./conftest: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory configure:3554: $? = 127 configure:3561: error: in `/home/customer/desktop/Yue/SU2/SU2-6.2.0': configure:3563: error: cannot run C++ compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. but when i do "./configure', it shows c++ compiler is working(as checking whether c++ compiler works ... yes), so I'm really confused why there's a error about the c++ compiler as mentioned above, and i'm a new learner in CFD, waiting for your help! thanks a lot!! |
|
![]() |
![]() |
![]() |
![]() |
#2 | |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 ![]() |
Hi Yuezehua,
When I come across an error like this: Quote:
It usually indicates I've messed up my environment. So PATH and LD_LIBRARY_PATH. Can you double check that they are pointing to a location that includes the file: libmpi_cxx.so.1 Beyond that I also use a similar command line to you but also force particular compiler versions - I use custom GCC and MPI that are newer than the default CentOS, here it is: Code:
./configure --prefix=/Users/pbrady/esi/jobs/2018-0004-02 \ CXXFLAGS=-O3 \ --enable-mpi \ --with-cc=/Users/pbrady/devTools/bin/mpicc \ --with-cxx=/Users/pbrady/devTools/bin/mpic++ \ CXX=/Users/pbrady/devTools/bin/g++ \ CC=/Users/pbrady/devTools/bin/gcc \ CPP=/Users/pbrady/devTools/bin/cpp Hope that helps, -pete |
||
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Yue Zehua
Join Date: Apr 2019
Posts: 10
Rep Power: 7 ![]() |
Quote:
![]() thanks for your help! |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] Installing on Ubuntu 18.04 | samiam1000 | OpenFOAM Installation | 11 | April 27, 2020 00:01 |
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 | bjdarrer | OpenFOAM Installation | 2 | April 20, 2020 13:50 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 13:43 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 18:07 |