root@t510 / # less /usr/share/doc/luarocks-2.1.2/README.md root@t510 / # luarocks install luaxmlrpc Installing http://www.luarocks.org/repositories/rocks/luaxmlrpc-1.2.2-1.src.rock... Using http://www.luarocks.org/repositories/rocks/luaxmlrpc-1.2.2-1.src.rock... switching to 'build' mode Missing dependencies for luaxmlrpc: luaexpat luasocket Using http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock... switching to 'build' mode Error: Failed installing dependency: http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock - Could not find expected file expat.h, or expat.h for EXPAT -- you may have to install EXPAT in your system and/or pass EXPAT_DIR or EXPAT_INCDIR to the luarocks command. Example: luarocks install luaexpat EXPAT_DIR=/usr/local root@t510 / # luarocks install luaexpat Installing http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock... Using http://www.luarocks.org/repositories/rocks/luaexpat-1.3.0-1.src.rock... switching to 'build' mode Error: Could not find expected file expat.h, or expat.h for EXPAT -- you may have to install EXPAT in your system and/or pass EXPAT_DIR or EXPAT_INCDIR to the luarocks command. Example: luarocks install luaexpat EXPAT_DIR=/usr/local root@t510 / # luarocks search luaexpat Search results: =============== Rockspecs and source rocks: --------------------------- luaexpat 1.3.0-1 (rockspec) - http://www.luarocks.org/repositories/rocks 1.3.0-1 (src) - http://www.luarocks.org/repositories/rocks 1.2.0-1 (rockspec) - http://www.luarocks.org/repositories/rocks 1.2.0-1 (src) - http://www.luarocks.org/repositories/rocks 1.1.0-5 (rockspec) - http://www.luarocks.org/repositories/rocks 1.1.0-5 (src) - http://www.luarocks.org/repositories/rocks 1.1.0-4 (rockspec) - http://www.luarocks.org/repositories/rocks 1.1.0-4 (src) - http://www.luarocks.org/repositories/rocks 1.1.0-3 (rockspec) - http://www.luarocks.org/repositories/rocks 1.1.0-3 (src) - http://www.luarocks.org/repositories/rocks root@t510 / #
luarocks was obtained via... root@t510 / # yum install luarocks Loaded plugins: auto-update-debuginfo, product-id, refresh-packagekit, security, subscription-manager Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package luarocks.noarch 0:2.1.2-1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =========================================================================================================================== Package Arch Version Repository Size =========================================================================================================================== Installing: luarocks noarch 2.1.2-1.el6 epel 98 k Transaction Summary =========================================================================================================================== Install 1 Package(s) Total download size: 98 k Installed size: 396 k Is this ok [y/N]: y Downloading Packages: luarocks-2.1.2-1.el6.noarch.rpm | 98 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : luarocks-2.1.2-1.el6.noarch 1/1 Verifying : luarocks-2.1.2-1.el6.noarch 1/1 Installed: luarocks.noarch 0:2.1.2-1.el6 Complete!
root@t510 / # rpm -qa | grep lua lua-5.1.4-4.1.el6.x86_64 luarocks-2.1.2-1.el6.noarch root@t510 / # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.7 (Santiago) ...Thanks!
Try installing expat-devel? # yum install gcc lua-devel expat-devel # luarocks install luaexpat