2023-03-26
Build instruction on Ubuntu for development version (tested on Ubuntu 22.04)
Preparation
Preparation for "apt build-dep" (If you already tweaked sources.list, this procedure is not neccesary.)
How to Fix “E: You must put some ‘deb-src’ URIs in your sources.list” on Debian/Ubuntu/Kali Linux etc.
https://dannyda.com/2022/02/22/how-to-fix-e-you-must-put-some-deb-src-uris-in-your-sources-list-on-debian-ubuntu-kali-linux-etc/
apt build-dep
sudo apt build-dep gnuplot
This installs build tools, libraries, and documentation tools (TeX) for building gnuplot binary (5.4.2 on Ubuntu 22.04) .
Install additonal tools and libraries for development version
apt install
sudo apt install gfortran libcerf-dev libwebp-dev adwaita-icon-theme-full \
unzip texlive-science
openspecfun (for the Amos routine exept the cexint)
git clone https://github.com/JuliaMath/openspecfun.git
cd openspecfun
make
sudo make install
Add the below to ~/.profile
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
For detailed discussion of the Amos routine, please refer the below
https://sourceforge.net/p/gnuplot/bugs/2475/
install picins.sty to LaTeX
wget https://mirrors.ctan.org/macros/latex209/contrib/picins.zip
unzip pinins.zip
sudo cp -pR ./picins /usr/share/texlive/texmf-dist/tex/latex
sudo texhash
git clone, build, install and documantation
#git clone
git clone https://git.code.sf.net/p/gnuplot/gnuplot-main gnuplot-dev
cd gnuplot-dev
# generate configure script
./prepare
# change configure line according to your condition
./configure --enable-function-blocks
make
sudo make install
make check
# gnuplot.pdf
make pdf
Great. I put a slightly shorter version into INSTALL.
Diff: