Re: [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: Trey D. <tre...@ta...> - 2016-02-07 16:39:00
|
I believe update_lmod_system_cache_files reads BASE_MODULEPATH from command line arguments. This is the command I use to update my system cache: /apps/lmod/lmod/libexec/update_lmod_system_cache_files -t /apps/moduleData/system.txt -d /apps/moduleData/cacheDir /apps/modulefiles/Core - Trey ============================= Trey Dockendorf Systems Analyst I Texas A&M University Academy for Advanced Telecommunications and Learning Technologies Phone: (979)458-2396 Email: tre...@ta... Jabber: tre...@ta... On Sun, Feb 7, 2016 at 9:05 AM, Bennet Fauber <be...@um...> wrote: > 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 > > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 > _______________________________________________ > Lmod-users mailing list > Lmo...@li... > https://lists.sourceforge.net/lists/listinfo/lmod-users > |