我可以在我的主目录中安装一个预配置的Perl二进制包吗? [英] Can I install a pre-configured Perl binary package in my home directory?

查看:89
本文介绍了我可以在我的主目录中安装一个预配置的Perl二进制包吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的主目录中设置Perl 5.10,除了目前在/ usr / local机器上的古老Perl。我不是这台机器上的超级用户。

I want to set up Perl 5.10 in my home directory in addition to the ancient Perl currently on the machine in the /usr/local. I am not a super-user on this machine.

我发现require 5.10 HPUX perl 二进制包,它似乎工作,但由于某种原因,似乎假定它运行在/ usr / local(由@INC错误消息证明)。除了PERLLIB,还有一些其他变量,像PERLHOME或者我需要设置,以便Perl不会在/ usr / local dirs中寻找任何东西?

I found the require 5.10 HPUX perl binary package and it seems to work, but for some reason it seems to assume it's running in /usr/local (as evidenced by @INC error messages). Is there some other variable in addition to PERLLIB, like PERLHOME or something I need to set so that Perl won't look for anything in the /usr/local dirs?

我看到在线咨询以编译和设置目录在./Configure步骤,但我一直很难在这个旧的盒子上编译的东西,所以我更喜欢使用预编译的Perl,因为它似乎主要工作。

P.S. I seen advice online to compile and set the dir in the ./Configure step, but I been having hard time compiling things on this old box so I'd prefer to use the pre-compiled Perl since it seems mostly to work.

UPDATE - Leon回答这个问题,所以基本上不可能从home dir正确运行perl二进制文件,除非编译时考虑到这一点

UPDATE -- Leon answered this, so basically it's not possible to run perl binary correctly from your home dir unless it was compiled with that in mind

推荐答案

这取决于你的 perl 二进制是可重定位的。这是一个编译时选项。这个命令的输出是什么?是否已定义?

It depends on whether or not your perl binary is relocatable. It's a compile time option. What is the output of this command? Is it defined or not?

perl -V:userelocatableinc

这篇关于我可以在我的主目录中安装一个预配置的Perl二进制包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆