From: Eloy P. <pe...@ch...> - 2012-07-23 18:36:24
|
Hi Michelle, On 07/23/2012 10:56 AM, Michelle Dupuis wrote: > I'm just getting started with misterhouse (been lurking a long time), and have done a basic mh installation on CentOS 5. I've now got some real simple questions I hope someone can help with: > -Thanks- Welcome. > 1. Why can I not start mh from any directory? If I give the full path to the mhl executable then I get the error below. However, if I change directory into /usr/local/mh/bin and run ./mhl then it is ok. What is wrong with this? > [root]/usr/local/mh/bin/mhl > Deleting startup file > Running mh > Can't open perl script "mh": No such file or directory > mh rc=2 > mh failed on startup ... will not restart The problem here is that /usr/local/mh/bin/mhl is invoking the "mh" Perl script like this: echo Running mh perl mh "$@" So, the current working directory needs to be the directory that contains the "mh" script, i.e. /usr/local/mh/bin. If you want things to work without changing to /usr/local/mh/bin first then edit /usr/local/mh/bin/mhl and add "cd /usr/local/mh/bin" right before the "while" loop. > 2. When mh does start I see the output below. Is this normal? my mh.private.ini files specifies /data/misterhouse/code as the code directory, so why this output? > Code Directories: > - ./../code/test > - ./../code/common > (and later on in the output) > 07/23/12 10:46:19 AM Initialized read_table_A.pl > Reading code_dirs: ./../code/test ./../code/common > 07/23/12 10:46:19 AM Reading 17 code files > 07/23/12 10:46:19 AM Evaluating user code It seems like your mh.private.ini file is not being read. Set the environment variable "mh_parms" before running mhl. You can put this before the "while" loop in /usr/local/mh/bin/mhl: mh_parms=/path/to/your/mh.private.ini > 3. My mh.private.ini file includes a line "tk = 0" which I assumed means don't use Tk, yet on startup mh shows the output below. Why? > Loading Tk modules Version > Error, perl Tk module is not installed. > Tk windows will be disabled with the -tk 0 option. Error:Can't locate Tk.pm in @INC (@INC contains: ./../code/test ./../code/common /usr/local/mh/bin/../lib /usr/local/mh/bin/../lib/site . /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at (eval 416) line 2. > BEGIN failed--compilation aborted at (eval 416) line 2. Same symptom as in (2) -- you mh.private.ini is probably not being read. > 4. Is there a redhat type init (startup) script already written to launch mh intelligently? I believe there are some scripts in the wiki. If not, search the mailing list archive since someone probably posted something in the past. Cheers, Eloy Paris.- |