## Forum archive 2000-2006

### Adam Meikle - Bug in importClasslistDatabase.pl

by Arnold Pizer -
Number of replies: 0
 Bug in importClasslistDatabase.pl topic started 2/16/2001; 11:34:27 AMlast post 2/16/2001; 2:26:00 PM
Adam Meikle - Bug in importClasslistDatabase.pl
2/16/2001; 11:34:27 AM (reads: 1287, responses: 2)
We got the following error when running this script to set up the demo course:

#### Software error

Can't locate Net/SMTP.pm in @INC

(more error text followed)

Any ideas on what we might need to put in the @INC array?

Adam Meikle Ken Appel University of New Hampshire Math Dept.

<| Post or View Comments |>

 Michael Gage - Re: Bug in importClasslistDatabase.pl  2/16/2001; 11:48:38 AM (reads: 1548, responses: 0) if you type perl -e 'print "@INC"' on the unix line you will find the library directories which perl searches in order to find the modules requested in perl commands such as use Net::SMTP;  In one of those library directories you need to have the directory/module Net/SMTP.pm  If you don't have the perl module SMTP.pm stored on your site it can be obtained from CPAN and installed in your local perl library. (If you don't have permission to do this, you can grab the Net/SMTP.pm module off the CPAN site and store it in the top level of the WeBWorK directory -- that is usually within the search path of @INC. So you will have the structure: system/Net/SMTP.pm  You will also have Global.pm, PGtranslator.pm stored in the system directory. Hope this helps. -- Mike <| Post or View Comments |>

 Arnold K. Pizer - Re: Bug in importClasslistDatabase.pl  2/16/2001; 2:26:00 PM (reads: 1493, responses: 0) The linuxredhat.html document has the most explicit directions on installing and testing the required perl modules. In particular if you enter perl -MNet::SMTP -e 'print "installed\n"' You will get the message: installed if Net::SMTP is installed an an error message if it isn't. Note if you have more than one version of perl running, enter e.g. /usr/local/bin/perl -MNet::SMTP -e 'print "installed\n"' if that's the perl webwork is using (check the first line of almost any script, e.g. processProblem8.pl). <| Post or View Comments |>