脳みそスワップアウト

揮発性なもので。おもにPHPのこととか。

fuelphpをcomposerでインストール

fuelphpをcomposerでインストール

業務で少し使っていたのだけれど、
近頃のコンポネント志向なframeworkなら、できることならライブラリ群をcomposerで管理したい。

こちらの記事を参考に試してみたところ
FuelPHP をもっと Composer で使う | chatii-log Webの人になりたい

こんなエラー。
CentOS-6.4で、gitは1.7.1。

Installing dependencies (including require-dev)
  - Installing fuel/core (1.7)
    Cloning 1.7/master

  [RuntimeException]
  Failed to execute git checkout '1.7/master' && git reset --hard '1.7/master'

  error: pathspec '1.7/master' did not match any file(s) known to git.


git操作で失敗しているようなので、最新版をビルドして試してみるとできた。

$ PATH=~/local/git-1.8.5.3/bin:$PATH ./composer.phar install