I successfully installed GTK2. "sudo ./configure --with-lua --with-gtk2" got further than before but ended with "configure: error: Header file lua.h not found.". I downloaded, and unpacked, lua-5.2.3.tar.gz and tried "make linux". This resulted in "lua.c:297: warning: implicit declaration of function ‘add_history’" Despite the "warning", the effect was a fatal error (stopped compiling). Thanks,
Update. The following is lua related output from configure.log
cat config.log | grep lua
$ ./configure --with-lua --with-gtk2
PATH: /home/OtagoHarbour/Downloads/lua-5.2.3/src
conftest.c:39: error: logical '&&' with non-zero constant will always evaluate as true
configure:33563: checking whether to use liblua for the Lua scripting plugin
configure:33657: checking lua.h usability
/usr/include/lua.h:16:21: error: luaconf.h: No such file or directory
/usr/include/lua.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Number'
/usr/include/lua.h:107: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Integer'
/usr/include/lua.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
/usr/include/lua.h:131: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_State'
/usr/include/lua.h:132: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_State'
/usr/include/lua.h:135: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_CFunction'
/usr/include/lua.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:145: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:146: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:147: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:151: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:154: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:161: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:162: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:163: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:164: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:165: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:166: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:168: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Number'
/usr/include/lua.h:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Integer'
/usr/include/lua.h:170: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Unsigned'
/usr/include/lua.h:171: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:172: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'size_t'
/usr/include/lua.h:174: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_CFunction'
/usr/include/lua.h:175: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:176: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_State'
/usr/include/lua.h:177: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:192: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:198: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:199: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:205: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:206: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:211: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:213: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:214: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:223: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:224: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:225: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:226: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:227: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:228: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:229: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:230: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:231: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:232: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:238: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/ include/lua.h:239: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:240: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:241: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:243: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:244: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:245: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:251: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:257: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:261: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:265: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:271: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:274: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:275: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:294: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:301: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:303: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:305: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:306: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:308: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Alloc'
/usr/include/lua.h:309: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:382: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:384: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:385: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:386: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:387: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'const'
/usr/include/lua.h:389: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:390: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/include/lua.h:393: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:394: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'lua_Hook'
/usr/include/lua.h:395: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:396: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/include/lua.h:412: error: 'LUA_IDSIZE' undeclared here (not in a function)
| #include <lua.h>
configure:33657: checking lua.h presence
/usr/include/lua.h:16:21: error: luaconf.h: No such file or directory
| #include <lua.h>
configure:33657: checking for lua.h
configure:33668: checking lua5.2/lua.h usability
conftest.c:88:24: error: lua5.2/lua.h: No such file or directory
| #include <lua5.2/lua.h>
configure:33668: checking lua5.2/lua.h presence
conftest.c:55:24: error: lua5.2/lua.h: No such file or directory
| #include <lua5.2/lua.h>
configure:33668: checking for lua5.2/lua.h
configure:33762: error: Header file lua.h not found.
ac_cv_header_lua5_2_lua_h=no
ac_cv_header_lua_h=no
CONFIG_ARGS='--with-lua --with-gtk2'
I unpacked wireshark-1.12.2.tar.bz2 and tried "sudo ./configure --with-lua --with-gtk2" in wireshark-1.12.2. It still ends with "configure: error: Header file lua.h not found" although lua.h is in the search path. This seems like a wireshark installation issue. Thanks,
You did
yum install lua-devel
before you tried to runsudo ./configure --with-lua --with-gtk2
, right?If not, do
yum install lua-devel
, to make sure you have the necessary header files and libraries.And, in either case, don't run the configure script with
sudo
- unless your system is badly set up, you should not need root privileges to run the configure script or compile anything.I did "sudo yum install lua-devel". Without the sudo, I get "You need to be root to perform this command.". "./configure --with-lua --with-gtk2" still ends with "configure: error: Header file lua.h not found." Thanks,
Why are you doing the yum install without the sudo? You need to do it as root or with sudo (effectively as root).
Probably because the original answer didn't have the sudo. I added it to the answer.
What does
ls -l /usr/include/lua.h
print? If it reports that it exists, look at the fileconfig.log
in the Wireshark source directory, look for "lua", and report all the output that concerns Lua.Sorry about my slow reply. lua.h was not in /usr/include but I copied it there. "./configure --with-lua --with-gtk2" still ends with "configure: error: Header file lua.h not found." The lua related out from config.log was to voluminous for a comment so I put it as an addendum to the question. Thanks,
Where was it?
/usr/include/lua5.1
, or/usr/include/lua5.2
, or some directory such as that?My apologies! I did not notice that "sudo yum install lua-devel" had not finished running. I made sure it had finished and my problem with the wireshark installation went away. Thanks,