OPENSSL1.1交叉编译编译异常处理

交叉编译

#!/bin/bash

./config no-asm shard \
	--prefix=/usr/local/aarch64-none \
	--cross-compile-prefix=aarch64-linux-gnu-

  

openssl 编译异常报以下错误

Operating system: x86_64-whatever-linux2
"glob" is not exported by the File::Glob module
Can't continue after import errors at ./Configure line 18.
BEGIN failed--compilation aborted at ./Configure line 18.
"glob" is not exported by the File::Glob module
Can't continue after import errors at ./Configure line 18.
BEGIN failed--compilation aborted at ./Configure line 18.
This system (linux-x86_64) is not supported. See file INSTALL for details

这是由于Perl package导致,修改Configure文件

use if $^O ne "VMS", 'File::Glob' => qw/glob/;

修改为

use if $^O ne "VMS", 'File::Glob' => qw/:glob/;

  

posted @ 2024-01-29 17:23  流逝的轻风  阅读(801)  评论(0)    收藏  举报