Rootop 服务器运维与web架构

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

     在rhel6.0(php-5.3.3)中安装zend optimiter3.3.3报错:

[root@mail ZendOptimizer-3.3.3-linux-glibc23-i386]# ll
total 68
drwxr-xr-x. 10 root root  4096 Jan 15  2008 data
-rw-r–r–.  1 root root 10342 May 19  2006 EULA-ZendOptimizer
lrwxrwxrwx.  1 root root    10 Apr 26 20:19 install -> install.sh
-rwxr-xr-x.  1 root root  3759 Sep  4  2005 install.sh
lrwxrwxrwx.  1 root root    10 Apr 26 20:19 install-tty -> install.sh
-rw-r–r–.  1 root root 21106 Jan 17  2008 Inventory.xml
-rw-r–r–.  1 root root 10342 May 19  2006 LICENSE
-rw-r–r–.  1 root root  1064 Jan 15  2008 md5
-rw-r–r–.  1 root root  1198 Sep 18  2007 README-ZendOptimizer
drwxr-xr-x.  2 root root  4096 Apr 26 20:19 zui_files
[root@mail ZendOptimizer-3.3.3-linux-glibc23-i386]# ./install
./install: ./php: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[root@mail ZendOptimizer-3.3.3-linux-glibc23-i386]#
[root@mail ZendOptimizer-3.3.3-linux-glibc23-i386]# rpm -qa | grep glibc
glibc-2.12-1.47.el6_2.9.x86_64
glibc-common-2.12-1.47.el6_2.9.x86_64
glibc-headers-2.12-1.47.el6_2.9.x86_64
glibc-devel-2.12-1.47.el6_2.9.x86_64

解决方法:

[root@mail ZendOptimizer-3.3.3-linux-glibc23-i386]# yum install -y ld-linux.so.2
sl                                                                | 3.2 kB     00:00
sl-security                                                       | 1.9 kB     00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package glibc.i686 0:2.12-1.47.el6_2.9 set to be updated
–> Processing Dependency: libfreebl3.so for package: glibc-2.12-1.47.el6_2.9.i686
–> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.12-1.47.                                                                    el6_2.9.i686
–> Running transaction check
—> Package nss-softokn-freebl.i686 0:3.12.9-3.el6 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================
 Package                   Arch        Version                  Repository          Size
=========================================================================================
Installing:
 glibc                     i686        2.12-1.47.el6_2.9        sl-security        4.3 M
Installing for dependencies:
 nss-softokn-freebl        i686        3.12.9-3.el6             sl-security        113 k

Transaction Summary
=========================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 4.4 M
Installed size: 13 M
Downloading Packages:
(1/2): glibc-2.12-1.47.el6_2.9.i686.rpm                           | 4.3 MB     03:50
(2/2): nss-softokn-freebl-3.12.9-3.el6.i686.rpm                   | 113 kB     00:07
—————————————————————————————–
Total                                                     19 kB/s | 4.4 MB     03:59
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : glibc-2.12-1.47.el6_2.9.i686                                      1/2
  Installing     : nss-softokn-freebl-3.12.9-3.el6.i686                              2/2

Installed:
  glibc.i686 0:2.12-1.47.el6_2.9

Dependency Installed:
  nss-softokn-freebl.i686 0:3.12.9-3.el6

Complete!

重新执行脚本没问题了。系统中明明有glibc,版本也一样,为什么还需要再安装一遍。有知道的麻烦告诉一下。

系统为redhat,使用了sl(Scientific Linux)的yum源,yum配置文件如下:

[sl]
name=Scientific Linux $releasever – $basearch
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                http://ftp1.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                http://ftp2.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
                ftp://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-testing]
name=Scientific Linux $releasever Testing – $basearch
baseurl=http://ftp.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
                http://ftp1.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
                http://ftp2.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
                ftp://ftp.scientificlinux.org/linux/scientific/6rolling/testing/$basearch/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-source]
name=Scientific Linux $releasever Alpha – Source
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                http://ftp1.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                http://ftp2.scientificlinux.org/linux/scientific/$releasever/SRPMS/
                ftp://ftp.scientificlinux.org/linux/scientific/$releasever/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

[sl-testing-source]
name=Scientific Linux $releasever Testing – Source
baseurl=http://ftp.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
                http://ftp1.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
                http://ftp2.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
                ftp://ftp.scientificlinux.org/linux/scientific/6rolling/testing/SRPMS/
enabled=0
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson

原创文章,转载请注明。本文链接地址: https://www.rootop.org/pages/1211.html

作者:Venus

服务器运维与性能优化

评论已关闭。