Install Gnuplot Mac

Posted on  by admin

Gnuplot download Current gnuplot major version is 5.4. Primary download site on SourceForge git repository; Release Notes The most recent release was 5.4.1 (December 2020) Downloads offered by others Development version: Windows binaries built by Tatsuro Matsuoka: (cygwin) and (MinGW).

Goal

  • How to Install Octave Gnuplot Package for Windows PC or MAC: Octave Gnuplot Package is an Android Tools app that is developed by Corbin Champion and published on Google play store on NA. It has already got around 10000 so far with an average rating of 4.0 out of 5 in play store.
  • Gnuplot Mac Os X Dmg How Do I Open A Dmg File In Windows 10 Www Dmg Raj Org Www Dmgraj Gov In Unibeast In Os X Yosemite.dmg Dmg Table For Magical Tables 5e Mac Os X Install Dvd 10.14.1.dmg Rotmg How Much Dmg For Soulbound Sw Max Crit Dmg Roll Popcorn Time Dmg Not Recognized Macos 10.13.6 Dmg Amd内核.
  • The installation on Linux can be done through the different package managers as follows. Arch $ sudo pacman -S gnuplot Debian and Ubuntu $ sudo apt-get update $ sudo apt-get install gnuplot CentOS / RedHat $ sudo yum check-update $ sudo yum install gnuplot Fedora $ sudo dnf check-update $ sudo dns install gnuplot Mac OSX Using Homebrew.

Personally, I find it is too often difficult to install software packages of great use to physicists. There are many competing instructions online and too many links/threads to follow, and I have struggled countless hours with these things.
As such, I attempt to remedy this by providing instructions on installing: Root, Geant4, Gnuplot, Garfield++, and SRIM on a Mac (as of Aug 2017). Disclaimer: I am not a computer scientist; I am just providing what has worked for me. I hope it works for you!
I will assume that you have XCode, XQuartz, and CMake installed already. Here are links to install the latter two:

As a small aside, if you are using CMake and get an error about a 'static atomic_TClass_ptr', in the ccmake options, toggle the advanced options (t), edit CMAKE_CXX_FLAGS to '-std=c++11' and try again. Myself and newer mac users had this problem come up a number of times.

Root

Go to the CERN Root download page, and get the latest source .tar.gz file. Please note that I typically keep all of my source directions in /Applications/ folder; if you chose a different location, just be aware the commands will change based on directory locations. Copy the tar file there, unzip it, configure, and make:

$ cd /Applications/ $ mkdir root-6.08.02 $ cd root-6.08.02/ $ cp ~/Desktop root_v6.08.02.source.tar.gz ./ $ tar -jxvf root_v6.08.02.source.tar.gz $ ./configure $ make -j4

The final step is to edit your bash_profile to tell the terminal where your root is living:

$ cd ~/ $ vim .bash_profile

Add the following lines:

export ROOTSYS=/Applications/root-6.08.02 export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH

To get started, you can now run on your terminal:

Gnuplot $ root Install

Geant4

Before getting to Geant4, if you wish to use some great visualization feature, we need to install Qt properly. For Qt visualization to work with your Geant4 build, you MUST download Qt 5.6, not the most recent version. You can specify which Qt version after launching the .dmg in the installer.


Create a directory in which you want Geant4 to live, download the most recent Geant4 tar file and copy it to your directory location (I have it in Applications). Then we will make a build directory for Geant4, and install Geant4 in an install directory. The cmake command will take many flags, including a path to your Qt installation (I have mine in Applications/qt). You also want turn on multithreading and XQuartz (X11) capabilities. Use clang++ cxx compiler and clang c compiler. For more info on the cmake flags available (though you shouldn't need any others), visit here.

$ cd /Applications/geant4/ $ cp ~/Desktop geant4.10.03.p01.tar ./ $ tar xf geant4.*.tar.gz $ ls geant4.10.03.p01/ geant4.10.03.p01.tar.gz $ rm -rf geant4.10.03.p01.tar.gz $ mv geant4.10.03.p01/ geant4.10.03/ $ mkdir geant4.10.03-build $ cd geant4.10.03-build $ cmake -DCMAKE_INSTALL_PREFIX=/Applications/geant4/geant4.10.03-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_QT=ON -DGEANT4_FORCE_QT4=OFF -DCMAKE_PREFIX_PATH=/Applications/qt/5.6/clang_64/lib/cmake/ -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_OPENGL_X11=ON -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang /Applications/geant4/geant4.10.03/

Build output will be different but the following last couple lines should be:

-- Configuring done -- Generating done -- Build files have been written to: <some-directory>/build </some-directory>

Now compile Geant4 -- for a system with N cores, you can specify how many you want to dedicate to the compilation (you still need to be in your build directory)

$ make -jN $ make install

You should now have working Geant4! Every time you want to use an application using Geant4, remember to run source:

$ source geant4.10.03-install/bin/geant4.sh

But instead of doing the above always, the easier thing is to just edit your bash_profile:

$ cd ~/ $ vim .bash_profile

Add the following lines:

if [ -f /Applications/geant4/geant4.10.03-install/bin/geant4.sh ] then source /Applications/geant4/geant4.10.03-install/bin/geant4.sh fi

I leave it to you to start coding (the examples Geant4 provides are extremely useful, and also this tutorial SLAC provides here).

Gnuplot

Create a directory in which you want Gnuplot to live; download the most recent Gnuplot tar file and copy it to your directory location (I have it living in my Applications folder). Unzip gnuplot-5.05 (or the most recent version), go into that directory, and simply execute the following lines. Note, by running make check', gnuplot will launch XQuartz and will make any plots to check for any errors. Though this step isn't really necessary, it's a great way to visualize and see what gnuplot is capable of.

Gnuplot $ ./configure $ make $ make check $ sudo make install

If there are no compilation errors, you should be able to now launch gnuplot from the terminal in any directory and quickly make a plot! For example, let's make a sinusoidal plot. Open a terminal and:

$ gnuplot gnuplot> plot sin(x)

Garfield++

Must install before: ROOT (version 5.26 or higher)


Create a directory in which you want Garfield++ to live, I use /Applications/garfield. Inside my garfield home directory, I have a build and a source directory. To download the most recent version of Garfield++ and copy it to your source directory, type into the terminal:

$ svn co http://svn.cern.ch/guest/garfield/trunk /Applications/garfield/source

Go into your /Applications/garfield/build directory and utilize CMake:

$ cd /Applications/garfield/build $ ccmake /Applications/garfield/source $ make install

The final step is to edit your bash_profile again:

How To Install Gnuplot

$ cd ~/ $ vim .bash_profile

Add the following lines:

export GARFIELD_HOME=/Applications/garfield export HEED_DATABASE=$GARFIELD_HOME/Heed/heed++/database

SRIM

SRIM is excellent software for ion propagation in material. Unfortunately, it only runs on Windows. To resolve this, I recommend taking advantage of a Windows emulator called Wine. First, we need to download WineBottler. From the .dmg, drag both Wine and WineBottler into your Applications Folder. Wine will create a hidden directory, typically in ~/ called 'Wine Files'.
Once you have Wine, we can now install SRIM. Grab the 2013 version of SRIM from their website near the bottom. The download will give you a .e file. Now, we'll need to unpack this in your Wine Files:

$ cd ~/Wine Files/ $ cd drive_c/Program Files/ $ mkdir SRIM $ cp ~/Desktop/SRIM-2013-Std.e ./SRIM/ $ mv SRIM/SRIM-2013-Std.e SRIM/SRIM-2013.exe

Now that we setup the directory for SRIM, you can practice using Wine by trying to launch the .exe file from the Wine emulator. Launch Wine from Applications, and you'll note that next to your time-date on the upper Mac dock, a Wine bottle has appeared. Click on it, and launch File Manager.
Navigate to Program Files > SRIM and then double click the SRIM-2013.exe file. It will unpack and extract a lot of files, but the only one you'll most likely use is SRIM.exe.


You will likely have to install some missing Windows files to get SRIM to work properly. Follow instructions on _SRIM Setup Message.pdf. You can easily open the pdf from the terminal with:

Install Gnuplot Windows 10

Gnuplot

Install Gnuplot Mac Os X Yosemite

$ cd ~/Wine Files/drive_c/Program Files/SRIM/ $ open _SRIM Setup Message.pdf