in reply to uninstalling modules
ExtUtils::Installed uses the $Config{sitearchlibexp} and $Config{archlibexp} values as defined in the Config module - you can assign the appropriate values to these before you call ExtUtils::Installed->new() and everything should work fine.
/J\
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: uninstalling modules
by CassJ (Sexton) on Jul 20, 2004 at 15:03 UTC | |
I don't have write access to Config.pm file and if I use it and try to change the values in the hash it just tells me that it's read-only (does this mean it's tied to the file?). How can I fake these values for the duration of my call to ExtUtils::Installed->new()? I thought maybe I could copy the file to the lib I was using, correcting the lines on the way, but then how do I make sure that my fake Config.pm is used in preference to the real one in /usr/local? thanks again! Cxx | [reply] |
by gellyfish (Monsignor) on Jul 20, 2004 at 17:09 UTC | |
No it's not you at all. I have made a patch for ExtUtils::Installed that will allow you to supply a list of locations which are outside the perl install prefix - I need to add some tests and change the documentation before I send it to p5p but this: Will allow you to do something like: where I have installed the module 'Foo' with a PREFIX of '/home/jonathan/foo' /J\ | [reply] [d/l] [select] |
by CassJ (Sexton) on Jul 21, 2004 at 12:44 UTC | |
Can I change because $sub (in ExtUtils::Installed->new)loops through the @dir array and sets $self->{module}{packlist} so if we push them on then if a module is installed in the dir you specified and in say /usr/local, we will always get back the packlist for /usr/local - which isn't very helpful if you want to uninstall something in a local directory. If you want the /usr/local version, just don't give a local dir in the call to new. If that change is OK, then I wrote a quick thing for easy command line uninstall. Spot any glaring errors?
| [reply] [d/l] [select] |
by gellyfish (Monsignor) on Jul 21, 2004 at 13:08 UTC | |
by CassJ (Sexton) on Jul 21, 2004 at 13:46 UTC | |
| |
|
Re^2: uninstalling modules
by Anonymous Monk on Jul 20, 2004 at 12:53 UTC | |
| [reply] |
by gellyfish (Monsignor) on Jul 20, 2004 at 13:45 UTC | |
Er, because I looked at the code .... /J\ | [reply] |