【问题标题】:Portable Strawberry perl便携式草莓perl
【发布时间】:2013-12-02 08:56:14
【问题描述】:

我从http://strawberryperl.com/releases.html下载了便携草莓perl版本perl-5.18.1.1并解压

当我运行 protableshell.bat 时

然后运行 ​​cpan> install some::module

我总是收到以下错误消息“系统找不到指定的路径。”

下面是我在尝试安装 Text::CSV_XS 时遇到的错误示例

Welcome to Text::CSV (v.1.32)
=============================
If you install Text::CSV_XS v.0.99, it makes Text::CSV faster.

Checking if your kit is complete...
Looks good
Writing Makefile for Text::CSV
Writing MYMETA.yml and MYMETA.json
The system cannot find the path specified.
  MAKAMAKA/Text-CSV-1.32.tar.gz
  C:\strawberry-perl-5.18.1.1-64bit-portable\c\bin\dmake.exe -- NOT OK
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible
Stopping: 'install' failed for 'Text::CSV'.
Failed during this command:
 MAKAMAKA/Text-CSV-1.32.tar.gz                : make NO

这可能是什么问题?

【问题讨论】:

  • 指定路径中是​​否存在dmake
  • 是的,我检查过了,它存在于路径中。
  • 你能手动安装模块吗?
  • 是的,手动下载它们并使用 dmake install 安装它们

标签: perl strawberry-perl


【解决方案1】:

我正在使用 64 位便携式 Perl 版本 - 5.18.2.2 并尝试安装该模块。似乎对我来说工作得很好。请尝试以下步骤:

安装便携式 perl 后,您需要

1) 切换到安装目录

2) 运行portableshell.bat 命令。

3) 检查并再次确认是否正在运行正确的 perl 版本。

C:\Users\pmu>cd C:\myperl64_51822

C:\myperl64_51822>portableshell.bat
----------------------------------------------
Welcome to Strawberry Perl Portable Edition!
* URL - http://www.strawberryperl.com/
* see README.TXT for more info
----------------------------------------------
Perl executable: C:\myperl64_51822\perl\bin\perl.exe
Perl version   : 5.18.2 / MSWin32-x64-multi-thread

C:\myperl64_51822>perl --version | find /I "version"
This is perl 5, version 18, subversion 2 (v5.18.2) built for MSWin32-x64-multi-thread

4) 使用 cpanm 命令代替 cpan。它对我有用,如下所示。

C:\myperl64_51822>cpanm Text::CSV_XS
--> Working on Text::CSV_XS
Fetching http://www.cpan.org/authors/id/H/HM/HMBRAND/Text-CSV_XS-1.05.tgz ... OK
Configuring Text-CSV_XS-1.05 ... OK
Building and testing Text-CSV_XS-1.05 ... OK
Successfully installed Text-CSV_XS-1.05
1 distribution installed

C:\myperl64_51822>

注意 - 安装模块需要很长时间。半天按Ctrl+C,就出现了上面的信息。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-11-20
    • 2011-06-17
    • 2011-12-14
    • 2012-05-27
    • 1970-01-01
    • 1970-01-01
    • 2020-04-21
    相关资源
    最近更新 更多