从源码下的最新的scilab,然后在fc8上编译,遇到不少问题,逐一解决
./configure
1.hdf5 Could not find hdf5.
yum install hdf5-devel
2.configure: error: Could not find or use the Java package/jar jhdf5 used by HDF5 Java library (looking for package ncsa.hdf.hdf5lib.HDF5Constants)
去网上下了个 jhdf5
https://wiki-bsse.ethz.ch/display/JHDF5/Download+Page
然后放到scilab目录下:cp ~/jhdf5-8.10.0.jar scilab/thirdparty/
3.configure: error: Cannot find headers (fftw3.h) of the library fftw. Please install the dev package (Debian : libfftw3-dev)
于是我试着用 yum install libfftw*, 结果找不到包。然后我又运行 yum install fftw*
于是安装了
fftw.i386 0:3.1.2-5.fc8 fftw-devel.i386 0:3.1.2-5.fc8
fftw-static.i386 0:3.1.2-5.fc8 fftw2.i386 0:2.1.5-15.fc8
fftw2-devel.i386 0:2.1.5-15.fc8
4. configure: error: Unable to find pvmgetarch in PVM_ROOT/lib or PATH
查询一下系统中有没有pvm
rpm -ql pvm > a
发现pvm 在/usr/share/pvm3/lib/pvmgetarch中,于是添加环境变量:
vim /etc/profile
export PATH= $PATH:/usr/share/pvm3/lib
5. configure: error: Cannot find headers (umfpack.h) of the library UMFPACK. Please install the dev package (Debian : libsuitesparse-dev)
yum install suitesparse-devel
6.configure: error: Unable to find pcre-config in the path. Please check your installation of pcre (example : libpcre3 & libpcre3-dev with Debian)
yum install pcre-devel
7.checking for header file tcl.h... configure: error: no header file tcl.h found for 8.4* or 8.5*. Please install the dev library of tcl 8.4 or 8.5
yum install tcl-devel
8.checking for header file tk.h... configure: error: no header file tk.h found for 8.4* or 8.5*. Please install the dev library of tk 8.4 or 8.5
yum install tk-devel
9. checking for MATIO... configure: error: Package requirements (matio >= 1.3.3) were not met:
./configure --without-matio
然后就可以make && make install
出现了关于hdf5的错误。所以我又重新运行
#./configure --without-hdf5 --without-mation
#make && make install
OK!
ps: 一些包找不到怎么办?All needed packages to compile Scilab under Linux can be found in Scilab SVN pre-requirements directory。
so:
svn export --force --username anonymous --password Scilab svn://svn.scilab.org/scilab/trunk/Dev-Tools/SE/Prerequirements/
Linux/bin scilab/bin
svn export --force --username anonymous --password Scilab svn://svn.scilab.org/scilab/trunk/Dev-Tools/SE/Prerequirements/
Linux/thirdparty scilab/thirdparty