Znapzend

如何設置 Carton,編譯 znapzend 0.20.0?

  • July 21, 2020

從原始碼編譯時使用:

# ./configure --prefix=/opt/znapzend-0.20.0
# make 
# make install

我收到此錯誤: ! Couldn't find module or a distribution Carton

我可以毫無問題地從原始碼編譯 0.19.1 版本。我現在使用 0.19.1 有一段時間了,我對 znapzend 非常滿意!謝謝你所有的工作。當我想升級到 0.20.0 時,我遇到了這個問題。

我正在使用 Ubuntu 20.04。我嘗試像這樣安裝 Carton:

# apt install carton
# carton -v
carton v1.0.34

但是在安裝 carton 後,我在編譯時仍然遇到同樣的錯誤。

自述文件包含編譯版本 0.19.2 的說明,但不包含使用 carton 進行更好的依賴跟踪的版本 0.20.0 的說明。

您能否幫我提供設置 Carton 的說明,以便我可以編譯 znapzend 0.20.0?

我發現了問題。Carton 是一個 Perl 模組依賴管理器,它使用 CPAN 來安裝 Perl 模組。安裝 Carton 是不夠的。CPAN 預設安裝在 Ubuntu 中,但尚未在我的系統上配置。

我這樣配置 CPAN:

# sudo cpan
Loading internal logger. Log::Log4perl recommended for better logging

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] 

Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

並讓它自動配置。在此之後,我可以毫無問題地編譯 znapzend 0.20.0。

引用自:https://serverfault.com/questions/1026097