Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony: command not found

I am trying working with symfony since past couple of months. Last night I did an auto remove to purge not needed repositories. After that I have not been able to create a new symfony project using the symfony command. When I run Symfony new SecurityDemo 2.8.1 in the terminal, I get the error

Symfony: command not found

I tried installing the Symfony Installer again as directed in the documentation http://symfony.com/doc/current/setup.html. I went to my root directory and followed the installation procedure as shown in the screenshot enter image description here

Still I get the same error.

All help is appreciated.

EDIT:

I am working with LAMP and am using PHP 5.6.

When I try to update the symfony Installer using symfony self-update I get the output

// Symfony Installer is already updated to the latest version (1.5.8).
like image 350
utkarsh2k2 Avatar asked Oct 13 '16 11:10

utkarsh2k2


2 Answers

For me the fix was to reinstall symfony:

curl -sS https://get.symfony.com/cli/installer | bash

see here https://symfony.com/download

as far as I experienced, it does not tamper with the environment.

like image 55
Xanlantos Avatar answered Sep 19 '22 13:09

Xanlantos


Add the following line to your shell configuration file:

export PATH="$HOME/.symfony/bin:$PATH"

like image 40
Stéphan BERGER Avatar answered Sep 23 '22 13:09

Stéphan BERGER