Re: Perl/Webmin/CPAN/ question (LONG)
On Sun, 27 Jun 2004, John Foster wrote:
> Hey group. This is the situation. I have a Debian SID installation. I have
> Perl installed from Debian. I want to run Interchange on this system.
Any reason why you can't use the Debian interchange package?
apt-cache show interchange
> Interchange 'requires' non-threaded Perl. I have built & installed a
> non-threaded Perl in /usr/local/share/perl This keeps it from being an issue
> as it is NOT the default Perl that the Debian system recoginzes. I also need
> to install several modules that are required by interchange to operate
> properly. I have read the instruction on CPAN about how to install & use a
> non-standard module,,but I believe that will screw up the Debian default as
> it resets @INC for the system.
Only on per script basis. I.e. you have to do:
use lib '/usr/local/share/perl';
at the beginning of each script in order to change @INC.
> I also would like to set up webmin to manage
> the second Perl installation. I currently see no way to do that. When I
> tried to set up webmin's perl management, I saw that it too looked like it
> might mess up th Debian Perl installation. i tried the Bundle for Interchange
> Kitchen sink & it installed it to the secondary perl installation. However I
> tried others an one of them was installed into the Debian stub system. i do
> NOT want that. I need to keep the two installations completely separate. Any
> ideas, critiques, etc are welcome.
>
webmin just uses the cpan script that comes with perl. By default that
will be /usr/bin/cpan but you can change the configuration to use
/usr/local/bin/cpan if you have it. The problem with installing modules
seems to be PATH related. Are you sure you were invoking the right copy
of CPAN?
--
Jaldhar H. Vyas <jaldhar@debian.org>
La Salle Debain - http://www.braincells.com/debian/
Reply to: