dongsutao8921 2016-07-15 13:20
浏览 77


I've recently been setting up a new environment for a web application I'm working on and I've run into this following issue that I cannot figure out.

Currently I have a docker-composer setup based off of

Where I have my API, APP and DB running and need them to talk between each other.

During the initialisation of this, I'm currently doing the following command:

command: bash -c 'apt-get update && apt-get -y install curl libcurl3 libcurl3-dev php5-curl php5-oauth && rm -rf /var/lib/apt/lists/* && composer install && /sbin/'

I've even tried separating out the php5-oauth in-case we're running into a timing issue like so, but the same issue persists:

command: bash -c 'apt-get update && apt-get -y install curl libcurl3 libcurl3-dev php5-curl && apt-get -y install php5-oauth && rm -rf /var/lib/apt/lists/* && composer install && /sbin/'

As you can see, I've been trying everything to get php5-oauth built with cURL support, however at the moment the current build ends up with only php_streams request engine support: oauth with no cURL support However it looks like cURL support is also built in: curl support also exists So currently when I boot my app+api, I can't talk between them due to no cURL support, as I've errors all over my application complaining of undefined constants such as the two following:

Message: Use of undefined constant OAUTH_REQENGINE_CURL - assumed 'OAUTH_REQENGINE_CURL'


Message: OAuth::setRequestEngine() expects parameter 1 to be long, string given

due to the lack of cURL support.

I also spotted similar questions around Stack Overflow, but nothing seems to mention what to do when these are installed and enabled but only 1 request engine is available.

Other research has led me to but my cURL default path has always been found succesfully.

Can anyone give me a hand here, or at least point out where i'm possibly going wrong? Cheers.

  • 写回答

1条回答 默认 最新

  • dongqigu0429 2016-07-15 14:53

    Reinstall oauth with sudo pecl install oauth to compile it with cURL support

    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥20 (标签-AR|关键词-预测分析)
  • ¥15 MATLAB矩阵分离问题
  • ¥15 QT IFW 自定义界面添加lineedit小键盘输入数字无效果
  • ¥15 python thinter动态建立Entry并读取数据
  • ¥150 电路仿真,演示反激变压器升压
  • ¥100 libcurl使用无法连接服务器问题
  • ¥30 链表栈表达式求值求解
  • ¥15 关于龙芯1b,JTAG停止调试服务
  • ¥15 求一个图片中的成交量选股公式
  • ¥15 已知正方形内随机生成坐标matlab