2009年4月9日 星期四

GNUPlot on Mac OSX

原始參考網站:http://maba.wordpress.com/2006/08/02/scientific-plotting-on-mac-os-x-using-gnuplot-and-plot/

1.下載aqua term
2.下載gnuplot
3.開啟terminal window
4.解開gnuplot的壓縮檔(我直接解在Downloads底下gnuplot)
5.執行.prepare
@@@@@@@@@$ ./prepare
make: `Makefile.am' is up to date.
make: `Makefile.am' is up to date.
make: `Makefile.am' is up to date.
make: `Makefile.am' is up to date.
make: `Makefile.am' is up to date.

The gnuplot source code was successfully prepared.
Run configure now, then make && make install to build and install gnuplot.

@@@@@@@@@$
6.執行./configure -with-x=no --with-tutorial CFLAGS=-DDEFAULTTERM=\\\"aqua\\\"
7.執行make
......
搞了老半天,編不起來,出現這樣的錯誤訊息
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[3]: *** [gnuplot] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
8.再google一下,原來只要打
./configure --with-readline=builtin
make
sudo make install
9.安裝好之後,執行gnuplot


10.畫個圖來看看吧  plot sin(x)


可以用啦,接下來就是熟悉gnuplot摟。

基本上grapher可以畫的,gnuplot應該都可以,只是需要一點時間習慣語法吧!
畢竟這個軟體有點類似LaTex,屬於後端編輯,前端顯示的。


沒有留言:

張貼留言