ports not working with sudo

Kaustubh Bansal kaustubh.cool at gmail.com
Fri Dec 9 12:40:05 UTC 2022


Hi

I recently installed MacPorts on my machine (MacOs Ventura 13.0)
Installation succeeded.
I then added /opt/local/bin to PATH

I am trying to install clang-15.

Command:
$ sudo port install clang-15
Message: sudo: port: command not found

Command:
$ port install clang-15
Message: Error: Insufficient privileges to write to MacPorts install prefix.

Command:
$ which port
Message: /opt/local/bin/port

Any idea why por does not work with sudo?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20221209/e820a90e/attachment.htm>


More information about the macports-users mailing list