SeismicUnix 是一款運行在Unix/Linux操作系統上的著名的地球物理開源軟件 。大多數情況下,爲了在已經安裝windows系統的電腦中運行該軟件,通常的做法是安裝windows、linux雙系統或者虛擬機,步驟相對比較麻煩。本文將介紹這款軟件在Cygwin中的具體安裝過程
。
文章中藍色字體爲終端中的命令部分,可直接複製到終端中執行,紫色字體是配置文件中的內容,可直接複製查找。
Cygwin是一個在windows平臺上運行的類UNIX模擬環境,可以在https://www.cygwin.com/上下載最新版安裝。
一、修改根目錄下.bashrc文件。在文件末尾添加
export CWPROOT=/home/user/su
export PATH=$PATH:/home/user/su/bin
二、由於SeismicUnix安裝需要預裝軟件包,在Cygwin安裝列表中搜索並選中安裝
1. make(devel中的程序)
2. gfortran
3. libx11-dev
4. libxt-dev
5. libglut-dev
6. libxmu-dev
7. libxi-dev
8. X11中所有的程序
三、將\home\username\SU\src\configs文件夾中的Makefile.config_Cygwin_32文件複製到上一級目錄,更改文件名爲Makefile.config
分別在終端上運行
these
are essential:
make
install (to install the basic set of codes)
make
xtinstall (to install the X-toolkit applications)
the
rest are nonessential:
make
xminstall (to install the Motif application)(nonessential)
make
finstall (to install the Fortran codes)
make
mglinstall (to install the Mesa/ Open GL items)
make
utils (to
install libcwputils) (nonessential)
四、安裝完成。由於cygwin terminal 的界面不支持圖形顯示,可在命令行中執行startx語句進入圖形界面。