Home  >  Article  >  Backend Development  >  ubuntu14.14 php 装配curl

ubuntu14.14 php 装配curl

WBOY
WBOYOriginal
2016-06-13 12:27:24820browse

ubuntu14.14 php 安装curl

ubuntu14.14安装了lamp,在使用curl时却发现没有curl。

          Fatal error: Call to undefined function curl_init()

    php -i |grep curl 没有发现curl

 

    直接apt 安装

    # sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

    安装时提示库没更新

    # sudo apt-get update

    再安装即可

   

    安装后

    php -i |grep curl 发现有curl了 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php代码如何简化Next article:字符串相干