4

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

Eric Carvalho
  • 55,453
Adriaan
  • 680

1 Answers1

3

I incur the same problem as you.

It appears that the gnuplot-5.0.1 is not Lua 5.3-compatible. It uses luaL_checkint, but Lua 5.3 is using luaL_checkinteger. You need to update the Gnuplot-5.0.1 file term/lua.trm as follows:

254       //t_num = luaL_checkint(L, 1);
255       t_num = luaL_checkinteger(L, 1); 
…
289       //t_num = luaL_checkint(L, 1);
290       t_num = luaL_checkinteger(L, 1);

Then, make and make install. It's OK in my Ubuntu 14.04

miaomao
  • 31