{"id":87,"date":"2017-10-12T06:57:00","date_gmt":"2017-10-12T06:57:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/begin-failed-compilation-aborted-a"},"modified":"2017-10-12T11:38:11","modified_gmt":"2017-10-12T11:38:11","slug":"begin-failed-compilation-aborted","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/perl\/begin-failed-compilation-aborted","title":{"rendered":"BEGIN failed&#8211;compilation aborted at Perl &#8211; Can&#8217;t locate cpan.pm in @inc"},"content":{"rendered":"<h3><u><b>Error:<\/b><\/u><\/h3>\n<p><b>Can&#8217;t locate Scalar\/Util.pm in @INC (@INC <\/b>contains: \/usr\/local\/lib\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib\/perl5 \/usr\/share\/perl5 \/home\/xnavin) at \/usr\/share\/perl5\/Safe.pm line 5.<br \/>\nBEGIN failed&#8211;compilation aborted at \/usr\/share\/perl5\/Safe.pm line 5.<br \/>\nCompilation failed in require at \/usr\/share\/perl5\/CPAN.pm line 55.<br \/>\nBEGIN failed&#8211;compilation aborted at \/usr\/share\/perl5\/CPAN.pm line 55.<br \/>\nCompilation failed in require at \/usr\/share\/perl5\/App\/Cpan.pm line 183.<br \/>\nBEGIN failed&#8211;compilation aborted at \/usr\/share\/perl5\/App\/Cpan.pm line 183.<br \/>\nCompilation failed in require at \/usr\/bin\/cpan line 8.<br \/>\nBEGIN failed&#8211;compilation aborted at \/usr\/bin\/cpan line 8.<\/p>\n<h3><u>Reason of the error:<\/u><\/h3>\n<p>Some perl module is missing.<\/p>\n<h3><u><b>Solution:<\/b><\/u><\/h3>\n<p>Find out the missing perl rpm and installs it.<\/p>\n<p>In this error Find and edit Util.pm<br \/>\n<b>#locate Util.pm<\/b><br \/>\nedit\u00a0 \/usr\/lib\/perl5\/Hash\/Util.pm and find the error line 8<\/p>\n<p>it shows<br \/>\n<b>use Scalar::Util qw(reftype);<\/b><\/p>\n<p>In my case perl-Scallar was not installed<br \/>\ninstall perl-Scallar*<\/p>\n<p><b>#yum install perl-Scallar* <\/b><\/p>\n<p>That&#8217;s all.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error: Can&#8217;t locate Scalar\/Util.pm in @INC (@INC contains: \/usr\/local\/lib\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib\/perl5 \/usr\/share\/perl5 \/home\/xnavin) at \/usr\/share\/perl5\/Safe.pm line 5. BEGIN failed&#8211;compilation aborted at \/usr\/share\/perl5\/Safe.pm line 5. Compilation failed in require&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/perl\/begin-failed-compilation-aborted\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[130],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/87"}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/87\/revisions\/713"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}