Asuforce / php-http-accept-language

HTTP Accept-Language header parser
https://packagist.org/packages/zonuexe/http-accept-language
Other
0 stars 0 forks source link

composer installでextensionが無いと言われる #2

Open Asuforce opened 9 years ago

Asuforce commented 9 years ago

現状

composer installすると下記のエラーが出て失敗する

'''' Your requirements could not be resolved to an installable set of packages.

Problem 1

composer installを成功させる

修正方法

PHPの拡張機能の"ext-intl"を追加する 下記はmac内の環境のphpを利用しているので、mamp等の場合は下記のリンクを参照する http://stackoverflow.com/questions/26285280/cakephp-3-0-installation-intl-extension-missing-from-system

1.homebrewを使ってintlをインストール $brew install homebrew/php/php56-intl

2.php.iniを修正する $vi /etc/php.ini

書き加える extension=/usr/local/Cellar/php56-intl/5.6.10/intl.so 900行目あたりに

3.php-http-accept-languageのディレクトリに戻り下記を実行 $composer install

4.下記のアラートが出たらgitのアカウント情報を入力して対応する Could not fetch https://api.github.com/repos/sebastianbergmann/version/zipball/58b3a85e7999757d6ad81c787a1fbf5ff6c628c6, enter your GitHub credentials to go over the API rate limit

5.インストールが完了する

Asuforce commented 9 years ago

PHP Warning: PHP Startup: intl: Unable to initialize module Module compiled with module API=20131226 PHP compiled with module API=20121212

が出た 直ってない

Asuforce commented 9 years ago

現状

composer installすると下記のエラーが出て失敗する

'''' Your requirements could not be resolved to an installable set of packages.

Problem 1

期待する結果

composer installを成功させる

修正方法

PHPの拡張機能の"ext-intl"を追加する 下記はmac内の環境のphpを利用しているので、mamp等の場合は下記のリンクを参照する http://stackoverflow.com/questions/26285280/cakephp-3-0-installation-intl-extension-missing-from-system

1.homebrewを使ってintlをインストール $brew install homebrew/php/php56-intl

2.intlをphpのextensionsディレクトリに移動する $sudo cp /usr/local/Cellar/php56-intl/5.6.10/intl.so /usr/lib/php/extensions/no-debug-non-zts-20121212/intl.so ※"no-debug-non-zts-20121212"は適宜変更してください

3.php.iniを修正する $vi /etc/php.ini

書き加える extension=intl.so 900行目あたりに

4.php-http-accept-languageのディレクトリに戻り下記を実行 $composer install

5.インストールが完了する