Create a Fortran compiling environment in Linux

Source: Internet
Author: User
Tags gfortran
Create a Fortran compiling environment in Linux-general Linux technology-Linux programming and kernel information. For more information, see the following. In the past few days, it's okay to get the Fortran in Linux. According to Internet searches, Intel compiler is the most famous and best-to-use. So I searched and downloaded the file online. However, because it was on CERNET, it could not go to Intel's official website and it could not be found after half a day. No way, you have to go to the Internet cafe to download. After downloading it on Intel's official website, you can immediately install it. Decompress the package first, and enter the decompressed folder. After sudo chmod + x install. sh, you can prepare for installation. However, there is another problem before installation, that is, the library depends on the file libstdc ++. so.5 support. But it seems that you can install it without this file. Then. /install. sh, and then follow the prompts to put the registration file that Intel sent to you during the download into a directory. when entering the registration file, enter your path. Then it is installed by default. Note that if you enter the registration code, you need to register with Intel online. If you do not have a network, you can only enter the registration file.

After installation, try it. Write a simple Fortran program, compile it with ifort, and then compile it with gfortran (a GNU Fortran compiler, it is found that the files compiled with ifort are dozens of times larger than those compiled with gfortran. Why?
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.