2010年3月25日 星期四

install gnuplot on MAC

前提:每次安裝都會花很久的時間才會安裝成功,不是失敗就是哪些沒安裝,為了以防萬一還是來記一下好了。

在 MAC上安裝 gnuplot 之外必須還要在安裝一項 AquaTerm 來輸出結果。

stap 1. download AquaTerm v1.0.1
click on "AquaTerm.dmg"
step 2. open Terminal type :
"cd /usr/local/lib/"
"sudo ln -s libaquaterm.1.0.1.dylib libaquaterm.1.0.0.dylib"
ernter your password

-------------------------------------以上aquaterm才算是安裝成功---------------------------------
再來就是gnuplot 的部份:
there are two way to install gnuplot :

step 3. download gnuplot 4.0.0.dmg
install this , and follow the installation step to the end.

the other way to install is :
step 3. download gnuplot-4.4.0.tar.gz
unzip this file
step 4. open Terminal to where you download the gnuplot file.
4-1 . type "./configure" enter it
4-2. "make"
4-3. "sudo make install" and type your password.

--------------------------------------------end-----------------------------------------------
check gnuplot :

step 5. type "gnuplot"

step 6. "set term aqua"

step 7. "plot sin(x)"

個人比較喜歡第一種方法,簡單。雖然比較低階(只有到4.0.0),但是個人用起來似乎沒什麼差別。

參考網站:http://www.oikos.com.tw/v4/viewtopic.php?id=32198
http://www.it.uom.gr/teaching/gnuplot/gnuplot.html

沒有留言: