Installing DUB on OSX

Edwin van Leeuwen via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Feb 18 01:55:24 PST 2016


On Thursday, 18 February 2016 at 09:25:00 UTC, Joel wrote:
> On Thursday, 18 February 2016 at 08:24:34 UTC, Jacob Carlborg 
> wrote:
>> On 2016-02-18 08:11, Joel wrote:
>>> I had dub installed in a folder that meant I had to put 'sudo 
>>> dub' to
>>> run it. I've tried to fix the problem, but where do you put 
>>> it (also I
>>> tried one place, but couldn't put it in that folder)?
>>
>> You usually have read access to most paths. That means you 
>> should be able to run dub without sudo. Where is "dub" 
>> located? Run "which dub".
>
> It's currently in '/usr/local/bin'.
>
> How do I add it to '/usr/bin' (or what ever)?
>
> I get:
> Joels-MacBook-Pro:Downloads joelcnz$ cp dub /usr/bin
> cp: /usr/bin/dub: Operation not permitted

sudo cp dub /usr/bin/

but to be honest I would delete dub (sudo rm /usr/local/bin/dub) 
and then try to install it with homebrew again.


More information about the Digitalmars-d-learn mailing list