zoukankan      html  css  js  c++  java
  • Ubuntu 出现未定义的 curl_init 错误

    系统已安装 php7.0 
    在执行程序是发现 curl_init 函数未定义, 
    原因是 php 的 curl 模块并未安装。可按如下步骤解决:

      1.查询curl的php支持名字  

         apt-cache search curl | grep php 

         结果如下:

        php-curl - CURL module for PHP [default]
        php7.0-curl - CURL module for PHP
        php-http-request2 - Provides an easy way to perform HTTP requests
        php-picofeed - Modern library to handle RSS/Atom feeds

      2,安装curl 模块  

        sudo apt-get install php7.0-curl

      3. 重启

        sudo service apache2 restart

     

  • 相关阅读:
    leetcode-String to Integer (atoi)
    2014薪水
    Ubunt下的软件集
    ubuntu常用软件
    python模块安装
    ubuntu下玩三国杀
    递归函数
    匿名函数
    装饰器函数
    生成器
  • 原文地址:https://www.cnblogs.com/zydtm/p/9591893.html
Copyright © 2011-2022 走看看