How to install multi-version GCC compiler without conflict? How to Set it?
Source: Internet
Author: User
How to install multi-version GCC compiler without conflict? How to Set it? -- Linux general technology-Linux technology and application information. For details, refer to the following section. This is the case. I want to install a software (abinit 6.0.4), which must be compiled with a GNU4.2 or later version. The compiler in my original system is GNU4.1. Later, I asked the system administrator, who asked me to install the new version of the compiler to my own directory. Later, I downloaded the GNU4.4 that can be used directly on the Internet.
The following is my question:
1. How to set it so that I can use GNU4.4 to compile the software I want to install.
2. Several configure options are mentioned in the description of the software I want to install: I wonder if anyone knows how to set it? The options are as follows:
#----------------------------------------------------------------------------#
# Fortran support #
#----------------------------------------------------------------------------#
# Fortran compiler
#
# FC = "gfortran"
# Set debug flags for Fortran source files (overrides auto-detection)
#
# With_fc_dbgflags = "-g"
# Set optimizations for Fortran source files (overrides auto-detection)
#
With_fc_optflags = "-O2"
# Prepend debug link flags for Fortran binaries (default is unset)
#
# With_fc_ld_dbgflags = ""
# Prepend optimization link flags for Fortran binaries (default is unset)
#
# With_fc_ld_optflags = "-Bstatic"
# Append debug libraries to link Fortran binaries (default is unset)
#
# With_fc_ld_dbglibs = ""
# Append optimization libraries to link Fortran binaries (default is unset)
#
# With_fc_ld_optlibs = "-lsvml"
# Use C clock instead of Fortran clock for timings (default is no)
#
# Enable_cclock = "yes"
# Choose whether to read file lists from standard input or "AB. files"
# (Default is yes = standard input)
#
# Enable_stdin = "no"
# Wrap Fortran compiler cballs (default is auto-detected)
# Combine this option with enable_debug = "yes" to keep preprocessed source
# Files (they are removed by default, cannot T if their build fails)
#
# Enable_fc_wrapper = "yes"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service