64位服务器apache安装问题总结
时间:2008-07-25
来源:互联网
错误现象:
/usr/local/lib/libjpeg.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/srv/ftp/soft/gd-2.0.36RC1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/srv/ftp/soft/gd-2.0.36RC1'
make: *** [all] Error 2解决方法:
CFLAGS="-O3 -fPIC" ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/local/lib --enable-mbstring --with-gd=/usr/local/ --with-iconv
配置的时候加上上面博客中提到的64位系统下configure的问题 CFLAGS="-O3 -fPIC" 还是提示上面的错误
现在终于知道了,应该这么写 ./configure --prefix=/usr/local CFLAGS="-O3 -fPIC" #CFLAGS代表configure的一个参数,应该是指定编译器吧,看jpeg安装说明看的
百度GG半天很少这方面的资料,还是看目录下的README.TXT吧,可是上面写的很简单,需要的5个包,上面已经安装完成,后面说如果配置的时候找不到就指定一下目录,没了,我哭。more INSTALL 看一下安装说明文件,基本也是那些吧。怀疑是不是jpg的安装有问题,是不是安装时候没配置共享不行呢?但是在安jpg的时候./configure --enable-shared --enable-static配置过去了,make的时候提示:
linux:/srv/ftp/soft/jpeg-6b # make
./libtool --mode=compile gcc -O2 -I. -c ./jcapimin.c
make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127
在http://topic.csdn.net/u/20080131/10/e715d5d3-8862-4060-bf84-203ba57ec3ed.html 3楼查到
-------------------帖子引用开始--------------------------
libtool是一个包,你看看有没有安装:
rpm -qa | grep libtool
看看是什么版本,如果是比较早的1.3版本,会用到ltconfig,可能会有兼容性问题。
以下转贴,可以参考一下:
在RHEL 4 64 位下编译jpeg-6b时候报以下错误:
make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127
错误分析:由于libtool版本过低导致的,重新下载新版本的libtool以默认方式安装,执行以下命令:
./configure
make
make install
然后进入jpeg-6b的源码目录,然后执行以下步骤,切记!
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
mkdir -p /usr/local/man/man1
make install
------------------------------帖子引用结束----------------------------------------
引用:
/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/libjpeg.a(jcapimin.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC/usr/local/lib/libjpeg.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libgd.la] Error 1
make[2]: Leaving directory `/srv/ftp/soft/gd-2.0.36RC1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/srv/ftp/soft/gd-2.0.36RC1'
make: *** [all] Error 2
CFLAGS="-O3 -fPIC" ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib-dir=/usr/local/lib --enable-mbstring --with-gd=/usr/local/ --with-iconv
配置的时候加上上面博客中提到的64位系统下configure的问题 CFLAGS="-O3 -fPIC" 还是提示上面的错误
现在终于知道了,应该这么写 ./configure --prefix=/usr/local CFLAGS="-O3 -fPIC" #CFLAGS代表configure的一个参数,应该是指定编译器吧,看jpeg安装说明看的
百度GG半天很少这方面的资料,还是看目录下的README.TXT吧,可是上面写的很简单,需要的5个包,上面已经安装完成,后面说如果配置的时候找不到就指定一下目录,没了,我哭。more INSTALL 看一下安装说明文件,基本也是那些吧。怀疑是不是jpg的安装有问题,是不是安装时候没配置共享不行呢?但是在安jpg的时候./configure --enable-shared --enable-static配置过去了,make的时候提示:
linux:/srv/ftp/soft/jpeg-6b # make
./libtool --mode=compile gcc -O2 -I. -c ./jcapimin.c
make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127
在http://topic.csdn.net/u/20080131/10/e715d5d3-8862-4060-bf84-203ba57ec3ed.html 3楼查到
-------------------帖子引用开始--------------------------
libtool是一个包,你看看有没有安装:
rpm -qa | grep libtool
看看是什么版本,如果是比较早的1.3版本,会用到ltconfig,可能会有兼容性问题。
以下转贴,可以参考一下:
在RHEL 4 64 位下编译jpeg-6b时候报以下错误:
make: ./libtool: Command not found
make: *** [jcapimin.lo] Error 127
错误分析:由于libtool版本过低导致的,重新下载新版本的libtool以默认方式安装,执行以下命令:
./configure
make
make install
然后进入jpeg-6b的源码目录,然后执行以下步骤,切记!
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
./configure --enable-shared --enable-static
make
mkdir -p /usr/local/man/man1
make install
------------------------------帖子引用结束----------------------------------------
作者: anyforever 发布时间: 2008-07-24
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28