CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 Installation

SU2 installation error on Linux:about c++ compiler

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pbrady2013

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2019, 08:43
Default SU2 installation error on Linux:about c++ compiler
  #1
New Member
 
Yue Zehua
Join Date: Apr 2019
Posts: 10
Rep Power: 7
yuezehua is on a distinguished road
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!!
yuezehua is offline   Reply With Quote

Old   July 21, 2019, 23:38
Default Library Search Paths
  #2
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12
pbrady2013 is on a distinguished road
Hi Yuezehua,


When I come across an error like this:



Quote:
Originally Posted by yuezehua View Post
./conftest: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file or directory

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
yuezehua likes this.
pbrady2013 is offline   Reply With Quote

Old   July 22, 2019, 06:40
Default
  #3
New Member
 
Yue Zehua
Join Date: Apr 2019
Posts: 10
Rep Power: 7
yuezehua is on a distinguished road
Quote:
Originally Posted by pbrady2013 View Post
Hi Yuezehua,


When I come across an error like this:






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
i found i chooesed an old gcc file, and after linked it to a new gcc path, it works
thanks for your help!
yuezehua is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Installing on Ubuntu 18.04 samiam1000 OpenFOAM Installation 11 April 27, 2020 01:01
[OpenFOAM.com] Issue configuring ./makeParaView - Ubuntu 16.04 bjdarrer OpenFOAM Installation 2 April 20, 2020 14:50
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07


All times are GMT -4. The time now is 19:27.