Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Subject
리눅스 버전 설치 시 에러 발생

APPLIES TO:
3.5.2




SYMPTOMS
[root@localhost Desktop]# ./MCCS_unix_3_5_2.sh
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
Error: dl failure on line 864
Error: failed /root/Desktop/MCCS_unix_3_5_2.sh.17688.dir/jre/lib/i386/client/libjvm.so,
because /root/Desktop/MCCS_unix_3_5_2.sh.17688.dir/jre/lib/i386/client/libjvm.so:
cannot restore segment prot after reloc: Permission denied



CAUSE
현재 TEST하고 있는 MCCS version : 3.6.1

위와 유사한 이슈가 있어서, 찾아 보니, selinux를 비활성화 하라고 되어 있었습니다. (http://www.coderanch.com/t/601302/Linux-UNIX/PATH-CLASSPATH-settings-Linux 의 comment)


A quick search found that this error is usually associated with SELinux (I think Security Enhanced Linux, a sort of firewall installed on some versions of Linux, including Red Hat 5, if I understand it correctly).

The quick-test solution is to disable selinux using setenforce 0 then seeing if it Java works. Then turn it back on using setenforce 1. If that works for you then you should find the SELinux configuration (some versions of Linux have a GUI configurator, and others do not). What you want to do is allow Text Relocation, so in the GUI look for something like ""Allow the use of shared libraries with Text Relocation"". Or, I think, you could use a command line to allow Text Relocation just for the jvm:


TEST장비에서도 동일한 문제가 있어 SELinux를 disabled로 변경한 후에는 정상 설치 됩니다.



SOLUTION
설치 문서에서도 해당 옵션은 disable 을 권장

 

  • No labels