Rhel
嘗試安裝 Ora2pg
我在執行 RHEL 的 Amazon EC2 伺服器上。版本是:
NAME="Red Hat Enterprise Linux" VERSION="8.3 (Ootpa)"
我正在嘗試安裝 Ora2pg(它基於 Perl)。但我卡在前幾條指令上,特別是
make && make install
.我得到以下資訊:
[oracle@ip-10-0-26-247 ora2pg-21.1]$ perl Makefile.PL Invalid LICENSE value 'GPLv3' ignored Generating a Unix-style Makefile Writing Makefile for Ora2Pg Invalid LICENSE value 'GPLv3' ignored Writing MYMETA.yml and MYMETA.json Done... ------------------------------------------------------------------------------ Please read documentation at http://ora2pg.darold.net/ before asking for help ------------------------------------------------------------------------------ Now type: make && make install [oracle@ip-10-0-26-247 ora2pg-21.1]$ sudo make && make install [sudo] password for oracle: Skip blib/lib/Ora2Pg/GEOM.pm (unchanged) Skip blib/lib/Ora2Pg/PLSQL.pm (unchanged) Skip blib/lib/Ora2Pg.pm (unchanged) Skip blib/lib/Ora2Pg/MySQL.pm (unchanged) cp scripts/ora2pg blib/script/ora2pg "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ora2pg cp scripts/ora2pg_scanner blib/script/ora2pg_scanner "/usr/bin/perl" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ora2pg_scanner Manifying 1 pod document Manifying 1 pod document Installing default configuration file (ora2pg.conf.dist) to /etc/ora2pg mkdir /etc/ora2pg: Permission denied at /usr/share/perl5/vendor_perl/ExtUtils/Command.pm line 299. make: *** [Makefile:931: install_all] Error 255 [oracle@ip-10-0-26-247 ora2pg-21.1]$
Permission denied
即使我以sudo
. 我錯過了什麼?
我的錯,我需要
sudo make && sudo make install
讓它工作。