【发布时间】:2014-01-02 22:57:57
【问题描述】:
我正在尝试使用 Dancer 创建示例 Web 服务。我使用 Ubuntu 10.04 作为我的操作系统。我使用 CPAN 客户端安装了 Dancer 和依赖项,也可以这样做
dancer -a MyApp
但是,当我尝试运行 app.pl 文件时,代码会引发错误,提示找不到 YAML.pm。我确定在安装依赖项时下载了此文件。 A有几个问题:-
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 dancer 应用程序向世界打招呼。但是,由于缺少某些或其他依赖项,它一直失败。
帮助我了解我做错了什么?
【问题讨论】:
-
在 GitHub 上 Dancer 的问题跟踪器中也可以查看 rejected bug
标签: perl perl-module cpan dancer