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
configure --with-lua=yes? Especially the part with Lua libraries – lemonslice Aug 25 '15 at 16:3914.04 LTSinstead and see if I get the same error. Release14.04 LTSis still supported, right? – Adriaan Aug 25 '15 at 22:38/homepartition when you reinstall? Or do you wipe everything and start from scratch? – Fabby Aug 25 '15 at 23:0414.04 LTS. I will add the tag14.04. Will this post be taking off hold? – Adriaan Aug 26 '15 at 09:04./configure --with-lua=yesthere. – Adriaan Aug 27 '15 at 08:03Line 3731: lua is not found.You should install lua libs from a debian package or add the location of the lua you have built from source to yourPKG_CONFIG_PATHvariable. – lemonslice Aug 27 '15 at 12:27lua;). I downloaded it from http://www.lua.org/download.html. So I guess it might be the location of lua problem you mentioned. I'll try to solve this, but I, unfortunately, do not have a lot experience with stuff like that. Could you perhaps be more specific in what exactly I should add toPKG_CONFIG_PATHand how? Thanks! – Adriaan Aug 27 '15 at 13:12Lua 5.3.1. In theconfig.logit says I need the filelua.pc, but it didn't come with thelua-5.3.1.tar.gz. Supposedly, thelua.pcis in the corresponding development files, but I cannot find theLua 5.3.1development files on the Lua website. – Adriaan Aug 27 '15 at 13:40.pcfile (asliblualib-dev). – lemonslice Aug 27 '15 at 16:01liblualib-devdoes not exist. I installedliblua5.2-devand I still have the same problem :(. But I think that on lua-users.org/lists/lua-l/2012-02/msg00814.html they say that as of version 5.2,lua.pcis dropped. I'll try to install an older version then. Guessgnuplotis not exactly using the latest version ofluayet :(. – Adriaan Aug 27 '15 at 22:26liblua5.1-0-devalso didn't help. Still get the same error. – Adriaan Aug 27 '15 at 22:32gnuplotthat is already in the repos? Why notapt-get install gnuplot?? – chicks Sep 04 '15 at 11:49gnuplot 5.0.1. The version offered withapt-get install gnuplotis unfortunately an older version. To be more precise, I see it's version4.6.4-2at this time. – Adriaan Sep 07 '15 at 10:27