简体   繁体   English

Linux上.com.zerog.registry.xml文件的自定义InstallAnywhere位置

[英]Custom InstallAnywhere location for .com.zerog.registry.xml file on linux

I'm running into an issue where I do not have write access to the /var directory on a UNIX environment, and InstallAnywhere doesn't provide me the option of writing the .com.zerog.registry.xml to any other location for a product installation. 我遇到一个问题,即我对UNIX环境中的/ var目录没有写访问权,并且InstallAnywhere没有为我提供将.com.zerog.registry.xml写入任何其他位置的选项。产品安装。 Is there a parameter out there that allows for this file to be written to a different directory? 是否有一个参数允许将该文件写入其他目录?

According to the IA docs: 根据IA文件:

If logged in as root, the global registry is located in \\var. 如果以root用户身份登录,则全局注册表位于\\ var。

If logged in as a user, it is located in the user's home directory. 如果以用户身份登录,则它位于用户的主目录中。

So, if you're running as root and can't write to /var , it sounds like a permissions problem with the /var directory, independent of IA. 因此,如果您以root身份运行并且无法写入/var ,这听起来像/var目录的权限问题,独立于IA。 Check the permissions on /var . 检查对/var的权限。

If you're running as a non-root user, then the registry shouldn't be going to /var , but to $HOME/.com.zerog.registry.xml (FWIW, I just checked one of our test Linux boxes and found .com.zerog.registry.xml under both /var and under test-user $HOME directories. The docs appear to be correct). 如果您以非root用户身份运行,则注册表不应转到/var ,而应转到$HOME/.com.zerog.registry.xml (FWIW,我只是检查了我们的测试Linux框之一,然后在/var和test-user $HOME目录下都找到了.com.zerog.registry.xml 。这些文档似乎是正确的)。

I've also seen some very strange behavior if IA is low on space in $TMP. 如果$ TMP中的IA空间不足,我还会看到一些非常奇怪的行为。 Make sure you have plenty of space there. 确保那里有足够的空间。

Also, have you considered running the installer with sudo , or the graphical equivalents kdesudo (KDE) and gksu (Gnome)? 另外,您是否考虑过使用sudo或图形等效项kdesudo (KDE)和gksu (Gnome)运行安装程序? Those might get you where you want to go. 这些可能会带您到达您想去的地方。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM