Ben*_*nny 4 installation perl perl-module activeperl
我正在尝试设置一个依赖于几个 Perl 模块的应用程序,但是我要安装到的服务器没有 Internet 连接。我通过 ppd 文件阅读了有关离线模块安装的信息,但是我必须一一解决所有依赖项..考虑到我没有直接的互联网连接,这更加乏味。
我希望找到一个解决方案,在我的 PC 上安装 ActivePerl 并安装我想要的所有库,然后将目录复制粘贴到我的服务器。如果只是修复一些环境变量的问题,那就没问题了。只想知道要修改的最终变量列表。不确定是否必须在要运行的计算机上安装 perl 库?(一个是 32 位平台,另一个是 64 位,但是服务器已经运行了各种 32 位应用程序,所以我希望这不是一个大问题)为了获得最佳兼容性,我计划在两个系统上都安装 ActivePerl 并合并库目录相同。
答案在Perl FAQ 上,我的错误没有正确解决。
I copied the perl binary from one machine to another, but scripts don't work.
That's probably because you forgot libraries, or library paths differ.
You really should build the whole distribution on the machine it will
eventually live on, and then type "make install". Most other approaches
are doomed to failure.
One simple way to check that things are in the right place is to print
out the hard-coded @INC that perl looks through for libraries:
% perl -le 'print for @INC'
If this command lists any paths that don't exist on your system, then
you may need to move the appropriate libraries to these locations, or
create symbolic links, aliases, or shortcuts appropriately. @INC is also
printed as part of the output of
% perl -V
You might also want to check out "How do I keep my own module/library
directory?" in perlfaq8.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5097 次 |
| 最近记录: |