Error loading some perl modules on spamassassin
Julian Field
MailScanner at ecs.soton.ac.uk
Mon Jun 26 16:18:16 IST 2006
To change @INC completely requires you to recompile Perl, it is hard-
coded. However, to add things to it for 1 or 2 scripts is easy, you
can add the -I options in the #!/usr/bin/perl line at the top of the
script, so it looks like
#!/usr/bin/perl -I/usr/local/perl/lib
for example.
I'm sure someone will correct me if I'm wrong!
On 26 Jun 2006, at 15:31, Rafael Vallejo wrote:
> Thaks it seems to be that the solution is closer to me, where do I
> edit the @INC path in order to add a new path?
>
>
> Rafael
>
>
>
> Julian Field escribi¢:
>
>> There isn't any "registration" system for modules, you just have
>> to make sure the relevant *.pm files appear in the @INC path
>> somewhere. Do a "perl -V" and it will show you the @INC path so
>> you know where to look.
>> "perl -v" prints the version number and a little info, "perl -V"
>> prints a whole lot more info.
>>
>> On Sat24 Jun 06, at 00:29, Rafael Vallejo wrote:
>>
>>> Julian and Logan,
>>>
>>>
>>> Thanks for the respnse unfortunatelly I can not just simply use
>>> CPAN or any script like yours Julian because I'm embeeding this
>>> on a system that does not have a shell prompt son on the target
>>> system I can not install things this way,m on a normal Linux
>>> system I successfully installed spamassassin, nut I have to copy
>>> to this device spamassassin file by file manually, so something
>>> is missing there and need to identify it.
>>>
>>> Julian you made an installation program, so I guess you know how
>>> to make it low level what does it need to register copy or what
>>> ever those moules so it knows they exists.
>>>
>>> Hope to hear from you soon
>>>
>>> Rafael
>>>
>>> Julian Field escribi¢:
>>>
>>>> If you install SpamAssassin from my easy-to-install ClamAV+SA
>>>> package available from www.mailscanner.info (the downloads
>>>> page) then it will take care of installing all the required
>>>> modules for you, as well as lots of setup tweaks you need to
>>>> do to make it all work properly.
>>>>
>>>> On Fri23 Jun 06, at 17:32, Rafael Vallejo wrote:
>>>>
>>>>> Hello list.
>>>>>
>>>>> I have a problem with spamassassin and is that some perl
>>>>> modules I got messages like this
>>>>>
>>>>> [20075] dbg: diag: module not installed: LWP::UserAgent
>>>>> ('require' failed)
>>>>>
>>>>> UserAgent is a module among others I want to use, I installed
>>>>> by hand spamassasin and have no other choice, LWP and all
>>>>> the modules it need is there in where it is supposed to be /
>>>>> usr/lib/ perl5/ vendor_perl/5.8.1/LWP, but spamassasin does not
>>>>> locate it my guess is that perl or spamassassin does not get
>>>>> the path for LWP for some reason.
>>>>>
>>>>> Is there any file in where Perl and/or spamassasin look to
>>>>> know where modules are loaded?
>>>>>
>>>>> Regards
>>>>>
>>>>> --
>>>>> Rafael
>>>>> --
>>>>> MailScanner mailing list
>>>>> mailscanner at lists.mailscanner.info
>>>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>>>
>>>>> Before posting, read http://wiki.mailscanner.info/posting
>>>>>
>>>>> Support MailScanner development - buy the book off the website!
>>>>
>>>>
>>>>
>>> --
>>> MailScanner mailing list
>>> mailscanner at lists.mailscanner.info
>>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>>
>>> Before posting, read http://wiki.mailscanner.info/posting
>>>
>>> Support MailScanner development - buy the book off the website!
>>
>>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
--
Julian Field
MailScanner at ecs.soton.ac.uk
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
More information about the MailScanner
mailing list