簡體   English   中英

創建新的symfony項目時出錯

[英]Error creating new symfony project

在全新安裝的Ubuntu(14.04 LTS)上,我准備了以下命令:

更新應用中心sudo apt-get update && sudo apt-get upgrade

安裝燈服務器sudo apt-get install lamp-server^

安裝curlsudo apt-get install curl

安裝php5-curlsudo apt-get install php5-curl

從這一點上,我遵循從最初到現在的Symfony的安裝說明,說明在這里

sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony
sudo chmod a+x /usr/local/bin/symfony

當我嘗試使用symfony new projectX創建我的新項目'projectX'時,我收到以下錯誤:

/usr/local/bin/symfony: line 1: syntax error near unexpected token `newline'
/usr/local/bin/symfony: line 1: `<!DOCTYPE html>'

出於絕望,我試過運行它sudo,但后來得到:

/usr/local/bin/symfony: 2: /usr/local/bin/symfony: Syntax error: newline unexpected

我究竟做錯了什么? 在此先感謝您的幫助!

head /usr/local/bin/symfony查看文件。 看來你沒有下載phar文件。 相反,你得到了一個用curl保存的html錯誤頁面。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM