我在使用msys / mingw64构建openssl-1.0.1f时遇到错误:
installing libcrypto.a
/bin/sh: line 5: mingw64bin/ranlib.exe: No such file or directory
installing libssl.a
/bin/sh: line 5: mingw64bin/ranlib.exe: No such file or directory
make: *** [install_sw] Error 1
当我跑步时。配置我得到:
ENGINES_OBJ =
PROCESSOR =
RANLIB =\mingw64\bin/ranlib.exe
ARFLAGS =
PERL =perl
Soooooo似乎很容易我只需要将反斜杠更改为斜杠
我打开。配置并搜索Ranlib,我得到:
my $ranlib = $ENV{'RANLIB'} || $fields[$idx_ranlib];
更进一步:
\$\(CROSS_COMPILE\)$cc/;
s/^AR=\s*/AR= \$\(CROSS_COMPILE\)/;
s/^NM=\s*/NM= \$\(CROSS_COMPILE\)/;
s/^RANLIB=\s*/RANLIB= \$\(CROSS_COMPILE\)/;
Oookkeeee为什么不改变\ s * / RANLIB = \ $(CROSS_COMPILE)/;到\ s * / RANLIB = / $ /(CROSS_COMPILE)/;
Scalar found where operator expected at ./Configure line 1619, near "s/^RANLIB=\s*/RANLIB= /$/"
Backslash found where operator expected at ./Configure line 1619, near "CROSS_COMPILE\"
syntax error at ./Configure line 1619, near "s/^RANLIB=\s*/RANLIB= /$/"
Execution of ./Configure aborted due to compilation errors.
我的感受:
http://i0.kym-cdn.com/photos/images/original/000/234/765/b7e.jpg
对于那些仍在疑惑的人,我是初学者。
Soooo我的问题:
ranlib路径是真正的问题吗?如果是这样,我怎么能让msys看到斜杠而不是反斜杠?如果你知道答案,你认为你可以使用简洁明了的解释吗?
答案 0 :(得分:0)
我怀疑你是在尝试不是从MSYS控制台构建OpenSSL。
您应该从MSYS控制台运行这些命令(启动它,使用C:\msys64\msys.bat
):
perl Configure mingw64 --prefix=/wherever-you-need-to-put-it
make
make test
make install
P.S。 MSYS应配置为使用MinGW:您应该使用这样的行创建文件C:\ msys64 \ etc \ fstab(如果您的计算机上的第一部分不同,请调整它)。
c:/mingw64 /mingw