在使用yum安裝php5.5的過程中,出現(xiàn)了如下依賴:
--> Finished Dependency Resolution
Error: Package: php-gd-5.4.45-4.el6.remi.x86_64 (remi)
Requires: libt1.so.5()(64bit)
通過yum provides 命令反查詢后發(fā)現(xiàn)是由于缺少了t1lib這個軟件包
shell> yum install --enablerepo=remi php php-gd
...
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.45-4.el6.remi.x86_64
--> Finished Dependency Resolution
Error: Package: php-gd-5.4.45-4.el6.remi.x86_64 (remi)
Requires: libt1.so.5()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
安裝php的過程中出現(xiàn)了不可解決的依賴軟件libt1.so.5()(64bit)
使用yum的反查詢功能查出包含有這個庫文件的軟件包是哪一個
(在使用yum反查詢后沒有得到任何結(jié)果,后來排查得知是我yum的base repo設(shè)置有問題,導(dǎo)致yum讀不到base中的軟件庫信息。多說一句,如果遇到以上問題,可以排查一下是不是服務(wù)器的base repo出現(xiàn)的問題,可以使用centos自帶的centos-base.repo,也可以下載163的centos-base-163.repo庫)
shell> yum provides "*/libt1.so.5"
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.yun-idc.com
* epel: mirrors.opencas.cn
* extras: mirrors.yun-idc.com
* remi-safe: mirror.innosol.asia
* rpmforge: mirrors.neusoft.edu.cn
* updates: mirrors.yun-idc.com
t1lib-5.1.2-6.el6_2.1.x86_64 : PostScript Type 1 font rasterizer
Repo : base
Matched from:
Filename : /usr/lib64/libt1.so.5
t1lib-5.1.2-6.el6_2.1.i686 : PostScript Type 1 font rasterizer
Repo : base
Matched from:
Filename : /usr/lib/libt1.so.5
接下來,解決這個問題只需yum install t1lib -y即可