Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 33438
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: dick.hogaboom [...] gestalt-llc.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: After 'i Term::ReadKey' an immediate 'u Term::ReadKey' fails
Date: Tue, 19 Feb 2008 14:46:14 -0500
To: <bug-cpanplus [...] rt.cpan.org>
From: "Dick Hogaboom" <dick.hogaboom [...] gestalt-llc.com>
Sirs: I've installed a local copy of 5.10.0 and set my path to perl as /home/hogaboom/awsim_rth/perl5/bin/perl. I want to use cpanp to install and uninstall CPAN modules to my local 5.10.0 directory. I used 's reconfigure' to set the lib directory. The CPANPLUS::Config::User file is attached. But, when I do a successfull install and then try an immediate uninstall it says the module is not installed(?). I would think that if an install works then an uninstall should work without having to change anything. The install/uninstall session is attached. Richard A. Hogaboom Gestalt, LLC 450 Bedford Rd. 02421 Lexington, MA W781-357-1422 F781-357-1401 dick.hogaboom@gestalt-llc.com

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #33438] After 'i Term::ReadKey' an immediate 'u Term::ReadKey' fails
Date: Wed, 20 Feb 2008 10:41:19 +0100
To: bug-CPANPLUS [...] rt.cpan.org
From: "Jos I. Boumans" <jos [...] dwim.org>
On 19 Feb 2008, at 20:43, Dick Hogaboom via RT wrote: Show quoted text
> Sirs: > > I've installed a local copy of 5.10.0 and set my path to perl as > /home/hogaboom/awsim_rth/perl5/bin/perl. I want to use cpanp to > install and uninstall CPAN modules to my local 5.10.0 directory. I > used > 's reconfigure' to set the lib directory. The CPANPLUS::Config::User > file is attached. But, when I do a successfull install and then try > an immediate uninstall it says the module is not installed(?). I > would think that if an install works then an uninstall should work > without having to change anything. The install/uninstall session > is attached.
We use ExtUtils::Installed to find out what files are installed as part of a package. Those are the files we'll unlink when you issue the 'uninstall' directive. Apparently, EU::I is not finding the packages installed in your homedir. You can try yourself to see if this works: ExtUtils::Installed->new->files( 'Term::ReadKey', 'all' ); If that finds some files, then CPANPLUS shoudl be able to uninstall the package. If not, your EU::I needs to be educated somehow.... -- Jos Boumans How do I prove I'm not crazy to people who are?
Subject: RE: [rt.cpan.org #33438] After 'i Term::ReadKey' an immediate 'u Term::ReadKey' fails
Date: Thu, 21 Feb 2008 07:40:23 -0500
To: <bug-CPANPLUS [...] rt.cpan.org>
From: "Dick Hogaboom" <dick.hogaboom [...] gestalt-llc.com>
Jos: Thanx, I got it to work, BUT: cpanp u only works when you install to one of the four directories that are in @INC. Doing a "perl -e'use X;'" gives: king:/home/hogaboom[1005] perl -e'use X;' Can't locate X.pm in @INC (@INC contains: /home/hogaboom/awsim_rth/perl5/lib/5.10.0/i686-linux /home/hogaboom/awsim_rth/perl5/lib/5.10.0 /home/hogaboom/awsim_rth/perl5/lib/site_perl/5.10.0/i686-linux /home/hogaboom/awsim_rth/perl5/lib/site_perl/5.10.0 .) at -e line 1. BEGIN failed--compilation aborted at -e line 1. king:/home/hogaboom[1006] which shows these dirs. An i followed by a u will always work and a 'use X;' will not need a 'use lib "";' directive. If the LIB path is set with 's reconfigure' or 's edit' to NOT one of the above then an i will work and a 'use lib "";' directive will be required to find it, but the u will not work. Evidently EU::I starts it's search for .packlist files from one of the above four paths. The 's reconfigure' suggests for local module installs a LIB of ~/perl/lib, but this is not one of the four and the u won't work. I suggest modifying the u search to start at whatever the user specifies for LIB(in the CPANPLUS::Config::User file) when the user does an 's reconfigure'. Also, for changes to CPANPLUS::Config::User done by 's reconfigure' they take effect immediately, but for changes to the same file done by 's edit' you have to exit cpanp and restart to take effect. In the present situation in most cases the limitation to one of the above four paths is OK. Most people will want to install to the perl distribution directory. But in some cases(mine) I want to install to a private dir and use a 'use lib "";' directive and the system installation of perl. This allows the sysadmin to install perl to it's usual location and me to install to a local user dir which I can bundle with my software. At present I can use cpanp to install to my local dir, but have to manually delete them. Anyway, Thanx! for the help! Richard A. Hogaboom Gestalt, LLC 450 Bedford Rd. 02421 Lexington, MA W781-357-1422 F781-357-1401 dick.hogaboom@gestalt-llc.com Show quoted text
-----Original Message----- From: Jos I. Boumans via RT [mailto:bug-CPANPLUS@rt.cpan.org] Sent: Wed 2/20/2008 4:41 AM To: Dick Hogaboom Subject: Re: [rt.cpan.org #33438] After 'i Term::ReadKey' an immediate 'u Term::ReadKey' fails <URL: http://rt.cpan.org/Ticket/Display.html?id=33438 > On 19 Feb 2008, at 20:43, Dick Hogaboom via RT wrote:
> Sirs: > > I've installed a local copy of 5.10.0 and set my path to perl as > /home/hogaboom/awsim_rth/perl5/bin/perl. I want to use cpanp to > install and uninstall CPAN modules to my local 5.10.0 directory. I > used > 's reconfigure' to set the lib directory. The CPANPLUS::Config::User > file is attached. But, when I do a successfull install and then try > an immediate uninstall it says the module is not installed(?). I > would think that if an install works then an uninstall should work > without having to change anything. The install/uninstall session > is attached.
We use ExtUtils::Installed to find out what files are installed as part of a package. Those are the files we'll unlink when you issue the 'uninstall' directive. Apparently, EU::I is not finding the packages installed in your homedir. You can try yourself to see if this works: ExtUtils::Installed->new->files( 'Term::ReadKey', 'all' ); If that finds some files, then CPANPLUS shoudl be able to uninstall the package. If not, your EU::I needs to be educated somehow.... -- Jos Boumans How do I prove I'm not crazy to people who are?
Download winmail.dat
application/ms-tnef 4.8k

Message body not shown because it is not plain text.

On Thu Feb 21 07:38:08 2008, dick.hogaboom@gestalt-llc.com wrote: Show quoted text
> an 's reconfigure'. Also, for changes to CPANPLUS::Config::User done > by 's reconfigure' they take effect immediately, but for changes > to the same file done by 's edit' you have to exit cpanp and restart > to take effect.
It only doesn't take effect for the 'lib' parameter, because it was implemented slightly different. This is now fixed. Show quoted text
> At present I can use cpanp to > install to my local dir, but have to manually delete them.
WIth EU::Install 1.42, and a bit of clever directory magic in CPANPLUS, we are now able to uninstall files that are part of your private installation, provided you've added them to the 'lib' directive in the CPANPLUS config. This will be part of 0.86. Thanks for reporting,