Lỗi java khi cài đặt tomcat trên cPanel
Hiện tại bản easyapache 3.22.24 đang gặp lỗi khi cài đặt tomcat trên cPanel. Khi chạy script build sẽ gặp lỗi:
[20131205.112535] error: Failed dependencies:
[20131205.112535] java7 >= 1:1.7.0 is needed by easy-jakarta-commons-daemon-1.0.15-0.x86_64
[20131205.112535] java7 >= 1.7.0 is needed by easy-mysql-connector-java-5.1.25-0.noarch
[20131205.112535] W Error Code: 14
[20131205.112535] E The following possible errors were detected while installing RPMs:
[20131205.112535] E Failed dependencies
[20131205.112535] The Administrator will be notified to review this output when this script completes
[20131205.112535] Checking for and running RPM::Versions ‘post’ hooks for any RPMs just installed
[20131205.112535] All required ‘post’ hooks have been run
Để xử lý lỗi này, cần remove java hiện tại và cài đặt java
# rpm -Uvh java-1.7.0-openjdk-*
Sau đó chạy easyapache lại để buid tomcat.