This has happened before to me when I moved AMOS to another directory. When you install it, it marks down exactly where its scripts and modules should be.
Solution: either reinstall it or put it back where it belongs!
Hi,
I'm trying to run toAmos, but I keep getting this error. "Can't locate TIGR/Foundation.pm in @INC (@INC contains: /home etc....)" Is anyone else having this issue or has had this problem? The module should have been downloaded with the tar, but when I do a locate command it is not there. I found it at this site, but don't know where or how to put it into my computer appropriately. http://www.koders.com/perl/fidF14956F61B98FD39DC5CBDA1CE9344E42297CF87.aspx?s=eval#L966
Any help would be appreciated! Thanks!
The module is included in the tarball:
tar zxvf amos-3.1.0.tar.gz
cd amos-3.1.0
find ./ -name "Foundation.*"
# ./src/PerlModules/Foundation.pm
You need to read and follow carefully instructions in the INSTALL file, also provided with the tarball. Basic installation:
./configure
make
sudo make install
This will create create TIGR/Foundation.pm somewhere under /usr/local/lib/perl on your system. You then need to ensure that this path is included in your Perl @INC variable.
This has happened before to me when I moved AMOS to another directory. When you install it, it marks down exactly where its scripts and modules should be.
Solution: either reinstall it or put it back where it belongs!
I exported a $path for PERL5LIB and got it to work! Thanks for all the help
Thanks, for the advice.
Neilfws was right, the Foundation.pm file was there. I did a re-install and did not move it and I still got the same error after double checking with Neilfws' advice. Here is my error Can't locate TIGR/Foundation.pm in @INC (@INC contains: /home/jdilts/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int /home/jdilts/perl5/lib/perl5/i686-linux-gnu-thread-multi-64int /home/jdilts/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/local/bin/amos-3.1.0-rc1/src/Converters/toAmos.pl line 6.
BEGIN failed--compilation aborted at /usr/local/bin/amos-3.1.0-rc1/src/Converters/toAmos.pl line 6.
I'm going to see if I can get the location in @INC! Suggestions are welcomed!
It was found in two locations. ./lib/TIGR/Foundation.pm ./src/PerlModules/Foundation.pm
Log in to answer this question.