简体   繁体   中英

Installing Alien::wxWidgets into a Windows-7/Strawberry-Perl box failed

I was trying to install Alien::wxWidgets on the way to installing Wx.

It failed at the following stage:

Fetch failed! HTTP response: 403 Forbidden [403 Forbidden] at inc/My/Build/Base.pm line 305.
Fetch failed! HTTP response: 403 [Forbidden] at inc/My/Build/Base.pm line 305.
Got a '403' from 'prdownloads.sourceforge.net' expected '200' at inc/My/Build/Base.pm line 305.
Unable to fetch archive at inc/My/Build/Base.pm line 307.
Building Alien-wxWidgets
Fetching wxWidgets...
fetching from: http://prdownloads.sourceforge.net/wxwindows/wxWidgets-3.0.0.tar.bz2

A cpan-testers report was filed. You can get it here

looking at the cpanm's work directory, I saw that such named file was created, but of zero length. I was able though to manually download the said file from this very same URL.

So, how can I manually proceed from here?

I don't believe cpanm will correctly install Alien-wxWidgets . To install it manually through cpan , do this

  • Set the WXDIR environment variable to the location of your wxWidgets installation

  • Enter cpan to get a cpan> prompt

  • Enter look Alien::wxWidgets to download and unpack the module, and start a subsidiary command line with the directory containing the unpacked module as your working directory

  • Enter the following in order, as described in the Alien::wxWidgets README

     perl Build.PL perl Build perl Build test perl Build install 

If you think you may need some esoteric options, then that same README gives all the details you need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM