2017-01-22 18 views
3

私のプロジェクトにlaravel 5.3を使用しています。今はサーバーに設定しています。エラー:あなたの要件をインストール可能なパッケージのセットに解決できませんでした。(サーバー上)

so.Andを実行しているときに問題が発生しました。このエラーの箇所で固まっています。

私はエラー以下

composer install --no-dev

のコマンドを実行して発生します。

Problem 1 
    - Installation request for fgrosse/phpasn1 1.5.2 -> satisfiable by fgrosse/phpasn1[1.5.2]. 
    - fgrosse/phpasn1 1.5.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system. 
    Problem 2 
    - Installation request for mdanter/ecc v0.4.2 -> satisfiable by mdanter/ecc[v0.4.2]. 
    - mdanter/ecc v0.4.2 requires ext-gmp * -> the requested PHP extension gmp is missing from your system. 
    Problem 3 
    - Installation request for pusher/pusher-php-server 2.6.3 -> satisfiable by pusher/pusher-php-server[2.6.3]. 
    - pusher/pusher-php-server 2.6.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    Problem 4 
    - pusher/pusher-php-server 2.6.3 requires ext-curl * -> the requested PHP extension curl is missing from your system. 
    - laravel-notification-channels/pusher-push-notifications 1.0.2 requires pusher/pusher-php-server 2.6.* -> satisfiable by pusher/pusher-php-server[2.6.3]. 
    - Installation request for laravel-notification-channels/pusher-push-notifications 1.0.2 -> satisfiable by laravel-notification-channels/pusher-push-notifications[1.0.2]. 

    To enable extensions, verify that they are enabled in your .ini files: 
    - /etc/php/7.0/cli/php.ini 
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini 
    - /etc/php/7.0/cli/conf.d/10-opcache.ini 
    - /etc/php/7.0/cli/conf.d/10-pdo.ini 
    - /etc/php/7.0/cli/conf.d/20-calendar.ini 
    - /etc/php/7.0/cli/conf.d/20-ctype.ini 
    - /etc/php/7.0/cli/conf.d/20-exif.ini 
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini 
    - /etc/php/7.0/cli/conf.d/20-ftp.ini 
    - /etc/php/7.0/cli/conf.d/20-gettext.ini 
    - /etc/php/7.0/cli/conf.d/20-iconv.ini 
    - /etc/php/7.0/cli/conf.d/20-json.ini 
    - /etc/php/7.0/cli/conf.d/20-mbstring.ini 
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini 
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini 
    - /etc/php/7.0/cli/conf.d/20-phar.ini 
    - /etc/php/7.0/cli/conf.d/20-posix.ini 
    - /etc/php/7.0/cli/conf.d/20-readline.ini 
    - /etc/php/7.0/cli/conf.d/20-shmop.ini 
    - /etc/php/7.0/cli/conf.d/20-sockets.ini 
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini 
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini 
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini 
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini 
    You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode. 

`

+0

サーバー管理者に相談したりphp.iniファイルを編集しますnginxサービス(何を使用していても)それは動作するはずです。 – AfikDeri

答えて

10

あなたのPHPは、あなたのパッケージを実行するためのいくつかの内線が必要です

あなたがそれをインストールすることができますapt-getあなたがubuntuとPHP 5を使用する場合:

apt-get install php5-gmp 
apt-get install php5-curl 

、あなたがPHP 7を使用する場合:

apt-get install php7.0-gmp 
apt-get install php-curl 

となどを...それはあなたのWebサービスを再起動

+0

大変ありがとう、私の問題を解決しました、私は欠けていました - php5-gmpをインストールしてください!!巨大なありがとう –

+0

私はPHP 7をチェックしましたが、まだ問題は解決していません。 –

+0

どのようなエラーが表示されますか? @RajeshVishwakarma –

0

はあなたのエラーメッセージを読むことがありますか?

2つのPHP拡張機能がありません。 gmpおよびcurl

あなたはそうのように、それらをインストールする必要があります。

sudo apt-get install php7.0-gmp 
sudo apt-get install php-curl 

これがそうでなければあなただけ手動で有効にする必要がありますが、それらをインストールの一部としてそれらを有効にする必要があります。

あなたがそれらをインストールした後にApacheを再起動していることを確認します - あなたはそれを行う方法を知っていれば、/ Apacheを再起動して、あなたのサーバー上のPHP拡張が欠落しているsudo service apache2 reload

関連する問題