通过ddev中的cpanm安装模块

我想使用Marzipano和flatView创建全景图,因此想使用必须拆分为不同图块的图像。有一个免费的开源工具可以执行此操作,称为“ entile”:https://metacpan.org/pod/distribution/Panotools-Script/bin/entile

现在我被困住了,因为似乎该工具需要安装到服务器上?

根据安装说明: 要安装Entile,只需将其中两个命令复制并粘贴到您的终端中

cpanm

                    cpanm entile

CPAN外壳

                    perl -MCPAN -e shell
                    install entile

我已经在Windows 10上使用DDEV进行TYPO3开发,并认为我也可以将DDEV用于此目的。因此,我开始了我的TYPO3开发项目(但也许最好使用额外的项目?)并尝试安装该工具。

这就是我得到的:

USER.NAME@my-project-web:/var/www/html$ perl -MCPAN -e shell

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] yes

 <install_help>

Warning: You do not have write permission for Perl library directories.

To install modules,you need to configure a local Perl library directory or
escalate your privileges.  CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available).  You may also
resolve this problem manually if you need to customize your setup.

What approach do you want?  (Choose 'local::lib','sudo' or 'manual')
 [local::lib] local::lib


ALERT: 'make' is an essential tool for building perl Modules.
Please make sure you have 'make' (or some equivalent) working.


Autoconfiguration complete.

Attempting to bootstrap local::lib...

Writing /home/USER.NAME/.cpan/CPAN/MyConfig.pm for bootstrap...
commit: wrote '/home/USER.NAME/.cpan/CPAN/MyConfig.pm'
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/01mailrc.txt.gz
Reading '/home/USER.NAME/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/02packages.details.txt.gz
Reading '/home/USER.NAME/.cpan/sources/modules/02packages.details.txt.gz'
  Database was generated on Tue,18 Aug 2020 11:17:03 GMT
  HTTP::Date not available
.............
  New CPAN.pm version (v2.28) available.
  [Currently running version is v2.20]
  You might want to try
    install CPAN
    reload cpan
  to both upgrade CPAN.pm and run the new version without leaving
  the current session.


...............................................................DONE
Fetching with HTTP::Tiny:
http://www.cpan.org/modules/03modlist.data.gz
Reading '/home/USER.NAME/.cpan/sources/modules/03modlist.data.gz'
DONE
Writing /home/USER.NAME/.cpan/Metadata
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/H/HA/HAARG/local-lib-2.000024.tar.gz
Fetching with HTTP::Tiny:
http://www.cpan.org/authors/id/H/HA/HAARG/CHECKSUMS
Checksum for /home/USER.NAME/.cpan/sources/authors/id/H/HA/HAARG/local-lib-2.00002
4.tar.gz ok
'YAML' not installed,will not store persistent state
Configuring H/HA/HAARG/local-lib-2.000024.tar.gz with Makefile.PL
Attempting to create directory /home/USER.NAME/perl5

Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for local::lib
Writing MYMeta.yml and MYMeta.json
  HAARG/local-lib-2.000024.tar.gz
  /usr/bin/perl Makefile.PL --bootstrap -- OK
Running make for H/HA/HAARG/local-lib-2.000024.tar.gz
  HAARG/local-lib-2.000024.tar.gz
  make -- NOT OK
  No such file or directory
Can't locate local/lib.pm in @INC (you may need to install the local::lib module) (@I
NC contains: /home/USER.NAME/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux
-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /u
sr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/li
b/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /usr/share/perl/5.28/CPAN/FirstTi
me.pm line 1357.
USER.NAME@my-project-web:/var/www/html$ perl -MCPAN -e shell
Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v2.20)
Enter 'h' for help.

cpan[1]> install entile
Reading '/home/USER.NAME/.cpan/Metadata'
  Database was generated on Tue,18 Aug 2020 11:17:03 GMT
Warning: Cannot install entile,don't know what it is.
Try the command

    i /entile/

to find objects with matching identifiers.

cpan[2]>

我认为它没有用。 :/

Entile还需要ImageMagick,但我认为DDEV已经包含了它。不确定是否可以立即使用...

我的问题是: 我该如何进行这项工作?我错了什么?也许有人可以通过一步一步的教程来帮助我? 我必须创建一个新项目还是可以使用现有项目,并且出问题了吗?

iCMS 回答:通过ddev中的cpanm安装模块

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/1724910.html

大家都在问