I am trying to install phalcon development tools. In the documentation they said:
Create a symbolic link to the phalcon.php script:
ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
chmod ugo+x /usr/bin/phalcon
and after connecting to my Ubuntu server, at the step of creating symbolic link to the phalcon.php script I get an error:
ubuntu@ip-000-00-0-00:/$ sudo ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
How can I complete the installation?
When I try without sudo I get:
ubuntu@ip-000-00-0-00:/$ ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
ln: failed to create symbolic link ‘/usr/bin/phalcon’: Permission denied
Documentation which I followed
I have tried all the answers from this question but still getting same errors: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set