登录  /  注册
在debian下安装PHP时遇到的有关问题
php中文网
发布: 2016-06-13 13:25:18
原创
601人浏览过

在debian上安装PHP时遇到的问题
配置的时候出现了这样的错误:
Configuring extensions
checking for OpenSSL support... yes
checking for Kerberos support... no
checking for pkg-config... /usr/bin/pkg-config
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... yes
checking for PCRE support... yes
checking for ZLIB support... yes
checking if the location of ZLIB install directory is defined... no
checking for gzgets in -lz... yes
checking whether to enable bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking for cpdflib support... no
checking for CRACKlib support... no
checking whether to enable ctype functions... yes
checking for CURL support... yes
checking for CURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/

然后我在网上找到一个解决办法:
#apt-get install curl
#apt-get install libcurl3
#apt-get install libcurl4-gnutls-dev

但是运行apt-get install libcurl4-gnutls-dev的时候又出现了错误:
# apt-get install libcurl4-gnutls-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libcurl4-gnutls-dev: Depends: libcurl3-gnutls (= 7.18.2-8lenny4) but 7.19.5-1.1 is to be installed
Depends: libgnutls-dev but it is not going to be installed
Depends: libidn11-dev but it is not going to be installed
Depends: libkrb5-dev but it is not going to be installed or
hurd but it is not installable
Depends: libldap2-dev but it is not going to be installed
E: Broken packages
请问高手们这是怎么回事啊?

------解决方案--------------------
少了这几个包

Depends: libcurl3-gnutls (= 7.18.2-8lenny4) but 7.19.5-1.1 is to be installed
Depends: libgnutls-dev but it is not going to be installed
Depends: libidn11-dev but it is not going to be installed
Depends: libkrb5-dev but it is not going to be installed or
hurd but it is not installable
Depends: libldap2-dev but it is not going to be installed

最好一起apt-get install
------解决方案--------------------
安装程序最好找好他们的依赖包, 在一起安装这样不容易出错
------解决方案--------------------
最好是缺什么装什么,根据错误信息找到要安装的文件,执行 apt-get install 包名

即可
------解决方案--------------------
直接在新立得里面装不就可以了 自己装还要配置php、mysql和apache之间的关联

来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 技术文章
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2023 //m.sbmmt.com/ All Rights Reserved | 苏州跃动光标网络科技有限公司 | 苏ICP备2020058653号-1

 | 本站CDN由 数掘科技 提供

登录PHP中文网,和优秀的人一起学习!
全站2000+教程免费学