[Lmod-users] Module path from new install and spider caching
A Lua based environment module system that reads TCL modulefiles.
Brought to you by:
rtmclay
|
From: Bennet F. <be...@um...> - 2016-02-07 15:05:19
|
I'm still trying to spin this up right, and I am tripping over what may be some inconsequential details. I installed the latest lmod using these $ git clone https://github.com/TACC/Lmod.git lmod-6.0.29 $ checkout tags/6.0.29 -b 6.0.29 $ ./configure --prefix=/sw/arc/centos7 \ --with-module-root-path=/sw/arc/centos7/modulefiles \ --with-spiderCacheDir=/sw/arc/lmod/spider_cache \ --with-updateSystemFn=/sw/arc/lmod/spider_cache/last_spider.txt $ make install $ ln -s /sw/arc/centos7/lmod/lmod/init/profile /etc/profile.d/z00_lmod.sh $ ln -s /sw/arc/centos7/lmod/lmod/init/cshrc /etc/profile.d/z00_lmod.csh After doing so and logging in MODULEPATH is set to $ echo $MODULEPATH /sw/arc/centos7/modulefiles/Linux:/sw/arc/centos7/modulefiles/Core:/sw/arc/centos7/lmod/lmod/modulefiles/Core I presume that those are just provided as 'examples' and we should modify the init scripts and such so that our site is laid out as we wish? I am a little confused still by the spider configuration. I used the two configure options, and it appears that those were registered in that they appear at the end of /sw/arc/centos7/lmod/6.0.29/init/lmodrc.lua, scDescriptT = { { ["dir"] = "/sw/arc/lmod/spider_cache", ["timestamp"] = "/sw/arc/lmod/spider_cache/last_spider.txt", }, } but I'm not quite clear on creating the system spider cache. The script, update_lmod_system_cache_files, says in its help that -d <cacheDir> location of Lmod cache directory (default: determine via 'ml --config') and the ml --config seems to know about the configured cache and timestamp file, $ ml --config 2>&1 | grep -B3 spider Cache Directory Time Stamp File --------------- --------------- /sw/arc/lmod/spider_cache /sw/arc/lmod/spider_cache/last_spider.txt but $ libexec/update_lmod_system_cache_files ERROR: $BASE_MODULEPATH is undefined $ libexec/update_lmod_system_cache_files -d /sw/arc/lmod/spider_cache ERROR: $BASE_MODULEPATH is undefined and it seems not to recognize that variable even when it does exist, [bennet@studentpc3 6.0.29]$ export BASE_MODULEPATH=/sw/arc/centos7/modulefiles [bennet@studentpc3 6.0.29]$ libexec/update_lmod_system_cache_files ERROR: $BASE_MODULEPATH is undefined [bennet@studentpc3 6.0.29]$ echo $BASE_MODULEPATH /sw/arc/centos7/modulefiles [bennet@studentpc3 6.0.29]$ ls -ld $BASE_MODULEPATH drwxr-sr-x. 3 bennet arcswadm 4096 Feb 7 09:41 /sw/arc/centos7/modulefiles I'm sure there's something simple that I'm just overlooking, but I'm not able to see it. Pointers? Thanks, -- bennet |