Home > Net >  Why I can't I install composer on ubuntu using terminal?
Why I can't I install composer on ubuntu using terminal?

Time:08-16

I have installed xampp on my (ubuntu 16.04)local machine using installer and I found apache and mysql is working but I am trying to install composer from terminal. It's not working for php as the first command of my code. I think it is not recognizing php as a command. I am trying to write following code on terminal.

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

what I am getting:

The program 'php' can be found in the following packages:
* php7.0-cli
 * hhvm
Try: apt install <selected package>

What should I do now?

I have attached the picture.

CodePudding user response:

Do it as it showing on terminal.

  • Related