If client/mtt is invoked from lib directory, <mtt-top-dir>/lib/lib gets into @INC and so the first use MTT::Foo dies. The workaround is to simply cd into another directory like $HOME or $TMPDIR.
{{{
$ pwd
/workspace/emallove/mtt-sandbox/lib
$ /workspace/emallove/mtt-sandbox/client/mtt --file ~/mtt-utils/ini/all.ini
...
*\ ERROR: Module aborted during require: MTT::MPI::Get::AlreadyInstalled: Can't locate MTT/MPI/Get/AlreadyInstalled.pm in @INC (@INC contains: /workspace/emallove/mtt-sandbox/lib/lib /ws/ompi-tools/lib/perl5/5.8.8 /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at (eval 59) line 3, line 8.
$ cd /tmp
$ /workspace/emallove/mtt-sandbox/client/mtt --file ~/mtt-utils/ini/all.ini
...
}}}
If client/mtt is invoked from
lib
directory,<mtt-top-dir>/lib/lib
gets into@INC
and so the firstuse MTT::Foo
dies. The workaround is to simplycd
into another directory like$HOME
or$TMPDIR
.{{{ $ pwd /workspace/emallove/mtt-sandbox/lib $ /workspace/emallove/mtt-sandbox/client/mtt --file ~/mtt-utils/ini/all.ini ... *\ ERROR: Module aborted during require: MTT::MPI::Get::AlreadyInstalled: Can't locate MTT/MPI/Get/AlreadyInstalled.pm in @INC (@INC contains: /workspace/emallove/mtt-sandbox/lib/lib /ws/ompi-tools/lib/perl5/5.8.8 /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl .) at (eval 59) line 3, line 8.
$ cd /tmp
$ /workspace/emallove/mtt-sandbox/client/mtt --file ~/mtt-utils/ini/all.ini
...
}}}