Ошибка, устанавливающая gnuplot: неопределенная ссылка на 'luaL_checkint'

Я предпринимаю попытку установить программу gnuplot версия 5.0.1 на Ubuntu 14.04. Для этого я сделал следующие шаги.

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'.

На последнем шаге я получаю ошибки

/GNUplot/Source/gnuplot-5.0.1/src/../term/lua.trm:288: undefined reference to `luaL_checkint'

и

/GNUplot/Source/gnuplot-5.0.1/src/../term/lua.trm:254: undefined reference to `luaL_checkint'

Поиск с помощью Google на этой ошибке, кажется, не дает мне полезных хитов для решения проблемы...

Как я могу решить это?

ДОПОЛНИТЕЛЬНЫЙ INFORMTATION, ПО ЗАПРОСУ пользователя lemonslice:

Вывод ./configure --with-lua=yes: https://drive.google.com/file/d/0B_npknqRCNbCM09ua3ZlSjR1X0k/view? usp=sharing

4
задан 27 August 2015 в 15:20

1 ответ

Я подвергаюсь той же проблеме как Вы.

кажется, что эти gnuplot-5.0.1 не совместимый с 5.3 Lua. Это использует luaL_checkint, но Lua 5.3 использует luaL_checkinteger. Вы должны обновить файл term/lua.trm Gnuplot-5.0.1 следующим образом:

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);

Затем make и make install. Это в порядке в моей Ubuntu 14.04

3
ответ дан 1 December 2019 в 10:03

Другие вопросы по тегам:

Похожие вопросы: