如何使Strawberry Perl的cpan(1)查找perl? [英] How can I make Strawberry Perl's cpan(1) find perl?

查看:124
本文介绍了如何使Strawberry Perl的cpan(1)查找perl?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在Strawberry Perl中安装模板模块.

I'm having trouble installing Template module with Strawberry Perl.

cpan Template

产生以下结果:

 Writing Makefile for AppConfig
 C:strawberryperlbinperl.exe: not found
 dmake.EXE:  Error code 255, while making 'blib\lib\.exists'`

我也听不懂

  • 如何影响路径,以便dmake可以正常工作
  • 为什么路径(正确)中没有\.
  • how to affect the path so dmake will work correctly
  • why the path (which is correct) does not have any \ in it.

推荐答案

如果您一直在使用MKS,则不仅需要确保已将其从PATH中删除,而且还需要确保您没有t将SHELL设置为指向MKS sh.exe.

If you've been using MKS, you not only need to be sure you've removed it from your PATH, but you also need to ensure you don't have SHELL set to point to the MKS sh.exe.

我从PATH中删除了它,并继续努力了几天,直到我意识到dmake调用了错误的shell.

I removed it from my PATH, and continued to struggle with this for a couple of more days until I realized dmake was invoking the wrong shell.

希望这可以帮助其他人.

Hope this helps someone else down the road.

这篇关于如何使Strawberry Perl的cpan(1)查找perl?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆