Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/feed-rss2.php on line 8
unzip – unethost無限空間虛擬主機 技術分享部落格 https://blog.unethost.com unethost 專注於提供優質的虛擬主機服務及相關問題解答 Fri, 18 Mar 2016 07:42:15 +0000 zh-TW hourly 1 https://wordpress.org/?v=6.0.8 如何解決在centos裡,當perl 安裝 module 時發生 “Cannot unzip, no unzip program available”的問題? https://blog.unethost.com/how_to_fix_cannot-unzip-no-unzip-program-available_issue_in_install_perl_module_at_centos/ Fri, 18 Mar 2016 07:42:15 +0000 http://blog.unethost.com/?p=3065 閱讀全文 如何解決在centos裡,當perl 安裝 module 時發生 “Cannot unzip, no unzip program available”的問題?]]> perl_modules_install_issue

這是我們一獨立主機用戶,在perl裡安裝module所發生的問題。
其中查資料過程比較煩瑣,不在額外描述,這邊直接提供解法。

如何發生?

當在 perl 裡要安裝module,總會跳出 Cannot unzip, no unzip program available 這個錯誤訊息,導致module安裝中斷。

為什麼會發生這個問題?
這是因為安裝好cenotos,如果裡面沒有安裝unzip,就去安裝perl
就會導致perl的設定檔裡沒有取得unzip使用路逕
自然在perl安裝模組,就會遇到解壓縮的問題。

如何解決?!

解決方式有兩種,但都要先在linux shell裡安裝好unzip:
1.安裝好unzip後,在將perl重新移除在安裝。

2.修改perl的 Config.pm檔,並將
這一行  ‘unzip’ => q[] and change it to
改為 ‘unzip’ => q[/usr/bin/unzip]

這樣就可以順利安裝perl module

 

(本篇教學由unethost.com客服撰寫)

延伸閱讀:如何備份Cpanel後台安裝的套裝程式?

安裝上述的軟體,我們提供虛擬主機試用,七天滿意保證,
功能完整使用不受限制,歡迎點我申請。

]]>