有些电脑会遇到make xtinstall安装错误等问题,一般是系统安装的时候缺失部分依赖包所导致,老外提供了一个解决方案,记录一下,希望对大家有用。
Seismic Unix is an open source seismic utilities package supported by the Center for Wave Phenomena (CWP) at the Colorado School of Mines (CSM). I use Centos 5.5 as my system operation. This is steps to install Seismic Unix in my computer :
- I want to install Seismic Unix at /opt/seisun. Copy Seismic Unix source at this directory (I use cwp_su_all_42.tgz). Extract this file with command : tar zxvf cwp_su_all_42.tgz.
- Export CWPROOT directory PATH. Use this command : export CWPROOT=/opt/seisun
- Edit Makefile.config file. Go to at src directory with command : cd srcand edit Makefile.config file.
- make install (to install seismic unix the basic set of codes)
- make xtinstall (to install seismic unix the X-toolkit applications)
- make finstall (to install seismic unix the Fortran codes)
- make mglinstall (to install seismic unix the Mesa/ Open GL items)
- make utils (to install seismic unix libcwputils) (nonessential)
- make xminstall (to install seismic unix the Motif application)
- make sfinstall (to install seismic unix the SFIO version of SEGDREAD)
When I try to install X seismic unix application, I get this error message and how to solve that :
- Xlib.h : No such file or directory. Install libX11 and libX11-devel. Use command yum search libX11 to get other software version.
- Intrinsic.h : No such file or directory. Install libXt and libXt-devel. Use command yum search libXt to get other software version.
- Cannot find -lXmu. Install libXmu and libXmu-devel. Use command yum search libXmu to get other software version.
- Cannot find -lXext. Install libXext and libXext-devel. Use command yum search libXext to get other software version.
- Cannot find -lXi. Install libXi and libXi-devel. Use command yum search libXi to get other software version.
- Xm/Xm.h: No such file or directory. Install openmotif and openmotif-devel. Use command yum search openmotif to get other software version.
When you complete to install seismic unix, dont forget to edit your profile file.Edit /your_home/.bashrc file and add this text :
export CWPROOT=/opt/seisun
export PATH=$PATH:$CWPROOT/bin
Change CWPROOT location with your seismic unix installed. Log off from your system and type seismic unix command at konsole (surange, suaddheader, etc) to check your seismic unix installed.