我在运行 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
。我缺少什么?
答案1
我的错,我需要sudo make && sudo make install
让它发挥作用。