Tuesday, August 23, 2011

cPanel - PERL not properly linked

Aku dpt error ni dari cPanel server client.

ini berpunca dari aku update PERL version dkt server cPanel tu.

ERROR 1,

The perl binary at /usr/bin/perl should be a symlink to /usr/local/bin/perl to ensure that all scripts execute with the same perl version. This condition has been linked to a number of hard-to-diagnose issues in the past.

To resolve this issue, rename the current /usr/bin/perl and create a symlink pointing to /usr/local/bin/perl.

cd /usr/bin
    mv perl perl-backup
    ln -s /usr/local/bin/perl perl

ERROR 2,

This module is required by cPanel, and the system may not function correctly until it is installed, and functional. Below is the results of the auto-install attempt:

Test Run
==============

Can't locate Mysql.pm in @INC (@INC contains: /opt/perl5.14/site/lib /opt/perl5.14/lib .) at - line 1.
BEGIN failed--compilation aborted at - line 1.

after tanya pakcik google, aku jumpa satu tips/rujukan yang mengatakan /usr/bin/perl mestilah symlink ke /usr/local/bin/perl ataupun /usr/bin/local/perl symlink ke /usr/bin/perl .... dimana salah satu mestilah symlink dah satu lagi executable file.

kalau megikut post aku berkaitan update PERL diserver cPanel sebelum ni mmg x da masalah utk script semua run. cuma cPanel ada isu bila kedua2 perl file di /usr/bin/perl & /usr/local/bin/perl merupakan symlink yg aku point ke location baru perl version 5.14.* di /opt/perl5.14/bin/perl

So apa aku buat. juat copy perl execytable file dr /ot/perl5.14/bin/perl ke /usr/local/bin/perl

so far x de masalah.

No comments: