使用Panda但在代理后面为Perl 6安装模块

时间:2016-02-08 02:13:07

标签: git perl6

似乎迷失在此。

任何时候我对熊猫做任何事情,(更新/安装)我都会收到以下错误:

Could not download module metadata: Failed to connect: connection timed out.
Falling back to the curl command.
curl failed: The spawned process exited unsuccessfully (exit code: -16).
Falling back to the wget command.
wget failed as well: The spawned process exited unsuccessfully (exit code: -16). Sorry, have to give up.
  in block  at C:\rakudo\share\perl6\site\sources\61C4E003FB65304A1A6771D177815A47C2333D7E line 138
  in any  at H:\.perl6\2016.01.1\precomp\34C40ED80206941C844106C0BECEBD0BCE0E58E3.1454618830.87862\61\61C4E003FB6530
4A1A6771D177815A47C2333D7E line 1
  in block  at C:\rakudo\share\perl6\site\sources\61C4E003FB65304A1A6771D177815A47C2333D7E line 134
  in any  at H:\.perl6\2016.01.1\precomp\34C40ED80206941C844106C0BECEBD0BCE0E58E3.1454618830.87862\61\61C4E003FB6530
4A1A6771D177815A47C2333D7E line 1
  in block  at C:\rakudo\share\perl6\site\sources\61C4E003FB65304A1A6771D177815A47C2333D7E line 128
  in any  at H:\.perl6\2016.01.1\precomp\34C40ED80206941C844106C0BECEBD0BCE0E58E3.1454618830.87862\61\61C4E003FB6530
4A1A6771D177815A47C2333D7E line 1
  in method update at C:\rakudo\share\perl6\site\sources\61C4E003FB65304A1A6771D177815A47C2333D7E line 94
  in sub MAIN at C:\rakudo\bin\panda line 43
  in block <unit> at C:\rakudo\bin\panda line 95

我在此博客上发现http://perl6maven.com/how-to-install-perl6-modules,评论中有人遇到同样的问题:

Gave it a shot, but I am behind a web proxy. So panda install Task::Star 
failed. OK, research and find that Http::UserAgent is needed. Go look for 
it, and the install instructions are "use panda install Http::UserAgent". 
Catch-22 time. Not encouraging at this point.

So I clone the Http::UserAgent from github and point panda to the local 
directory: git install ./http-useragent and still get connection timed out 
in retrieveing metadata. Any ideas?

所以...任何想法?

1 个答案:

答案 0 :(得分:1)

好吧大家和任何人,我想我已经弄明白了。而且仅供我在Windows上使用,请尝试在其他操作系统之间阅读。

我无法对panda

做任何事情

如果您收到上述错误消息,则可能意味着您过早地运行panda update。几乎每个模块都会告诉您在panda update之前运行panda install ...

我现在该怎么办?

你必须删除rakudo star并重新安装!我注意到在重新安装raduko后,panda list再次开始工作。我欣喜若狂!问题是我运行panda update后导致上述错误。我试图再次运行panda list,令我惊讶的是熊猫现在又被打破了。所以基本上,重新安装并不运行panda update

好的,现在我回到我开始无法连接到github的地方

星星必须对齐(不是)才能连接到代理后面的github。我的解决方案涉及以下几点:

  • 确保您安装了最新版本的git(否则会抱怨)
  • git config http.proxy http://user:password@proxy.website.com:port
  • git config https.proxy http://user:password@proxy.website.com:port
  • git config --global http.proxy http://user:password@proxy.website.com:port
  • git config --global https.proxy http://user:password@proxy.website.com:port
  • git config http.sslVerify=false
  • SET http_proxy=http://user:password@proxy.website.com:port
  • SET https_proxy=http://user:password@proxy.website.com:port
  • SET GIT_PROTOCOL=https
  • SET GIT_SSL_NO_VERIFY=true

现在很明显我不知道我在做什么,并且那里有大量的交叉设置但是我很确定我已经设置了它们所以它看起来并不像伤害更多。

SUCCESS!

所以假设你已经做到这一点并且还没有使用panda update,你应该能够使用panda install ...为perl6安装模块!