Home > Linux > Lỗi java khi cài đặt tomcat trên cPanel

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

# wget http://mirror.centos.org/centos/6.4/updates/x86_64/Packages/java-1.7.0-openjdk-devel-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm

# wget http://mirror.centos.org/centos/6.4/updates/x86_64/Packages/java-1.7.0-openjdk-1.7.0.45-2.4.3.2.el6_4.x86_64.rpm

# rpm -Uvh java-1.7.0-openjdk-*

Sau đó chạy easyapache lại để buid tomcat.

Categories: Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment