安装环境 CentOs 5.4
使用工具 yum + rpm
yum install grass, 出现 一堆 “error: Failed dependencies:” 错误
于是上http://pkgs.org/search/ 挨个找到需要的lib的rpm包,
挨个的 安装 如:rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
过去, 其中有一些库的安装过程中出现冲突,只得 rpm --force -Uvh
强制进行,
在解决了WxBase, WxGTk, WxPython等一些支援库后,(中间有些库找不着,就用yum),二者结合,披荆斩棘,最后
yum install grass 终于成功, 整个过程历时三个半小时, 从终端上截下操作history如下。
197 yum http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm
198 yum install http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm
199 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm
200 http://download.fedora.redhat.com/pub/epel/5/i386/hdf-devel-4.2.5-1.el5.i386.rpm
201 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/hdf-devel-4.2.5-1.el5.i386.rpm
202 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm
203 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/hdf-4.2.5-1.el5.i386.rpm
204 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/hdf5-1.6.10-1.el5.i386.rpm
205 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/libgeotiff-1.2.4-3.el5.i386.rpm
206 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/proj-4.5.0-1.el5.rf.i386.rpm
207 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/libgeotiff-1.2.4-3.el5.i386.rpm
208 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/xerces-c-2.7.0-1.el5.rf.i386.rpm
209 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/jasper-1.900.1-2.el5.rf.i386.rpm
210 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/freeglut-2.4.0-7.1.el5.i386.rpm
211 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/jasper-1.900.1-2.el5.rf.i386.rpm
212 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/ogdi-3.2.0-0.12.beta2.el5.i386.rpm
213 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/cfitsio-3.030-2.el5.i386.rpm
214 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/netcdf-3.6.2-1.el5.rf.i386.rpm
215 yum install grass
216 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-gl-2.4.2-5.el5.rf.i386.rpm
217 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gtk+-1.2.10-56.el5.i386.rpm
218 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/glib-1.2.10-20.el5.i386.rpm
219 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gdk-pixbuf-0.22.0-25.el5.i386.rpm
220 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gtk+-1.2.10-56.el5.i386.rpm
221 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/gdk-pixbuf-0.22.0-25.el5.i386.rpm
222 yum install gdk
223 yum isntall gtk
224 yum install gtk
225 yum install gtk+
226 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-gl-2.4.2-5.el5.rf.i386.rpm
227 yum intstall wxGTK
228 yum intstall wxGTK
229 yum install wxGTK
230 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-2.4.2-5.el5.rf.i386.rpm
231 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-gl-2.4.2-5.el5.rf.i386.rpm
232 rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/glib-1.2.10-20.el5.i386.rpm
233 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-gl-2.4.2-5.el5.rf.i386.rpm
234 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/fftw-2.1.5-2.el5.rf.i386.rpm
235 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
236 yum install wxPython-2.8.11.0-1.el5.i386
237 yum install wxPython
238 yum install libwx_baseu
239 rpm -Uvh http://odiecolon.lastdot.org/el5/i386/wxBase-2.8.10-1.i386.rpm
240 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
241 rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/wxGTK-2.8.10-1.el5.rf.i386.rpm
242 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
243 yum -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-2.8.11-2.el5.i386.rpm
244 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-2.8.11-2.el5.i386.rpm
245 which wxGTK
246 which wxBase
247 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxBase-2.8.11-2.el5.i386.rpm
248 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-2.8.11-2.el5.i386.rpm
249 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
250 rpm --force -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxBase-2.8.11-2.el5.i386.rpm
251 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-2.8.11-2.el5.i386.rpm
252 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-2.8.11-2.el5.i386.rpm
253 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
254 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxGTK-gl-2.8.11-2.el5.i386.rpm
255 rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/wxPython-2.8.11.0-1.el5.i386.rpm
256 yum install grass
--------------------------------------终于出现grass安装的界面-------------------------------------------------
--> Running transaction check
---> Package libgfortran.i386 0:4.1.2-48.el5 set to be updated
---> Package perl-DBI.i386 0:1.52-2.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
grass i386 6.4.0-2.el5.elgis elgis 18 M
Installing for dependencies:
blas i386 3.0-37.el5 base 321 k
gdal i386 1.7.2-5_0.el5.elgis elgis-debuginfo 5.9 M
geos i386 3.2.2-1.el5.elgis elgis-debuginfo 582 k
grass-libs i386 6.4.0-2.el5.elgis elgis-debuginfo 1.1 M
lapack i386 3.0-37.el5 base 3.4 M
lesstif i386 0.95.0-15.el5.elgis elgis-debuginfo 743 k
libXp i386 1.0.0-8.1.el5 base 23 k
libgfortran i386 4.1.2-48.el5 base 231 k
mysql i386 5.0.77-4.el5_5.4 updates 4.8 M
perl-DBI i386 1.52-2.el5 base 600 k
postgresql84-libs i386 8.4.5-1.el5_5.1 updates 204 k
proj-epsg i386 4.7.0-1.el5.elgis elgis-debuginfo 67 k
proj-nad i386 4.7.0-1.el5.elgis elgis-debuginfo 2.8 M
unixODBC i386 2.2.11-7.1 base 832 k
Updating for dependencies:
proj i386 4.7.0-1.el5.elgis elgis 163 k
Transaction Summary
====================================================================================================================================
Install 15 Package(s)
Update 1 Package(s)
Remove 0 Package(s)
Total download size: 40 M
Is this ok [y/N]: y
Downloading Packages:
(1/16): libXp-1.0.0-8.1.el5.i386.rpm | 23 kB 00:00
(2/16): proj-epsg-4.7.0-1.el5.elgis.i386.rpm | 67 kB 00:00
(3/16): proj-4.7.0-1.el5.elgis.i386.rpm | 163 kB 00:01
(4/16): postgresql84-libs-8.4.5-1.el5_5.1.i386.rpm | 204 kB 00:00
(5/16): libgfortran-4.1.2-48.el5.i386.rpm | 231 kB 00:00
(6/16): blas-3.0-37.el5.i386.rpm | 321 kB 00:01
(7/16): geos-3.2.2-1.el5.elgis.i386.rpm | 582 kB 00:12
(8/16): perl-DBI-1.52-2.el5.i386.rpm | 600 kB 00:00
(9/16): lesstif-0.95.0-15.el5.elgis.i386.rpm | 743 kB 00:03
(10/16): unixODBC-2.2.11-7.1.i386.rpm | 832 kB 00:01
(11/16): grass-libs-6.4.0-2.el5.elgis.i386.rpm | 1.1 MB 00:09
(12/16): proj-nad-4.7.0-1.el5.elgis.i386.rpm | 2.8 MB 00:06
(13/16): lapack-3.0-37.el5.i386.rpm | 3.4 MB 00:07
(14/16): mysql-5.0.77-4.el5_5.4.i386.rpm | 4.8 MB 00:16
(15/16): gdal-1.7.2-5_0.el5.elgis.i386.rpm | 5.9 MB 00:25
(16/16): grass-6.4.0-2.el5.elgis.i386.rpm | 18 MB 03:09
------------------------------------------------------------------------------------------------------------------------------------
Total 112 kB/s | 40 MB 06:02
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 8c200c71
elgis-debuginfo/gpgkey | 1.7 kB 00:00
Importing GPG key 0x8C200C71 "ELGIS (Enterprise Linux GIS Repository) <elgis@argeo.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-ELGIS
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : proj 1/17
Installing : libgfortran 2/17
Installing : blas 3/17
Installing : unixODBC 4/17
Installing : lapack 5/17
Installing : libXp 6/17
Installing : lesstif 7/17
Installing : postgresql84-libs 8/17
Installing : perl-DBI 9/17
Installing : mysql 10/17
Installing : geos 11/17
Installing : proj-nad 12/17
Installing : proj-epsg 13/17
Installing : gdal 14/17
Installing : grass-libs 15/17
Installing : grass 16/17
Cleanup : proj 17/17
中间有一些操作失败了,感谢http://pkgs.org/search/ 搜索引擎,提供了大部分资源和依赖库