[Lmod-users] Problem building Lmod
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Jeff L. <lay...@at...> - 2013-01-03 20:06:11
|
Afternoon everyone! I decided to try building Lmod so I could understand the process before deciding whether to install it in /opt or /usr/local/. I chose to start by installing it into /opt just for grins. I grabbed Robert's lua-5.1.4.5 package and built it and installed it in /opt/apps/lua/5.1.4.5 and everything seemed to go find (I didn't try 'make test'). I symlinked lua to /usr/local/bin and I made sure it was in the my path. I tested this by just running the command 'lua' and the interpreter came up. I think decided to build Lmod (1.4.1) and set PREFIX to /opt/apps. The configure process seemed to go fine: [root@test1 Lmod-4.1.4]# ./conf.jeff MODULEPATH_ROOT=/opt/apps/modulefiles ANCIENT=86400 SHORT_TIME=2 SPIDER_CACHE_DIR= PREPEND_BLOCK=no checking for sha1sum... /usr/bin/sha1sum checking for more... /bin/more checking for lua... /usr/local/bin/lua Checking for lua modules: posix lfs... yes checking for pkg-config... /usr/bin/pkg-config configure: creating ./config.status config.status: creating makefile Then I tried a simple "make install" and got an error: cd pkgs; \ make LUA_INC=/usr/local/include LUA_LIB=/usr/local/lib LIB=/opt/apps/lmod/4.1.4/lib \ SHARE=/opt/apps/lmod/4.1.4/libexec install make[1]: Entering directory `/root/src/Lmod-4.1.4/pkgs' cd term; make install make[2]: Entering directory `/root/src/Lmod-4.1.4/pkgs/term' cc -fPIC -I/usr/local/include -c -o core.o core.c core.c:1:17: error: lua.h: No such file or directory core.c:2:21: error: lauxlib.h: No such file or directory core.c:3:20: error: lualib.h: No such file or directory core.c:7: error: expected ‘)’ before ‘*’ token core.c:16: error: expected ‘)’ before ‘*’ token make[2]: *** [core.o] Error 1 make[2]: Leaving directory `/root/src/Lmod-4.1.4/pkgs/term' make[1]: *** [install] Error 2 make[1]: Leaving directory `/root/src/Lmod-4.1.4/pkgs' make: *** [pkgs] Error 2 [root@test1 Lmod-4.1.4]# exit I'm not sure what I've done to mess this up but any help is greatly appreciated (I'm guessing it's looking for lua in /usr/local rather than /opt/apps/lua/5.1.4.5). Thanks! Jeff |