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
perl – 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後台安裝的套裝程式?

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

]]>
如何安裝perl的模組(module) https://blog.unethost.com/how_to_install_perl_module/ Mon, 21 May 2012 19:11:32 +0000 http://blog.unethost.com/?p=135 閱讀全文 如何安裝perl的模組(module)]]> 這幾天在debug時,發現原來bug的來源是因為有perl的模組沒有裝好,於是我們就來研究一下安裝perl module的方法吧。

(1) 先檢查,現在系統裝了那些perl的模組:
先打指令instmodsh,再打l,這樣就會列出系統中的perl modules了。

[root@proxy vhost]# instmodsh
Available commands are:
l – List all installed modules
m <module> – Select a module
q – Quit the program
cmd? l
Installed modules are:
Class::Loader
Crypt::Random
Digest::SHA
Digest::SHA::PurePerl
IPC::SysV
Math::Pari
Net::IP::Match::Regexp
Perl

(2) 來安裝模組吧:

A) 首先啟動 CPAN Shell:
# perl -MCPAN -e shell

B) 在CPAN Shell的環境下,安裝 perl module,以模組IPC::SharedMem為例子
# cpan> install IPC::SharedMem

參考資料:
(1) http://www.cyberciti.biz/faq/how-do-i-find-out-what-perl-modules-already-installed-on-my-system/
(2) http://www.cyberciti.biz/faq/how-do-i-install-a-perl-module/

]]>