之前安装过lighttpd,现在发现有问题,访问php文件,直接下载或者输出,现重新安装编译出现问题

会编程的阿布 2015-11-24 11:52:55
这台机器之前安装过lighttpd,一直好好的,突然有问题了,访问php文件,直接下载或者输出,原以为是php的问题,后来把lighttpd停了,启动了httpd,访问php是正常的,所以想重新装下lighttpd ,现重新编译出现一下问题

[root@adf lighttpd-1.4.35]# make
make all-recursive
make[1]: Entering directory `/root/lighttpd-1.4.35'
Making all in src
make[2]: Entering directory `/root/lighttpd-1.4.35/src'
make all-am
make[3]: Entering directory `/root/lighttpd-1.4.35/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -fPIC -Wall -W -Wshadow -pedantic -std=gnu99 -module -export-dynamic -avoid-version -L/usr/local/ssl/lib/ -o mod_auth.la -rpath /usr/local/lighttpd/lib mod_auth.lo http_auth.lo -lcrypt -lssl -lcrypto
libtool: link: gcc -shared -fPIC -DPIC .libs/mod_auth.o .libs/http_auth.o -L/usr/local/ssl/lib/ -lcrypt -lssl -lcrypto -Wl,-soname -Wl,mod_auth.so -o .libs/mod_auth.so
/usr/bin/ld: /usr/local/ssl/lib//libcrypto.a(sha1_one.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/ssl/lib//libcrypto.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [mod_auth.la] Error 1
make[3]: Leaving directory `/root/lighttpd-1.4.35/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/lighttpd-1.4.35/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/lighttpd-1.4.35'
make: *** [all] Error 2

查了下基本的,
有的说安装下openssl,我也升级了,但也没有用
说是要加-fPIC,但这个在那里加,请高手帮忙,多谢了
...全文
86 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

5,655

社区成员

发帖
与我相关
我的任务
社区描述
Web开发应用服务器相关讨论专区
社区管理员
  • 应用服务器社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧