Error placing Poser as global MAC

Asked

Viewed 336 times

2

Personal installed the Composer on my mac by this command :

curl -s https://getcomposer.org/installer | php

He downloaded the Poser.phar and tested it :

php compser.phar

Returned to me everything ok But when I tried to use the command :

sudo mv composer.phar /usr/local/bin/composer

To leave it as global returns me :

mv: rename composer.phar to /usr/local/bin/composer: No such file or directory

How can I solve ? Thank you

UPDATE I read on a topic that we should move the Poser like this :

sudo mv composer.phar /usr/bin/composer

But make this mistake :

mv: rename composer.phar to /usr/bin/composer: Operation not permitted

1 answer

1


For anyone who is having this problem, it is necessary to restart your mac and press cmd + r during startup.

Then go into utilities > terminal and type the following commands:

csrutil disable
reboot 

This is happening because of System Integrity Protection. See more information here.

This response was translated from SOEN.

  • 1

    Don’t forget to vote for the original answers :D

Browser other questions tagged

You are not signed in. Login or sign up in order to post.