iT邦幫忙

0

Centos執行.run檔發生錯誤

不知道怎麼去修改.run的installer

sh OAE-Linux-x86_64-release_2.0.1.run
Verifying archive integrity... All good.
Uncompressing Open-AudIT_2.0.1  100%
Can't locate version.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./installer line 38.
BEGIN failed--compilation aborted at ./installer line 38.
weiclin iT邦高手 4 級 ‧ 2017-06-27 17:32:21 檢舉
所以你有安裝 perl 嗎
seeyounow iT邦新手 5 級 ‧ 2017-06-28 09:47:58 檢舉
應該是有吧?因為當初是照著教學裝的,可是原本是用tar.gz所以可以解壓出來在修改installer在安裝,最新需要更新,但新版是提供.run檔,我第一次看到這種檔,所以不太知道該怎麼改
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
James
iT邦大師 6 級 ‧ 2017-06-28 10:48:32
最佳解答

執行perl -v 確認 perl版本 要大於 5.9.0

看更多先前的回應...收起先前的回應...
seeyounow iT邦新手 5 級 ‧ 2017-06-28 10:59:14 檢舉
This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi
(with 34 registered patches, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

這應該有吧,因為主要是在tar.gz有說明要vi installer然後註解掉第38行,可是.run是直接執行 我不知道這樣要怎麼去vi installer然後註解掉第38行

James iT邦大師 6 級 ‧ 2017-06-28 12:32:45 檢舉

執行時加入 --noexec --keep 就會産生安裝檔,而不會自動安裝

James iT邦大師 6 級 ‧ 2017-06-28 13:40:31 檢舉

用 yum install perl-version
補安裝perl模組應該也可以解決你的問題。

seeyounow iT邦新手 5 級 ‧ 2017-06-28 14:36:08 檢舉

感謝大神,補安裝PERL可以
但還是想學習一下產生安裝檔,可是始用上還是有問題

sh --noexec --keep OAE-Linux-x86_64-release_2.0.1.run
sh: --noexec:無效選項
用法:  sh [GNU 長選項] [選項] ...
        sh [GNU 長選項] [選項] script-file ...
GNU 長選項:
        --debug
        --debugger
        --dump-po-strings
        --dump-strings
        --help
        --init-file
        --login
        --noediting
        --noprofile
        --norc
        --posix
        --protected
        --rcfile
        --rpm-requires
        --restricted
        --verbose
        --version
Shell 選項:
        -irsD 或 -c 命令或 -O shopt_option              (只有引用)
        -abefhkmnptuvxBCHP or -o 選項
James iT邦大師 6 級 ‧ 2017-06-28 15:49:57 檢舉
sh OAE-Linux-x86_64-release_2.0.1.run --noexec --keep

這兩個參數是.run檔提供的,不是sh內建的

James iT邦大師 6 級 ‧ 2017-06-28 15:58:17 檢舉

我也不是神,我是去下載檔案回來看才知道有這兩個參數。/images/emoticon/emoticon01.gif

seeyounow iT邦新手 5 級 ‧ 2017-06-29 17:12:35 檢舉

非常感謝~

我要發表回答

立即登入回答