1进入解压下在的安装包
tar-zxvf SU2v2.0.tgz
2进入软件的源代码目录
cdSU2v2.0/
3查看该目录中的内容
ls
aclocal.m4 ChangeLog COPYING install-sh missing trunk
AUTHORS configure depcomp Makefile.am NEWS
autom4te.cache configure.ac INSTALL Makefile.in README
4配置该软件
./configure
checkingfor a BSD-compatible install… /usr/bin/install -c
checkingwhether build environment is sane… yes
checkingfor gawk… gawk
checkingwhether make sets $(MAKE)… yes
checkingfor g++… g++
checkingfor C++ compiler default output file name… a.out
checkingwhether the C++ compiler works… yes
checkingwhether we are cross compiling… no
checkingfor suffix of executables…
checkingfor suffix of object files… o
checkingwhether we are using the GNU C++ compiler… yes
checkingwhether g++ accepts -g… yes
checkingfor style of include used by make… GNU
checkingdependency style of g++… gcc3
checkingfor 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
BuildConfiguration Summary:
Sourcecode location: 这个地方是软件源代码的位置,会显示完整的所在路径
Installlocation: /usr/local
Version: 2.0
Compiler: g++
Preprocessorflags:
Compilerflags: -DNO_MPI
Linkerflags:
CGNSsupport: no
MPIsupport: no
Metissupport: no
BuildSU2_CFD: yes
BuildSU2_DDC: yes
BuildSU2_GPC: yes
BuildSU2_MAC: yes
BuildSU2_MDC: yes
BuildSU2_PBC: yes
BuildSU2_SMC: yes
Pleasebe sure to add the $SU2_HOME and $SU2_RUN environment variables, andupdate your $PATH with $SU2_RUN
Basedon the input to this configuration, add these lines to your .bashrcfile –
exportSU2_RUN="/usr/local/bin"
exportSU2_HOME="/**/SU2v2.0/trunk"
exportPATH=$PATH:$SU2_RUN
5编译源代码
make
需要等待一段时间,
6安装软件
makeinstall
需要注意的是,这一步需要有管理员权限。可以考虑用su命令,然后输入管理员密码就可以按照成功了。