如果覺得自行 compile 麻煩的話, 不妨試試 [
在 ubuntu 10.04 安裝 gretl 1.9.3x - 有關 gnuplot 的問題] 這一篇的方法gretl 網站的原始方法
這個步驟是成功的: see
Install Gnuplot 4.4.0 on Ubuntu Linuxsudo apt-get install libwxgtk2.8-dev libpango1.0-dev libreadline5-dev libx11-dev libxt-dev texinfo libgd2-xpm-dev
Then we download and compile gnuplot (run each command/line in a terminal)
wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.4.0/gnuplot-4.4.0.tar.gz/download
tar xzf gnuplot-4.4.0.tar.gz
mkdir build && cd build
../gnuplot-4.4.0/configure --with-readline=gnu
make
sudo make install
/usr/local/bin/gnuplot
用 gnuplot for gretl 的方法, 但是有錯誤(在執行 gretl 時):
/opt/gnuplot/bin/gnuplot: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /opt/gnuplot/bin/gnuplot)
另外有成功地 compile gnuplot, 在安裝以下的 packages 之後 (參見):
sudo apt-get install automake checkinstall libwxgtk2.8-dev libpango1.0-dev libreadline5-dev libx11-dev libxt-dev texinfo libgd2-xpm-dev liblua5.1-dev
另見 gnuplot 4.4.2@sourceforge
再執行:
./prepare
./configure --with-readline=gnu --with-lua
*from http://gretl.sourceforge.net/gnuplot_for_gretl.html
Build from source
Note that for this to succeed you will need to have the "devel" packages for GTK+ and Xorg installed.export CVSROOT=:pserver:anonymous@gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot cvs login cvs -z3 checkout gnuplotJust hit Enter when asked for a password. Then
sh ./prepare ./configure --prefix=/opt/gnuplot make sudo make installThe choice of installing to /opt/gnuplot is designed to avoid collisions with gnuplot as installed by your Linux distro.
Packaged binary
If you would prefer to try a pre-built binary, use the following commands to download and install the package.cd /tmp wget http://ricardo.ecn.wfu.edu/pub/gretl/gnuplot-4.5-i586-3.tar.gz cd / sudo tar xvfz /tmp/gnuplot-4.5-i586-3.tar.gz rm /tmp/gnuplot-4.5-i586-3.tar.gzNote that this package installs into /opt/gnuplot.
Using the new gnuplot
In gretl, go to Tools/Preferences/General/Programs and change the "gnuplot" entry to read/opt/gnuplot/bin/gnuplot
* see also
Compiling GNUPLOT from CVS with Ubuntu
沒有留言:
張貼留言