PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, January 29, 2022

[FIXED] making it so you can call composer from any directory

 January 29, 2022     composer-php, linux, php     No comments   

Issue

I put composer.phar in /usr/bin and I then created /usr/bin/composer with php /usr/bin/composer.phar $@ and then when I try to run composer I get the following:

No command 'composer' found, did you mean:
 Command 'compose' from package 'mime-support' (main)
composer: command not found

Any ideas?


Solution

Use symlink:

ln -s ~/composer.phar /usr/bin/composer
chmod +x ~/composer.phar


Answered By - Anatoly Rugalev
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing