I am making an attempt to install the program gnuplot
version 5.0.1 on Ubuntu 14.04
. For this, I made the following steps.
Steps to install Gnuplot.
1) Run 'sudo apt-get install libreadline-dev', necessary for the Lua installation to run properly.
2) Download Lua.
3) In the Lua root directory, run 'make linux'.
4) In the Lua root directory, run 'make test'.
5) In the Lua root directory, run 'make install'.
6) Download gnuplot.
7) In the gnuplot root directory, run './configure --with-lua=yes'.
8) In the gnuplot root directory, run 'make'.
In the last step, I get the errors
/GNUplot/Source/gnuplot-5.0.1/src/../term/lua.trm:288: undefined reference to `luaL_checkint'
and
/GNUplot/Source/gnuplot-5.0.1/src/../term/lua.trm:254: undefined reference to `luaL_checkint'
Googling on this error does not seem to give me any useful hits to solve the problem...
How can I solve this?
ADDITIONAL INFORMTATION, ON REQUEST OF the user lemonslice
:
The output of ./configure --with-lua=yes
: https://drive.google.com/file/d/0B_npknqRCNbCM09ua3ZlSjR1X0k/view?usp=sharing
I incur the same problem as you.
It appears that the
gnuplot-5.0.1
is not Lua 5.3-compatible. It usesluaL_checkint
, but Lua 5.3 is usingluaL_checkinteger
. You need to update the Gnuplot-5.0.1 fileterm/lua.trm
as follows:Then,
make
andmake install
. It's OK in my Ubuntu 14.04