0

我试图在Alien::wxWidgets安装 Wx 的途中安装。

它在以下阶段失败:

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

提交了一份 cpan-testers 报告。你可以在这里得到

查看 cpanm 的work目录,我看到创建了这样的命名文件,但长度为零。我能够从这个相同的 URL 手动下载所述文件。

那么,我怎样才能从这里手动进行呢?

4

1 回答 1

1

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.

于 2015-02-18T15:45:28.517 回答