2012-02-25 304 views
1

所以我是一個新的教條,但我根本無法安裝軟件包。我遵循指南,但我得到的「錯誤」是非常不尋常的。Symfony 2.0軟件包安裝

無論如何,我添加此行到DEPS文件:

[FOSRestBundle] 
    git=http://github.com/FriendsOfSymfony/FOSRestBundle.git 
    target=bundles/FOS/RestBundle 

然後我做的:

./bin/vendors install 

我也得到:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/sqlite.so' - /usr/lib/php5/20090626+lfs/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0 
Your project seems to be based on a Standard Edition that includes vendors. 

Try to run ./bin/vendors install --reinstall 

所以對我這個標準的方法根本無法安裝它。有人可以解釋我有什麼問題,因爲對我來說,symfony供應商腳本根本不能識別deps文件中的更改。

回答

2

當您從網站下載Symfony2標準版時會出現這種情況。供應商安裝腳本檢查供應商目錄是否爲git存儲庫,如果不是,將會拋出此錯誤。您可以修復的情況在以下兩種方法之一:

  1. 您可以運行該命令,它表明:php bin/vendors install --reinstall
  2. 或者,你可以刪除供應商目錄,然後運行php bin/vendors install,這相當於大約相同東西