0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

conposer install時にline-bot-sdkのエラーが出る

Posted at

LINE MESSAGING APIのあるLaravel環境を構築する際にcomposer installでエラーが出た。

Problem 1
    - linecorp/line-bot-sdk is locked to version 7.5.0 and an update of this package was not requested.
    - linecorp/line-bot-sdk 7.5.0 requires ext-sockets * -> it is missing from your system. Install or enable PHP's sockets extension.

解決方法

方法①

php.iniに以下を追加

extension=sockets

方法②

①でダメだった場合は以下

dockerfileに以下を追加

docker-php-ext-install sockets

追加したらbuildからやり直す。
以上です。

参考

https://qiita.com/mktro/items/d164bd4a88fc51f2a99d
https://sotaryoutarou.github.io/laravel-require-line-sdk-error/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?