我正在嘗試使用舞者創建示例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