我正在尝试使用舞者创建示例web服务。我使用Ubuntu 10.04作为我的操作系统。我使用CPAN客户端安装舞者和依赖性,也可以做使用CPAN安装舞者和依赖项
dancer -a MyApp
然而,当我尝试运行app.pl文件,代码抛出一个错误说YAML.pm没有找到。我确信这个文件是在安装依赖时下载的。一个有几个问题: -
1. Where does CPAN put all these files which were downloaded? How are they included in the @INC?
2. For using Dancer, do I have to manually include all the files in @INC?
我试图通过世界包括@INC的Dancer.pm路径创建一个非常简单的Perl舞者应用的打招呼。但是,由于缺少某些或其他依赖项,它会一直失败。
帮我理解我做错了什么?
请参阅GitHub上舞者问题追踪器中的[拒绝错误](https://github.com/PerlDancer/Dancer/issues/502) – amon