Installation of MacPorts

I tried installing Ngspice through MacPorts.After downloading "MacPorts-2.6.3-10.15-Catalina.pkg" and installing it , I tried using sudo port, but it was not being recognised.On using "export PATH=$PATH:/opt/local/bin" it worked and I can use Ngspice but this process has to be repeated every time I open the terminal.Could someone give me a permanent solution?



Posted on Sep 15, 2020 10:49 PM

Reply

Similar questions

2 replies

Sep 16, 2020 7:06 AM in response to VikingOSX

And, if you want access to any installed man pages, add this second line to your ~/.zshrc or ~/.bash_profile, whichever is relevant:


export MANPATH="/opt/local/share/man:/usr/local/share/man:$MANPATH


I didn't mention it previously, but once you are finished editing the dot file, you can issue the following command (in the appropriate shell) to make them immediately effective, instead of waiting for the next Terminal session:


source ~/.zshrc
source ~/.bash_profile



Sep 16, 2020 6:41 AM in response to K19P1251

If Zsh is now your default shell, then create a ~/.zshrc file in your home directory, and add the following line to it. If still Bash, then revise this line in your ~/.bash_profile:


export PATH="/opt/local/bin:/usr/local/bin:$PATH


This will search these paths before the standard PATH settings, just in case you install something in these two preceding locations that would have a name space collision with anything installed by the operating system in its normal $PATH locations.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Installation of MacPorts

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.