CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Installation (https://www.cfd-online.com/Forums/su2-installation/)
-   -   checking for C++ compiler default output file name... configure: error: C++ compiler (https://www.cfd-online.com/Forums/su2-installation/123199-checking-c-compiler-default-output-file-name-configure-error-c-compiler.html)

dhxlxz September 6, 2013 11:55

checking for C++ compiler default output file name... configure: error: C++ compiler
 
./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for ranlib... ranlib
configure: creating ./config.status
config.status: creating Makefile
config.status: creating trunk/Common/lib/Makefile
config.status: creating trunk/SU2_CFD/bin/Makefile
config.status: creating trunk/SU2_DDC/bin/Makefile
config.status: creating trunk/SU2_GPC/bin/Makefile
config.status: creating trunk/SU2_MAC/bin/Makefile
config.status: creating trunk/SU2_MDC/bin/Makefile
config.status: creating trunk/SU2_PBC/bin/Makefile
config.status: creating trunk/SU2_SMC/bin/Makefile
config.status: creating trunk/SU2Py/Makefile
config.status: executing depfiles commands


Build Configuration Summary:

Source code location: /home/**/SU2v2.0
Install location: /usr/local
Version: 2.0
Compiler: g++
Preprocessor flags:
Compiler flags: -DNO_MPI
Linker flags:
CGNS support: no
MPI support: no
Metis support: no

Build SU2_CFD: yes
Build SU2_DDC: yes
Build SU2_GPC: yes
Build SU2_MAC: yes
Build SU2_MDC: yes
Build SU2_PBC: yes
Build SU2_SMC: yes


Please be sure to add the $SU2_HOME and $SU2_RUN environment variables, and update your $PATH with $SU2_RUN

there is no problem! as i configure with ./configure --with-CGNS-lib=/usr/local/lib --with-CGNS-include=/usr/local/include --with-Metis-lib=/usr/local/lib --with-Metis-include=/usr/local/include --with-Metis-version=5 --with-MPI=/usr/local/bin
i got the output
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for /usr/local/lib/libcgns.a... yes
checking for /usr/local/include/cgnslib.h... yes
checking for /usr/local/lib/libmetis.a... yes
checking for /usr/local/include/metis.h... yes
checking for C++ compiler default output file name... configure: error: C++ compile
See `config.log' for more details.



The versions are mpich-3.0.4, cgnslib_3.1.4-2, metis-5.1.2, what is the matter???

austin.m September 6, 2013 14:49

When you specify the MPI option, you need to have the compiler specified, e.g.:

--with-MPI=/usr/local/bin/mpicxx

dhxlxz September 7, 2013 11:08

nice answer
 
Hi, austin.m, thank you very much for your kind reply. It has been installed.:D


All times are GMT -4. The time now is 11:55.