Got and error when installing phalcon-devtools

My OS is Ubuntu 16.04. I have followed the installation instructioni as follow: 1. git clone git://github.com/phalcon/phalcon-devtools.git 2. cd phalcon-devtools/ 3. . ./phalcon.sh 4. ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon 5. chmod ugo+x /usr/bin/phalcon

when I go through step 3. I got an error "init:3: = not found". It seems the script needs to run in rullevel3? Anybody knows what's going on? I have on idea how to fix this issue.



636

Hi lydbupt,

I think your step 3 is not necessary . ./phalcon.sh (script does not need to be sourced), it is not even not mentionned in the readme https://github.com/phalcon/phalcon-devtools#installation-via-git

As you don't have step 0 telling us in wich directory you are before running your commands, I propose such sequence:

$ git clone git://github.com/phalcon/phalcon-devtools.git
$ cd phalcon-devtools/
$ sudo ln -s phalcon.php /usr/local/bin/phalcon
$ sudo chmod ugo+x /usr/local/bin/phalcon

Bests