Hi,
Thanks for the reply. A couple of things I didn't explain. I have installed Perl on my C drive. The other version is on a server somewhere and there are devious scripts forcing my installation to point at that. I have no control over that side of it. If I could configure the @INC it may help, but like I said I am a complete novice. One previous message I had was:
C:\Perl\net-telnet\Net-Telnet-3.03>perl Makefile.PL
Have J:\Util32\lib\Config.pm expected C:\Perl\lib\Config.pm
Your perl and your Config.pm seem to have different ideas about the architecture
I basically want to get rid off anything pointing towards J:\ That is where the 5.6.1 is installed. I have freshly installed 5.8.4
The other thing is that I cannot use PPM, not that it is going to help me here, as the requests out are blocked by the firewall.
Any help would be greatly received.
Thanks.
| [reply] |
Normally it is perfectly OK to have two different perl versions installed (as long as the installations don't overwrite each others files). The problem you're describing can be caused by having the PERLLIB or PERL5LIB environment variables pointing to the wrong library path (to the lib path of the old perl install, in this case).
If either of those vars is set, try clearing them and then re-run perl Makefile.PL etc. Also make sure that the perl.exe that gets run is the one you want to install the module with.
If this doesn't help, you might have the wrong library path built into the perl interpreter - you need to reconfigure and compile perl if that is the case.
| [reply] [d/l] |
When you run perl the old Perl interpreter is executing. If you specify the full path to the new interpreter you've just installed then it should work. Try it, with the -V option to display the version.
So now the problem isn't a Perl problem at all; it's that your computer is picking the wrong version of an app to run. That's probably down to your PATH setting. Tweak that so that the directory containing your new version of Perl comes before the one containing the older version (or remove the older one entirely.
The other thing is that I cannot use PPM, not that it is going to help me here, as the requests out are blocked by the firewall.
In similar situations I have been able to download PPM files from a repository using a web-browser, then unzip them and use PPM to install them locally. That way your firewall will never know, but you don't have to resort to make.
Smylers
| [reply] [d/l] [select] |
Howdy!
Nope nope nope...
I just ran into that myself the other day. I had upgraded from 5.8.0 to 5.8.4
and installed in the same place. "which perl" didn't change.
The module in question had been installed under the 5.8.0 subdirectory, and I
ended up manually nuking the files. Once I had done that, make install put the
new version in the right place and didn't complain about the version of perl.
I had been getting exactly the same message (module version numbers) that the
original poster had gotten.
| [reply] |
Smyler's advise is excellent.
You may also profit by going to your file manager, select tools |folder options and click on the filetypes tab. Then hunt up the entry(ies) for perl and see what you find.
You say you've "downloaded and installed" but don't specify whether you're referring to a binary (Active State, for ex) or whether you compiled source. If the former, consider whether you allowed the install to associate the binary with files of type ".pl" in which case there surely should be an entry in the filetypes tab, as least for action "open" (and if so, you may wish to add an action "edit" pointing to your favorite text editor).
Now some scattershooting:
- I'm not enuf of a sysadmin to rule out your "devious scripts" but somewhat suspicious thereof. Do you have install (admin) rights on your box/C: drive? (I suspect yes from what you wrote, but ??).
-
And have you cd'ed (in a DOS window) to C:\Perl\bin and checked execution from there?
-
And -- Smyler's comment re PPM is right on though you may have to add the local repository to your list of available sources.
</ul
HTH...
| [reply] |
Configure the @INC? Just use the correct perl executable!
| MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!" | | I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README). | | ** The third rule of perl club is a statement of fact: pod is sexy. |
| [reply] |