From: wayne <wa...@ny...> - 2003-04-12 05:36:57
|
> From: madani <mad...@ya...> > Subject: [noCensorship] LP and ActivePerl 8xx > To: noc...@fr... > > Hi Wayne, All > > I installed the new version of PERL ActivePerl 8xx and tried to run localProxy. The following happened: > > LP tried to connect to the Site to download the missing modules: Net::DNS and Win32::API but it failed. Bummer. I am using Cygwin perl 5.8 (but of course, needed to install those from CPAN by hand). > I opened the modInstall.bat to discover that LP was trying to connect through another ISP account e.g. ogertel.com which was in the Internet options of I.E and not the same account I was running (e.g. SBM). Since I had 3 accounts listed in the Internet options, the same thing was repeated i.e looking for Zajil account (see below) Yep. It's trying to be clever and using the proxy it thinks is appropriate for your location. :-( > [Missing Perl modules: > > Net::DNS Win32::API > > Proxies found in environment: proxy.sbm.net.sa:80 > > I'm assuming this IP address is 212.46.x.x [not ogertel IP) You chopped off too much there. I can't see what it was. SMB contains subnets 212.46.32.0/19 (212.46.32.0 through to 212.46.63.255). I guess that was correct? > Using proxy: http://proxy.ogertel.com:8080 This came from the first one found by WLib::getProxies. WLib::getProxies looks at: 1) your environment (http_proxy #case insensitive match. Looks like it found proxy.sbm.net.sa:80 there) 2) your registry 3) firewalls.xml (which has for sbm: proxy.sbm.net.sa:80, 212.46.32.42:80) Turn up the debug level to see exactly where it got the ogertel value from. perl localProxy.pl -x 3 Looks like it was somewhere in your registry though. Maybe dialup settings? Or settings specific to a NIC that you haven't looked at for some time? Which one actually gets chosen from all the above is up to Perl (and, at the moment, is allowed to change with Perl versions etc.). Maybe I should give priority to the environment? > A batch file, with the necessary script to install > > these modules, has been written to modInstall.bat > > Installing missing modules ... > > Press enter to exit localProxy GUI, > > wait for the modules to be installed, then restart localProxy] > > > > First of all, LP should detect which account is running and act accordingly. Is this a bug? I think I'd call it that too. I think it happened because you have junk hanging around in the registry, but I couldn't argue that the user should know that, and get rid of it. I'm sure it would take me an hour to find it and I wrote the code! I recall this occurring to me way back when, but there was nothing I knew at the time to ensure I got a proxy for an active network interface. I am sure it would take some research to fix. If I'm right about where it came from, then I'd say it only affects people who used multiple ISPs, so it's not worth hours of work, and then I would suggest I give the environment priority so you at least have a way to fix it by specifying the right proxy in the environment (as you already have). Sound ok? > So I tried to install Win32-API and Net-DNS manually. > > http://ppm.activestate.com/PPMPackages/zips/8xx-builds-only/Windows/Net-DNS.zip > I succeeded in installing Wen32-API module but the length of Net-DNS zip was only 415 bytes. It consisted of ppd and Readme files. Yes, it only contains the PPD spec, not the actual code. That's an activestate bug. They have been having difficulties with perl 5.8 ppd repositories. That's why I haven't moved to Windows Perl 5.8 yet. You should let them know about this. > The above forced me to go back and installed the 6xx version. > Is there another source where I can download the Net-DNS module? You can always try to use CPAN. perl -MCPAN -e shell install Net::DNS q If you haven't used CPAN before, you will probably need to answer a bunch of questions. I think all default answers will be ok, except for the http proxy question. Some (not sure about Net::DNS) of the modules need nmake (free from Microsoft site). Another way you can sometimes resolve these problems is to find the source code somewhere else on the Activestate site, but for the new perl 5.8, I wouldn't hold my breath. > Best regards > > madani -- wa...@ny... http://proxytools.sourceforge.net/ |