php安装http扩展(sudo apt-get install)
来源:互联网 发布:淘宝轮播图代码 编辑:程序博客网 时间:2024/06/05 03:03
转自:http://www.xwuxin.com/?p=1575点击打开链接
"
上面新需求准备采用kohana,kohana是很早之前从ci分出来的一个框架,轻量,没有像ci那样去兼容php4。kohana需要安装http扩展,在Ubuntu上折腾了下,遇到些问题记录在此:
在安装好pecl的前提下:
sudo apt-get install libcurl3-openssl-dev
sudo apt-get install libmagic-dev
如果你不安装libcurl3-openssl-dev,直接用pecl install pecl-http方式安装http扩展,它会给你报以下error:
checking for curl/curl.h… not found
configure: error: could not find curl/curl.h
ERROR: ‘/tmp/pear/temp/pecl_http/configure –with-http-curl-requests –with-http-zlib-compression=1 –with-http-magic-mime=no –with-http-shared-deps’ failed
configure: error: could not find magic.h
ERROR: `/tmp/pear/temp/pecl_http/configure –with-http-curl-requests –with-http-zlib-compression –with-http-magic-mime –with-http-shared-deps’ failed
接着安装http扩展:
sudo pecl install pecl_http
一路回车之后,完成安装。
打开php.ini,加上extension=http.so,重启你的web服务器即可。
"
$ sudo apt-get install php5-dev php-pear
- php安装http扩展(sudo apt-get install)
- php扩展 oauth 安装(sudo apt-get)
- ubuntu下安装php5.6开发环境sudo apt-get install phpmyadmin sudo apt-get install php-mbstring sudo apt-get
- sudo apt-get install安装的php bin目录在什么位置
- sudo apt-get install rar
- sudo apt-get install evince
- sudo apt-get install subversion
- sudo apt-get install winbind
- sudo apt-get install subversion subversion-tools 安装客户端
- sudo apt-get install 可以安装的一些软件
- ubuntu安装sudo apt-get install chromium-browser
- sudo apt-get install mysql-server 安装不上
- Ubuntu安装软件sudo apt-get install时出现错误
- 树莓派如何安装sudo apt-get install pillow
- vim安装出错: sudo apt-get install vim-gtk
- 安装GCC(sudo yum -y install gcc 如果yum没有 sudo apt-get install yum)
- sudo apt-get install openssh-server 需要安装 sudo apt-get update 404错误解决办法 The authenticity of
- sudo apt-get install apt-file && apt-file update
- ExtJS4快速入门实例
- HANDLE: INVALID_HANDLE_VALUE vs NULL
- 凯撒加密与矩阵换位加密
- jquery accordion 手风琴的使用
- Xcode 有用
- php安装http扩展(sudo apt-get install)
- 位序转字符串的一种高效方法
- 第六周实验
- C# 中的委托和事件
- m_Time = CTime::GetCurrentTime();
- SVN上拖下来的项目,缺少build path怎么办?
- c++程序设计实验报告6-4
- C#中的委托和事件(续)
- Myeclipse常用快捷键