Home > Backend Development > PHP Tutorial > ubuntu14.14 php 装配curl

ubuntu14.14 php 装配curl

WBOY
Release: 2016-06-13 12:27:24
Original
881 people have browsed it

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了 

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template