【问题标题】:path to temp directory in cpancpan中临时目录的路径
【发布时间】:2023-04-06 04:09:01
【问题描述】:

我正在尝试使用 cpan 在 windows 中为 perl 安装 Tk 模块。 问题是:

Checking if you have Test::More 0 ... Yes (0.98)
Checking if you have Encode 0 ... Yes (2.44)
Building Tk-804.03 ... dmake.exe:  Error: -- `C:\Documents' not found, and can't
 be made
FAIL
! Installing Tk failed. See C:\Documents and Settings\Admin\.cpanm\build.log for
 details.

在 build.log 中没有其他信息。

如何将“.cpanm”目录的路径更改为没有空格的任何其他目录? 默认值为“~/.cpam”,我没有找到改变它的方法。

【问题讨论】:

    标签: windows perl cpan strawberry-perl home-directory


    【解决方案1】:

    最简单的就是使用

    C:\some\dir> 设置 HOME=G:\some\directory\with\no\spaces

    在您正在使用的 cmd.exe 窗口中。这只会更改该窗口中的设置,不会影响其他任何内容。

    事实上,我的 XP 笔记本电脑上的永久环境包含一个类似的 HOME 设置:E:\Home\username,因为我不喜欢处理这种东西。

    是的,我们的工具应该能够处理带有空格的路径,但这就是生活的不公平。

    【讨论】:

      猜你喜欢
      • 2015-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-28
      • 2011-03-01
      • 1970-01-01
      • 2012-04-11
      相关资源
      最近更新 更多