I just bought a macbook pro recently. The first thing that I need is to setup the latex environment to write. The tex installation is not hard to achieve, you can just search “mac os latex installation” in google, you will find the dmg file to install it. The problem is I need gnuplot to draw charts, but there is no mac os binary for the latest version. So i tried to compile it my self. It is not hard but need a little trick.
First, download the latest gnuplot source from here: http://sourceforge.net/projects/gnuplot/files/gnuplot/
and then unzip the download file. Before start to compile and install it you need to install the ReadLine lib for gnuplot. This is an issue for mac os, which is indicated in the INSTALL file of gnuplot. In this file, it mentions two ways to install the ReadLine lib, one is to override the mac os one, while another is install it in your personal space and specify the path to gnuplot installation. I chose the second one.
To download the latest ReadLine lib source, click here: readline-6.2
Create a folder in any place you want to install readline lib (except /usr/local/), mine is /Users/bohoustudio/Local
unzip the lib downloaded and type the command in a console:
./configure --prefix=<the path of the folder you just created>
Usually you will have an error that use -dynamiclib rather than -dynamic
You need to go into the sub folder shlib in the ReadLine source folder and edit Makefile, search -dynamic and change it to -dynamiclib
Go to console type:
The ReadLine lib is well installed.
Change your working directory to the gnuplot source folder, type
./configure --with-readline=<the path of the folder you just created>
Your gnuplot for mac os is well installed now.