Installing GNUplot 5.4.2on IMac OS Big Sur

Hi, I am trying to install GNUplot 5.4.2 n my IMac with OS Big Sur. Cannot get it done. I followed the instructions of Mac App Store of 2017.

With as the latest one in the Terminal: ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)” /dev/null



Then advised to press enter/return key.


Answer: Checking for `sudo` access (which may request your password). 
Need sudo access on macOS (e.g. the user …….. (my name) needs to be an Administrator)!


zsh: command not found: and


………..(my name)@192 ~ %


I am the administrator. My password does not help. Then I get: cmdsubst>


Please what is the solution?



Thanks


Posted on Jun 16, 2021 5:33 AM

Reply
3 replies

Jun 16, 2021 8:27 AM in response to Ruliyah

Don't follow instructions from 2017. Follow the current instructions.


Go to the homebrew (brew.sh) site and copy/paste that installation string into the Terminal, and then press return. It requires at minimum, the command-line tools for Xcode 12.6 on Big Sur, and will attempt to install this package for you, before continuing to resolve the dependencies ( a great many) for GNUPlot 5.4.1. If you are on an M1 Mac, it expects /opt/homebrew as the destination for homebrew builds, and an Intel Mac expects /usr/local. You may have to create these directory locations if not present.


Once homebrew is successfully installed:


brew --version
brew update
brew upgrade
# shows the enormous dependency tree of other packages that must be installed for gnuplot
brew deps --tree --installed gnuplot
brew install gnuplot
brew cleanup


The current homebrew version at the time of this post is 3.1.9.


Once you have GNUPlot installed, you must change your ~/.bash_profile, or ~/.zshrc dot files to access the homebrew directory first in your PATH:


Intel:

export PATH=".:/usr/local/bin:${PATH}


Apple Silicon:

export PATH=".:/opt/homebrew/bin:/usr/local/bin:${PATH}


Then, depending if you are still using the Bash shell:

source ~/.bash_profile


or the Zsh shell:

source ~/.zshrc


and you can run Gnuplot right from the command-line, provided it was installed and compiled correctly. On an M1 Mac, your binaries will be compiled as arm64, and on an Intel machine, as X86_64.

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.

Installing GNUplot 5.4.2on IMac OS Big Sur

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