【问题标题】:automatic response to cpanm prompt自动响应 cpanm 提示
【发布时间】:2014-08-25 13:58:41
【问题描述】:

我正在安装 perl 模块 Bio::DB::Sam。

很快,安装程序要求我找到 bam.h 和 libbam.a 文件:

--> Working on Bio::DB::Sam
Fetching http://www.cpan.org/authors/id/L/LD/LDS/Bio-SamTools-1.39.tar.gz ... OK
Configuring Bio-SamTools-1.39 ... Please enter the location of the bam.h and compiled libbam.a files: 

我事先知道这些文件在哪里,我想自动化这个过程。比如:

echo "/Users/al/programs/samtools-0.1.19" | cpanm Bio::DB::Sam

或

echo "/Users/alice/programs/samtools-0.1.19" | xargs cpanm Bio::DB::Sam

基本上,我想在不与用户进行任何交互的情况下安装此模块。感谢您的建议。到目前为止,我尝试过的所有操作都要求提供这些文件的位置。

【问题讨论】:

    标签: perl module prompt cpanm


    【解决方案1】:

    看起来您可以使用SAMTOOLS 环境变量来指定位置。请参阅处理模块安装的Build.PL 文件。

    【讨论】:

    • 太棒了!你让我今天一整天都感觉很好。我导出SAMTOOLS变量,安装成功,没有提示。
    猜你喜欢
    • 2019-05-02
    • 1970-01-01
    • 1970-01-01
    • 2023-03-29
    • 1970-01-01
    • 2021-02-12
    • 2017-06-26
    • 1970-01-01
    • 2017-04-09
    相关资源
    最近更新 更多