2005/05/18,19 GDL - GNU Data Language http://gnudatalanguage.sourceforge.net/ をplamo 4.01にインストールする。 ★netCDFとHDFを併用するばあい、 HDF4を先にインストールしないとだめ。 ★cl(iraf cl.csh)と干渉! いったんcl.cshをrenameしてからインストール.. ★freetype2のインストールが必要かも(for matplotlib) ★gdl ソースに一部(HDF5関係)パッチが必要かも ★gdl 環境設定必要かも ★gcc >3.3.2とかが必要かも <必須> plplot http://plplot.sourceforge.net/index.html gsl http://www.gnu.org/software/gsl/ readline http://ftp.gnu.org/pub/gnu/readline/ <オプション> imagemagic http://www.imagemagick.org/script/index.php netCDF ftp://ftp.unidata.ucar.edu/pub/netcdf HDT HDF ftp://ftp.ncsa.uiuc.edu/HDF/HDF/HDF_Current/src/ SZIP ftp://ftp.ncsa.uiuc.edu/HDF/lib-external/szip/2.0/src/ HDF5 ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current PYTHON OK NUMARRAY http://www.stsci.edu/resources/software_hardware/numarray MATPLOTLIB http://gnudatalanguage.sourceforge.net/ FREETYPE2 http://freetype.sourceforge.net/index2.html ★インストール tar zxvf plplot-5.5.3.tar.gz cd plplot-5.5.3 ./configure make #make install tar zxvf gsl-1.6.tar.gz ./configure make make test #make install tar zxvf readline-5.0.tar.gz ./configure make #make install (netCDFより先にインストールすること) tar zxvf szip-2.0.tar.gz ./configure make #make install tar zxvf HDF4.2r1.tar.gz ./configure --prefix=/usr/local make #make install tar zxvf hdf5-1.6.4.tar.gz ./configure --prefix=/usr/local make make test #make install tar zxvf netcdf-3.6.0-p1.tar.gz ./configure --prefix=/usr/local make make test #make install インストール済みでOK *userでのmake installは行ってはならない libraryのlinkがうまくいかなくなる。 tar zxvf ImageMagick-6.2.2-3.tar.gz ./configure make #make install see numarray-1.3.1/Doc/INSTALL.txt tar zxvf numarray-1.3.1.tar.gz #python setup.py config install --gencode tar jxvf freetype-2.1.9.tar.bz2 ./configure make #make install #ldconfig (needs freetype) tar zxvf matplotlib-0.80.tar.gz %python setup.py build #python setup.py install (システムコールforkpty,openptyを使うにはlibutilを使う必要あり! これの指定がないとpythonを使えない) tar zxvf gdl-0.8.9.tar.gz setenv LDFLAGS -lutil ./configure --with-python=/usr make #make install ★makeで以下のようなエラーが出たら、、、 hdf5_fun.cpp:135: error: invalid conversion from `hssize_t*' to `const hsize_t*' hdf5_fun.cpp:145: error: invalid conversion from `hssize_t*' to `const hsize_t*' =>以下のいんちきを施すとコンパイルできるかも、、、 astrof@irc04[~/install/GDL/gdl-0.8.9/src]% diff hdf5_fun.cpp.org hdf5_fun.cpp.wada 135c135,136 //H5Sselect_hyperslab(h5s_id, H5S_SELECT_SET, offset, NULL, count, NULL); > H5Sselect_hyperslab(h5s_id, H5S_SELECT_SET, (const hsize_t *)offset, NULL, (const hsize_t *)count, NULL); 145c146,147 //H5Sselect_hyperslab(memspace, H5S_SELECT_SET, offset_out, NULL, count_out, NULL); >H5Sselect_hyperslab(memspace, H5S_SELECT_SET, (const hsize_t *)offset_out, NULL, (const hsize_t *)count_out, NULL);