$cat ~/makefiles/gnuplot.install
#add the following or similar entry into the /etc/apt/sources.list
deb-src http://ftp.us.debian.org/debian/ etch main contrib non-free
# other possible entries look like
# deb-src http://ftp.us.debian.org/debian/ unstable main contrib non-free
# install packages necessary for building gnuplot
sudo apt-get install fakeroot
sudo apt-get build-dep gnuplot
# see the versions of gnuplot available
rmadison gnuplot
# I decided to use gnuplot 4.0.0-5
# go to the place where you normally compile packages
cd /home/software/compileHere/gnuplot
# (optional) move files from previous versions/compilations if they exist
# mv gnuplot-4.0.0/ /tmp
# (optional) move old binary deb files also if necessary
# mv gnuplot*deb /tmp
apt-get source gnuplot=4.0.0-5
dpkg-source -x gnuplot_4.0.0-5.dsc
cd gnuplot-4.0.0/debian/
# Edit the file named "rules" and change
--without-gnu-readline
TO
--with-readline=gnu
# Enable the history file by adding
--enable-history-file
cd ..
dpkg-buildpackage -us -uc -rfakeroot
cd ..
ls gnuplot*deb
gnuplot_4.0.0-5_all.deb gnuplot-nox_4.0.0-5_i386.deb
gnuplot-doc_4.0.0-5_all.deb gnuplot-x11_4.0.0-5_i386.deb
sudo dpkg -i gnuplot*deb
apt-cache showsrc gnuplot
Malayamarutham is a mellifluous raaga in carnatic music which will make one soft at heart. In telugu, malaya maarutham is a cool evening breeze which invigorates mind, body & heart.
Feedback, suggestions, criticisms, typos, mistakes, errors etc., (no matter how small you think they are) on the articles of this blog are very welcome. They can be directed to kamaraju at gmail dot com.
Search This Blog
Tuesday, April 24, 2007
gnuplot with GNU readline and history support
By default, the gnuplot packages in Debian are not built with libreadline (GNU readline). This is due to licensing issues (see /usr/share/doc/gnuplot/README.Debian for more info). Having the libreadline support is useful as it enables tab completion of file names inside gnuplot. Using GNU readline, one can also access the commands used in previous gnuplot sessions. The recipe for recompiling the gnuplot packages (in the Debian way) with support for GNU readline and history file is given below.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2007
(38)
-
▼
April
(8)
- gnuplot with GNU readline and history support
- calculate md5sums in windows
- recipe for building texmacs package with pdebuild
- recipe for building texmacs package with pbuilder
- executing octave scripts
- insert page numbers in a texmacs document
- copy paste code into blogger
- Google groups feature suggestions - 1
-
▼
April
(8)
2 comments:
You can avoid most the niggles due to GNU readline being missing by using gnuplot-mode with [X]Emacs.
Only if you're the 1 in 1000 Unix users who use emacs.
Post a Comment