【问题标题】:Need help for installing LDAP in unix在 unix 中安装 LDAP 需要帮助
【发布时间】:2014-07-04 23:05:50
【问题描述】:

我正在按照以下步骤在 unix 中安装 LDAP

1.tar -xzf perl-ldap-0.43.tar.gz

2.cd perl-ldap-0.43

3.perl MakeFile.PL

我收到以下消息

* 正在检查 Perl 依赖项... 由于以下未初始化的参数,我们必须重新配置 CPAN.pm:

cpan_home、keep_source_where、build_dir、build_cache、scan_cache、index_expire、gzip、tar、解压缩、make、pager、makepl_arg、make_arg、make_install_arg、urllist、inhibit_startup_message、ftp_proxy、http_proxy、no_proxy、prerequisites_policy、cache_metadata

CPAN 是 perl 资源的全球存档。它由大约 100 个网站在全球范围内都复制了相同的内容。 许多国家已经至少有一个 CPAN 站点。资源 通过 CPAN.pm 模块可以轻松访问 CPAN 上的内容。如果你 想使用CPAN.pm,必须正确配置。

如果您现在不想进入对话框,您可以对此回答“否” 问题,我会尝试自动配置。 (注:你可以重温这个 通过在 cpan 提示符下键入 'o conf init' 随时进行对话。)

您准备好手动配置了吗? [是]

如何在没有 CPAN 的情况下安装以及安装 Ldap 需要哪些依赖模块? 任何人都可以建议我的标准安装过程。

提前致谢

【问题讨论】:

  • 我认为您的问题比 StackOverflow 更适合 Unix 和 Linux 或超级用户,因为它不是编程问题。考虑将其关闭和/或将其移至另一个 SE 站点。

标签: perl unix


【解决方案1】:

我假设您正在尝试通过perl-ldap-0.43.tar.gz 安装Net::LDAP

如何在没有 CPAN 的情况下安装?

CPAN 是安装 Perl 模块的推荐方式。您只需配置一次,之后如果您需要安装任何 Perl 模块,您只需键入以下内容。

$ cpan ModuleName 就像你的情况一样,而不是下载、解压和运行 makefile,你可以这样做:

$ cpan Net::LDAP

安装 Ldap 需要哪些依赖模块?

使用 CPAN 的另一个优势是您不必关心依赖关系。如果您要求,CPAN 将自动安装依赖项。这样做

$ perl -MCPAN -e shell
cpan[1]>  o conf prerequisites_policy follow
cpan[2]>  o conf commit
exit

或者只使用App::cpanminus 并运行

$ cpanm Net::LDAP 它将安装模块及其所有依赖项。

还可以查看Perl LDAP 页面。

编辑:基于您的answer

你会得到一些类似上面的错误,你必须查看错误日志,检查丢失的模块,然后去 CPAN 并下载该模块的tar.gz,然后执行与你相同的步骤,例如去皮并运行Makefile。除非安装了所有依赖项,否则您必须这样做。

【讨论】:

  • 您好,感谢您的建议
【解决方案2】:

我们可以在安装 perl 模块时忽略警告吗? 我通过忽略以下警告安装了 ExtUtils-MakeMaker-6.98.tar.gz

Using included version of ExtUtils::Install (1.54) as it is newer than the installed version (1.33).
Using included version of CPAN::Meta::YAML (0.008) because it is not already installed.
Using included version of JSON::PP::Compat5006 (1.09) because it is not already installed.
Using included version of ExtUtils::Manifest (1.60) as it is newer than the installed version (1.46).
Using included version of version (0.88) because it is not already installed.
Using included version of ExtUtils::Command (1.16) as it is newer than the installed version (1.09).
Using included version of CPAN::Meta (2.120351) because it is not already installed.
Using included version of JSON::PP (2.27203) because it is not already installed.
Using included version of File::Temp (0.22) as it is newer than the installed version (0.16).
Using included version of Parse::CPAN::Meta (1.4405) because it is not already installed.
Using included version of File::Copy::Recursive (0.38) because it is not already installed.
Checking if your kit is complete...
Warning: the following files are missing in your kit:
    't/liblist/win32/di
    't/liblist/win32/space
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for ExtUtils::MakeMaker
Writing MYMETA.yml and MYMETA.json**

但我能够成功安装。以后会不会出问题?

【讨论】:

    猜你喜欢
    • 2021-12-15
    • 2011-08-25
    • 2011-09-19
    • 1970-01-01
    • 1970-01-01
    • 2011-03-31
    • 2011-02-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多