jdk安装异常link it with ‘-z noexecstack‘与inux 64位系统ZendGuardLoader.so: wrong ELF class: ELFCLASS32报错处理
Posted mask哥
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jdk安装异常link it with ‘-z noexecstack‘与inux 64位系统ZendGuardLoader.so: wrong ELF class: ELFCLASS32报错处理相关的知识,希望对你有一定的参考价值。
N1.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
意思是推荐使用sunjdk,而不是linux自带openjdk
N2.linux 64位系统ZendGuardLoader.so: wrong ELF class: ELFCLASS32报错
1、下载Zend Guard
32位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
64位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
mkdir /usr/local/zend
tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
sudo cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php5.3.x/ZendGuardLoader.so /usr/local/zend/
2、配置
vim /etc/php.ini
最后加上:
zend_extension=/usr/local/zend/ZendGuardLoader.so
以上错误的原因是64位系统用了32位的ZendGuardLoader.so
解决办法就是去下载一个对应PHP版本的64位ZendGuardLoader.so文件
1、下载Zend Guard
32位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
64位 http://downloads.zend.com/guard/5.5.0/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
mkdir /usr/local/zend
tar -zxvf ZendGuardLoader-php-5.3-linux-glibc23-i386.tar.gz
sudo cp ZendGuardLoader-php-5.3-linux-glibc23-i386/php5.3.x/ZendGuardLoader.so /usr/local/zend/
2、配置
vim /etc/php.ini
最后加上:
zend_extension=/usr/local/zend/ZendGuardLoader.so
以上是关于jdk安装异常link it with ‘-z noexecstack‘与inux 64位系统ZendGuardLoader.so: wrong ELF class: ELFCLASS32报错处理的主要内容,如果未能解决你的问题,请参考以下文章