Lmod安装问题

问题:

[root@master Lmod-8.7]# luarocks install luaposix
Warning: falling back to wget - install luasec to get native HTTPS support
Installing https://luarocks.org/luaposix-36.2.1-1.src.rock

Error: Failed finding Lua header files. You may need to install them or configure LUA_INCDIR.

方案:安装lua-devel

rpm -qa | grep lua

lua-devel-5.3.4-11.el8.x86_64
lua-expat-1.3.0-12.el8.1.x86_64
lua-lpeg-1.0.1-6.el8.x86_64
lua-5.3.4-11.el8.x86_64
lua-socket-3.0-0.17.rc1.el8.x86_64
luarocks-3.5.0-1.el8.noarch
lua-json-1.3.2-9.el8.noarch
lua-libs-5.3.4-11.el8.x86_64

dnf info lua-devel

Last metadata expiration check: 13:29:32 ago on Sun 17 Mar 2024 08:52:16 PM CST.
Installed Packages
Name         : lua-devel
Version      : 5.3.4
Release      : 11.el8
Architecture : x86_64
Size         : 48 k
Source       : lua-5.3.4-11.el8.src.rpm
Repository   : @System
From repo    : powertools
Summary      : Development files for lua
URL          : http://www.lua.org/
License      : MIT
Description  : This package contains development files for lua.

dnf install lua-devel

Last metadata expiration check: 13:14:36 ago on Sun 17 Mar 2024 08:52:16 PM CST.
Package lua-devel-5.3.4-11.el8.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

luarocks install luaposix

Warning: falling back to wget - install luasec to get native HTTPS support
Installing https://luarocks.org/luaposix-36.2.1-1.src.rock

luaposix 36.2.1-1 depends on lua >= 5.1, < 5.5 (5.3-1 provided by VM)
/usr/bin/lua build-aux/luke package="luaposix" version="36.2.1" PREFIX="/usr/lib/luarocks/rocks-5.3/luaposix/36.2.1-1" LUA="/usr/bin/lua" LUA_INCDIR="/usr/include" CC="gcc" LD="gcc" CFLAGS="-O2 -fPIC" LIBFLAG="-shared" LIB_EXTENSION="so" OBJ_EXTENSION="o" INST_LIBDIR="/usr/lib/luarocks/rocks-5.3/luaposix/36.2.1-1/lib" INST_LUADIR="/usr/lib/luarocks/rocks-5.3/luaposix/36.2.1-1/lua"
creating lib/posix/version.lua
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/signal.c -o linux/posix/signal.so  
gcc -O2 -fPIC -shared   -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DHAVE_TM_GMTOFF -D_XOPEN_SOURCE=700 -DNDEBUG -D_FORTIFY_SOURCE=2 -DHAVE_TM_ZONE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/time.c -o linux/posix/time.so   
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/wait.c -o linux/posix/sys/wait.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/pwd.c -o linux/posix/pwd.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/poll.c -o linux/posix/poll.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/ctype.c -o linux/posix/ctype.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/termio.c -o linux/posix/termio.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/dirent.c -o linux/posix/dirent.so  
gcc -O2 -fPIC -shared   -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2 -DHAVE_POSIX_FADVISE -DNDEBUG -DPACKAGE='"luaposix"' -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -Iext/include -I/usr/include ext/posix/fcntl.c -o linux/posix/fcntl.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/errno.c -o linux/posix/errno.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/stdio.c -o linux/posix/stdio.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/time.c -o linux/posix/sys/time.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/utime.c -o linux/posix/utime.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/resource.c -o linux/posix/sys/resource.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/syslog.c -o linux/posix/syslog.so  
gcc -O2 -fPIC -shared   -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -DHAVE_NET_IF_H -DHAVE_LINUX_NETLINK_H -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DNDEBUG -D_DEFAULT_SOURCE -DPACKAGE='"luaposix"' -D_BSD_SOURCE -DHAVE_LINUX_IF_PACKET_H -Iext/include -I/usr/include ext/posix/sys/socket.c -o linux/posix/sys/socket.so   
gcc -O2 -fPIC -shared   -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DNDEBUG -DPACKAGE='"luaposix"' -D_BSD_SOURCE -DHAVE_STATVFS -Iext/include -I/usr/include ext/posix/sys/statvfs.c -o linux/posix/sys/statvfs.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/times.c -o linux/posix/sys/times.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/fnmatch.c -o linux/posix/fnmatch.so  
gcc -O2 -fPIC -shared   -DHAVE_CRYPT -DHAVE_FDATASYNC -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DVERSION='"36.2.1"' -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DHAVE_GETHOSTID -DHAVE_CRYPT_H -DNDEBUG -DPACKAGE='"luaposix"' -D_BSD_SOURCE -DHAVE_DECL_FDATASYNC -Iext/include -I/usr/include ext/posix/unistd.c -o linux/posix/unistd.so   -lcrypt
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/stat.c -o linux/posix/sys/stat.so  
gcc -O2 -fPIC -shared   -DHAVE_MSGRCV -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DHAVE_SYS_MSG_H -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DHAVE_MSGSND -DPACKAGE='"luaposix"' -D_BSD_SOURCE -DNDEBUG -Iext/include -I/usr/include ext/posix/sys/msg.c -o linux/posix/sys/msg.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/sys/utsname.c -o linux/posix/sys/utsname.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/grp.c -o linux/posix/grp.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/libgen.c -o linux/posix/libgen.so  
gcc -O2 -fPIC -shared   -DVERSION='"36.2.1"' -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -DHAVE_SCHED_H -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DHAVE_SCHED_SETSCHEDULER -DPACKAGE='"luaposix"' -DHAVE_SCHED_GETSCHEDULER -D_BSD_SOURCE -DNDEBUG -Iext/include -I/usr/include ext/posix/sched.c -o linux/posix/sched.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/stdlib.c -o linux/posix/stdlib.so  
gcc -O2 -fPIC -shared   -D_FORTIFY_SOURCE=2 -D_XOPEN_SOURCE=700 -DVERSION='"36.2.1"' -DNDEBUG -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -D_BSD_SOURCE -DPACKAGE='"luaposix"' -Iext/include -I/usr/include ext/posix/glob.c -o linux/posix/glob.so  
/usr/bin/lua build-aux/luke install --quiet INST_LIBDIR="/usr/lib/luarocks/rocks-5.3/luaposix/36.2.1-1/lib" INST_LUADIR="/usr/lib/luarocks/rocks-5.3/luaposix/36.2.1-1/lua"
luaposix 36.2.1-1 is now installed in /usr (license: MIT/X11)

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。