1. 程式人生 > >stanford open-source CFD code SU2-3.2.9 原始碼編譯安裝

stanford open-source CFD code SU2-3.2.9 原始碼編譯安裝

  SU2 (ver. 3.2.9 "eagle"): The Open-Source CFD Code

今天去http://su2.stanford.edu/閒逛了一圈,發現SU2 第三版已經出來好久了。一些介紹如下圖所示。

軟體下載下來之後,安裝起來非常的方便。

僅需執行如下命令

1. `cd' to the directory containing the package's source code and type  `./configure' to configure the package for your system.    Running `configure' might take a while.  While running, it prints  some messages telling which features it is checking for.

將壓縮包解壓後,執行./configure命令進行配置系統環境。這裡會給出預設的配置環境變數,預設的安裝位置是/usr/local/bin目錄中。

  2. Type `make' to compile the package.

執行make命令編譯原始碼包
  3. Optionally, type `make check' to run any self-tests that come with  the package, generally using the just-built uninstalled binaries.

執行make check命令來進行自我檢查。 

4. Type `make install' to install the programs and any data files and  documentation.  When installing into a prefix owned by root, it is  recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges.

執行make install進行安裝。安裝可能需要切換到root使用者,或者使用sudo。
  5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything.  Running this target as a  regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly.

  6. You can remove the program binaries and object files from the source code directory by typing `make clean'.  To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'.  There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers.  If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution.

  7. Often, you can also type `make uninstall' to remove the installed files again.  In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards.

  8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users.

如果不能從官方下載原始碼包,可以考慮從我上傳的資源進行下載。