Skip to main content

Perl Problem

Comments

13 comments

  • gnusys
    Hi, Try /usr/local/cpanel/scripts/perlinstaller Try::Tiny
    0
  • oozetime

    root@whm01 [~]# /usr/local/cpanel/scripts/perlinstaller Try::Tiny info [perlinstaller] /root/.cpanel/datastore/Cpanel::Sys::Compiler::test_compile_cc Checking C compiler....C compiler (/usr/bin/cc) OK (cached Fri Jul 3 05:49:30 2015) Tuned C compiler not available because it is not enabled....Done CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available. Installer: cpanm: Not Available: Perl Expect (Could not load expect perl module: Can't locate IO/Tty.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 64. ) Method: Using System Expect, Installer: cpanm spawn /usr/local/cpanel/bin/cpanm --notest --notest --verbose --perl=/scripts/cpan_sandbox/x86_64/perl Try::Tiny Can't locate Try/Tiny.pm in @INC (@INC contains: /usr/local/cpanel CODE(0x1d027f0) /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. Compilation failed in require at (eval 18) line 3. ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Raw.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. Compilation failed in require at /usr/local/cpanel/bin/cpanm line 20671. BEGIN failed--compilation aborted at /usr/local/cpanel/bin/cpanm line 20671. System Expect failed with non-zero exit status: 2 All available perl module install methods have failed
    0
  • dalem
    yum install perl-IO-Tty then try
    0
  • oozetime
    :(
    root@whm01 [~]# yum install perl-IO-Tty Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.rackspace.com * extras: mirrors.chkhosting.com * updates: mirror.oss.ou.edu Resolving Dependencies --> Running transaction check ---> Package perl-IO-Tty.x86_64 0:1.08-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: perl-IO-Tty x86_64 1.08-4.el6 base 40 k Transaction Summary ================================================================================ Install 1 Package(s) Total download size: 40 k Installed size: 78 k Is this ok [y/N]: y Downloading Packages: perl-IO-Tty-1.08-4.el6.x86_64.rpm | 40 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : perl-IO-Tty-1.08-4.el6.x86_64 1/1 Verifying : perl-IO-Tty-1.08-4.el6.x86_64 1/1 Installed: perl-IO-Tty.x86_64 0:1.08-4.el6 Complete! root@whm01 [~]# root@whm01 [~]# /usr/local/cpanel/scripts/perlinstaller Try::Tiny info [perlinstaller] /root/.cpanel/datastore/Cpanel::Sys::Compiler::test_compile_cc Checking C compiler....C compiler (/usr/bin/cc) OK (cached Fri Jul 3 05:49:30 2015) Tuned C compiler not available because it is not enabled....Done CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available. Installer: cpanm: Not Available: Perl Expect (Could not load expect perl module: Can't locate IO/Tty.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 64. ) Method: Using System Expect, Installer: cpanm spawn /usr/local/cpanel/bin/cpanm --notest --notest --verbose --perl=/scripts/cpan_sandbox/x86_64/perl Try::Tiny Can't locate Try/Tiny.pm in @INC (@INC contains: /usr/local/cpanel CODE(0x9717f0) /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. Compilation failed in require at (eval 18) line 3. ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Raw.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. Compilation failed in require at /usr/local/cpanel/bin/cpanm line 20671. BEGIN failed--compilation aborted at /usr/local/cpanel/bin/cpanm line 20671. System Expect failed with non-zero exit status: 2 All available perl module install methods have failed
    0
  • dalem
    /usr/local/cpanel/bin/cpanm -n IO::Tty & try again
    0
  • oozetime

    root@whm01 [~]# /usr/local/cpanel/bin/cpanm -n IO::Tty Can't locate Try/Tiny.pm in @INC (@INC contains: /usr/local/cpanel CODE(0xe595d0) /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. Compilation failed in require at (eval 18) line 3. ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Raw.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. Compilation failed in require at /usr/local/cpanel/bin/cpanm line 20671. BEGIN failed--compilation aborted at /usr/local/cpanel/bin/cpanm line 20671.
    0
  • dalem
    Do you have cpan installed # rpm -qa | grep perl-CPAN if not Temporarily update /etc/yum.conf and temporarily remove 'perl-*' from the "exclude=" line. Run the following command: # yum install perl-CPAN then add perl-* back to the /etc/yum.conf exclude
    0
  • oozetime

    root@whm01 [~]# rpm -qa | grep perl-CPAN perl-CPANPLUS-0.88-136.el6_6.1.x86_64 perl-CPAN-1.9402-136.el6_6.1.x86_64
    0
  • dalem
    run the install anyway its probably out of date if that does not resolve the issue I suggest you hire an admin or open a ticket with cpanel
    0
  • oozetime
    I've tried every way possible. I created a ticket before you even open this topic, I am awaiting. Without I can not compile the apache.
    0
  • dalem
    Seems to be the same issue
    0
  • oozetime
    Thx dalem, but.. Hello, Thank you for your patience. EasyApache was failing to run because of missing perl modules. I attempted to install them using /scripts/perlinstaller but was encountering the following error: [19:32:04 whm01 root@6784655 /usr/local/cpanel/logs/easy/apache]cPs# /scripts/perlinstaller Digest::SHA1 Crypt::PasswdMD5 info [perlinstaller] /root/.cpanel/datastore/Cpanel::Sys::Compiler::test_compile_cc Checking C compiler....C compiler (/usr/bin/cc) OK (cached Fri Jul 3 05:49:30 2015) Tuned C compiler not available because it is not enabled....Done CPAN fallback is disabled since /var/cpanel/conserve_memory exists, and cpanm is available. Installer: cpanm: Not Available: Perl Expect (Could not load expect perl module: Can't locate IO/Tty.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/cPCPAN/Install.pm line 64. ) Method: Using System Expect, Installer: cpanm spawn /usr/local/cpanel/bin/cpanm --notest --notest --verbose --perl=/scripts/cpan_sandbox/x86_64/perl Digest::SHA1 Crypt::PasswdMD5 Can't locate Try/Tiny.pm in @INC (@INC contains: /usr/local/cpanel CODE(0xf5e540) /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 21. Compilation failed in require at (eval 18) line 3. ...propagated at /usr/local/lib/perl5/5.8.8/base.pm line 85. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Transaction/File/Raw.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write.pm line 18. Compilation failed in require at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/FileUtils/Write/Storable/Lazy.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/LoadConfig.pm line 13. Compilation failed in require at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/Config/Sources.pm line 8. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/MirrorSearch.pm line 10. Compilation failed in require at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPCPAN/cpanminus.pm line 13. Compilation failed in require at /usr/local/cpanel/bin/cpanm line 20671. BEGIN failed--compilation aborted at /usr/local/cpanel/bin/cpanm line 20671. System Expect failed with non-zero exit status: 2 All available perl module install methods have failed I reinstalled perl using "yum reinstall perl" and was able to install the required perl modules (Digest::SHA1 and Crypt::PasswdMD5). After this, I was able to run EasyApache and it completed without error: !! You can change how PHP is configured. As root, simply execute: /usr/local/cpanel/bin/rebuild_phpconf --help for more information. !! !! Build Complete! !! !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1435966672' !! You should be good to go at this time. -- Seth Daughenbaugh cPanel, Inc. Technical Analyst
    0
  • cPanelMichael
    Hello :) I am happy to see your issue was addressed in that support ticket. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.