# rpm -ivh openmotif21-2.1.30-11.el7.i686.rpmerror: Failed dependencies: libXext.so.6 is needed by openmotif21-2.1.30-11.el7.i686 libXp.so.6 is needed by openmotif21-2.1.30-11.el7.i686 libXt.so.6 is needed by openmotif21-2.1.30-11.el7.i686
查看可用的RPM包:
# yum list available |grep libXextlibXext.i686 1.3.2-2.1.el7 baselibXext-devel.i686 1.3.2-2.1.el7 base
# yum install libXext.i686Loaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Resolving Dependencies--> Running transaction check---> Package libXext.i686 0:1.3.2-2.1.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================Package Arch Version Repository Size================================================================================Installing:libXext i686 1.3.2-2.1.el7 base 38 kTransaction Summary================================================================================Install 1 PackageTotal download size: 38 kInstalled size: 84 kIs this ok [y/d/N]: yDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : libXext-1.3.2-2.1.el7.i686 1/1 Verifying : libXext-1.3.2-2.1.el7.i686 1/1Installed: libXext.i686 0:1.3.2-2.1.el7 Complete!
# yum install libXp.so.6Loaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Resolving Dependencies--> Running transaction check---> Package libXp.i686 0:1.0.2-2.1.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================Package Arch Version Repository Size================================================================================Installing:libXp i686 1.0.2-2.1.el7 base 30 kTransaction Summary================================================================================Install 1 PackageTotal download size: 30 kInstalled size: 56 kIs this ok [y/d/N]: yDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : libXp-1.0.2-2.1.el7.i686 1/1 Verifying : libXp-1.0.2-2.1.el7.i686 1/1Installed: libXp.i686 0:1.0.2-2.1.el7 Complete!# yum install libXt.so.6Loaded plugins: langpacks, product-id, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.Resolving Dependencies--> Running transaction check---> Package libXt.i686 0:1.1.4-6.1.el7 will be installed--> Finished Dependency ResolutionDependencies Resolved================================================================================Package Arch Version Repository Size================================================================================Installing:libXt i686 1.1.4-6.1.el7 base 167 kTransaction Summary================================================================================Install 1 PackageTotal download size: 167 kInstalled size: 384 kIs this ok [y/d/N]: yDownloading packages:Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : libXt-1.1.4-6.1.el7.i686 1/1 Verifying : libXt-1.1.4-6.1.el7.i686 1/1Installed: libXt.i686 0:1.1.4-6.1.el7 Complete!
安装完所有的依赖包之后,再安装openmotif21:
# rpm -ivh openmotif21-2.1.30-11.el7.i686.rpmPreparing... ################################# [100%]Updating / installing... 1:openmotif21-2.1.30-11.el7 ################################# [100%]