1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
|
PPM, Proxies and Firewalls
If you use a proxy server or firewall, you might have trouble running PPM. A common error message seen in such a situation is:
"Can't call method "name" without a package or object reference at C:/Perl/site/lib/PPM/UI.pm line 1077."
Here is the solution.
1.
Set Environment Vars
Up to three environment variables need to be set.
Under Windows XP
1. Open the Control Panel and click the System icon.
The System Properties dialog is displayed.
2. On the Advanced tab, click on Environment Variables.
The Environment Variables dialog is displayed.
3. Click New in the System variables panel.
The New Sytem Variable dialog is displayed.
4. Add the setting HTTP_proxy, with your proxy name as the value. You must include "http://" and the proxy port, if applicable; for example, "http://proxy:8080/".
5. If you require a user name and/or password to access your proxy, click New again to add each of the settings HTTP_proxy_user and HTTP_proxy_pass, with your user name and password as the respective values.
Under Windows 200x
1. Right click on My Computer.
2. Click on Properties and select the Advanced tab.
3. Click "Environment Variables".
The "System Variables" dialog appears.
4. Click New, and add the setting HTTP_proxy, with your proxy name as the value (you must include "http://"), followed by a colon and the proxy port, if applicable; e.g., "http://proxy:8080/"
5. If you require a user name and/or password to access your proxy, click New again to add each of the settings HTTP_proxy_user and HTTP_proxy_pass, with your user name and password as the respective values.
Under Windows NT
1. Right click on My Computer.
2. Click on Properties, select the Environment tab.
3. Add the setting HTTP_proxy, with your proxy name as the value (you must include "http://"), followed by a colon and the proxy port, if applicable; for example, "http://proxy:8080/"
4. If you require a user name and/or password to access your proxy, add the settings HTTP_proxy_user and HTTP_proxy_pass, with your user name and password as the respective values.
Under Windows 98/ME
1. Select Start > Run to open the Run dialog, enter msconfig in the Open field and then click OK.
The System Configuration Utility dialog is displayed.
2. Click on the Autoexec.bat tab, and add the following entries:
* SET HTTP_proxy=<your proxy server (you must include "http://", followed by a colon and the proxy port, if applicable; e.g., SET HTTP_proxy=http://proxy:8080/
* SET HTTP_proxy_user=<your user name> (if required)
* SET HTTP_proxy_pass=<your password> (if required)
3. Click OK to save these settings.
The System Settings Change dialog is displayed.
4. Click Yes to restart your computer so that the changes take effect.
Under Windows 95
In your AUTOEXEC.BAT file, place the following lines then reboot so the changes can take effect:
1. SET HTTP_proxy=<your proxy server (you must include "http://", followed by a colon and the proxy port, if applicable; e.g., SET HTTP_proxy=http://proxy:8080/
2. SET HTTP_proxy_user=<your user name> (if required)
3. SET HTTP_proxy_pass=<your password> (if required)
2.
Try using PPM
With your internet connection active, try using PPM again. Try to install a small package, like File-Slurp. You'll know that it still fails if you see an error stating that it can't find a ppd file for the specified package.
3.
Further Information and Help
If there were problems with any of the above hints, please see Troubleshooting for information regarding further help.
NOTE: If none of the changes in this document work for you, you may download individual packages from here [ActivePerl 801 and later] or here [ActivePerl 613 and later] or here [ActivePerl 522 and earlier] and install them according to the directions in the README file contained within the ZIP file. If you want, you can also keep a local repository, with several .ppd files in a permanent repository directory, and their .tar.gz files in an x86 directory beneath that. |
Partager