我正在尝试将我的perl CGI应用程序(当前托管在CentOS6中)迁移到CentOS7。我已经快到尽头了,但是当我尝试重新启动httpd.service时,它无法在日志中显示以下内容。
Jun 23 11:29:55 localhost.localdomain httpd[73553]: /usr/sbin/httpd: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/DBD/Oracle/Oracle.so: undefined symbol: Perl_Istack_sp_ptr
我尝试使用“ cpanp -i DBI”更新DBI模块,降级为perl-5.10,“ yum update”。
我使用标准DBI模块通过perl脚本成功连接到数据库(MariaDB)。
[root@localhost ~]# systemctl restart httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-06-23 11:29:55 EDT; 3s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 73557 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 73553 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=127)
Main PID: 73553 (code=exited, status=127)
Jun 23 11:29:55 localhost.localdomain httpd[73553]: Using a hash as a reference is deprecated at /home/eprint/code/Pinnacle/Color.pm line 99.
Jun 23 11:29:55 localhost.localdomain httpd[73553]: defined(@array) is deprecated at /home/eprint/code/Pinnacle/Reportindex.pm line 662.
Jun 23 11:29:55 localhost.localdomain httpd[73553]: (Maybe you should just omit the defined()?)
Jun 23 11:29:55 localhost.localdomain httpd[73553]: /usr/sbin/httpd: symbol lookup error: /usr/lib64/perl5/vendor_perl/auto/DBD/Oracle/Oracle.so: undefined symbol: Perl_Istack_sp_ptr
Jun 23 11:29:55 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=127/n/a
Jun 23 11:29:55 localhost.localdomain kill[73557]: kill: cannot find process ""
Jun 23 11:29:55 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 23 11:29:55 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jun 23 11:29:55 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Jun 23 11:29:55 localhost.localdomain systemd[1]: httpd.service failed.
我不确定这里发生了什么。我期望服务器从那里开始。 请帮助