Workaround for MailScanner RPM installation when using 'Perl
from source'
Julian Field
MailScanner at ecs.soton.ac.uk
Thu Oct 6 15:01:34 IST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Yes, sorry, you are quite right. The ClamAV+SA package has a --perl
option, but the main MailScanner one doesn't.
On 5 Oct 2005, at 18:52, Philip Hachey wrote:
> That is not a recognized option for install.sh. The only available
> options
> are "nodeps", "ingore-perl", and "fast". That might be a nice
> option to
> have -- although it's likely easier just to remove the PREFIX
> variable in
> the RPM spec files and let the perl binary decide upon paths.
>
> On Wed, 5 Oct 2005 08:59:25 +0100, Julian Field
> <MailScanner at ECS.SOTON.AC.UK> wrote:
>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>>
>> What's wrong with
>> ./install.sh --perl=/usr/local/bin/perl
>> ?
>>
>> On 4 Oct 2005, at 21:26, Philip Hachey wrote:
>>
>>
>>> I have been using MailScanner for some time now. I have it
>>> installed on a
>>> WhiteBox 3 (clone of RHEL 3) server. Prior to the recent
>>> MailScanner
>>> upgrade (via RPMs), I had installed the most recent version of Perl
>>> (5.8.7) from the source available at CPAN. In addition to the
>>> operating
>>> system RPM version of Perl (5.8.0) located under /usr/lib/perl5,
>>> I now
>>> have this new version of Perl located under /usr/local/lib/perl5.
>>> I also
>>> swapped /usr/bin/perl with a symbolic link to /usr/local/bin/perl.
>>>
>>> When MailScanner installs, it recognizes both Perls, but during the
>>> installation of MailScanner's included Perl RPM modules, the
>>> paths it
>>> decides to use for the installation are /usr/lib/perl5/5.8.7 and /
>>> usr/lib/perl5/site_perl/5.8.7 .
>>>
>>> POSSIBLE FIX: The correct paths would have been used if, in the
>>> spec file
>>> of each of the Perl RPMs, the call to 'perl Makefile.PL' did NOT
>>> include
>>> the PREFIX argument.
>>>
>>> TEMPORARY WORKAROUND: Before installing MailScanner, do the
>>> following:
>>> # ln --symbolic /usr/local/lib/perl5/5.8.7 /usr/lib/perl5/5.8.7
>>> # ln --symbolic /usr/local/lib/perl5/site_perl/5.8.7
>>> /usr/lib/perl5/site_perl/5.8.7
>>>
>>>
>>> There is an additional problem I've noticed that, after having used
>>> CPAN
>>> to grab the latest version of various Perl modules, MailScanner
>>> will still
>>> install a lower version: those modules marked "IsABundle" in
>>> install.sh.
>>> Is this intentional? Should I not be upgrading these modules via
>>> CPAN?
>>>
>
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the Wiki (http://wiki.mailscanner.info/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
>
> Support MailScanner development - buy the book off the website!
>
- --
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.0.2 (Build 2425)
iQEVAwUBQ0UuQPw32o+k+q+hAQH/nwgAqYfoH+Y54VgnuYob6atsiyIazNhFKwGn
sA1yV3ETaMzr8jZqsBGZMvepNCbQJvRr96TEQ29ray39vmWjJFkmdo+HmGwd94ev
tLGRCNpfQ+1pwDRcZVH0PqsW/WYkhxhB/7AXVbMaGwXXyuX5oHbrfIjrr/U3sCxY
TWy92LF5URTuApgeAqCg93C0z/XSooiWQgq7o6Y5sPPinOeJeMxi55i1lGJyNvVN
kLTxPosi6T2smMYYkAYWAE4q7x126kCtRrUfGtUqraT/5sXEe84q7vWzxaOO2P0L
qHEs2Y3jvu2CPnlAstWHcLKSNMav3v9HBN9lDym0QA4Aq6wDcuLNug==
=jcQi
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list