在Fedora 10 安装DB2时遇到的错误: Failed to find VM - aborting
先记录下来:
RHEL 5.0 Error message "Failed to find VM - aborting" when invoking TDI Server, CE or other TDI commands
| |||||
Cause | |||||
RHEL 5.0 has a new security feature named 'Security Enhanced Linux', or SELinux for short. A weaker version of SELinux was included in RHEL 4.0, and was disabled by default. RHEL 5.0 defaults SELinux to enabled. SELinux helps to keep the host secure from certain types of malicious attacks. However, the default settings have been known in many cases to prevent Java 1.5 from running properly. TDI 6.1.1 ships with IBM Java 1.5-SR5. When these JRE 1.5 issues occur, the /var/log/messages file may contain cryptic error messages describing what is not allowed. | |||||
Answer | |||||
To fix this issue, you can choose one of the following options:
for I in `ls <tdi_install_dir>/jvm/jre/bin/lib*.so` do semanage fcontext -a -t textrel_shlib_t ${I} chcon -f -t textrel_shlib_t ${I}; done semanage fcontext -a -t textrel_shlib_t / <tdi_install_dir>/jvm/jre/bin/j9vm/libjvm.so chcon -f -t textrel_shlib_t / <tdi_install_dir>/jvm/jre/bin/j9vm/libjvm.so NOTE: The actual install path would be substitued for <tdi_install_dir> (for example /opt/IBM/TDI/V6.1.1) |