"/bin/sh:C:Perl64binperl.exe:找不到命令"在Windows 10上 [英] "/bin/sh: C:Perl64binperl.exe: command not found" on Windows 10

查看:373
本文介绍了"/bin/sh:C:Perl64binperl.exe:找不到命令"在Windows 10上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Code :: blocks和Mingw在Windows 10 64位计算机上构建OpenSSL.我已经安装了ActivePerl和MSYS.我能够执行

I am trying to build OpenSSL on Windows 10 64 bit machine using Code::blocks and Mingw. I already installed ActivePerl and MSYS. I am able to execute

perl Configure mingw

没有错误.问题出在执行MAKE命令上.无论我使用的是Windows命令提示符还是MSYS,我总是会收到以下错误消息

without errors. The problems is on executing the MAKE command. Regardless I am using the windows command prompt or MSYS, I always obtain the following error

C:\DiscoD\openssl>make CC=i586-mingw32msvc-gcc RANLIB=i586-mingw32msvc-ranlib
C:\Perl64\bin\perl.exe "-I." -Mconfigdata "util\dofile.pl" \
            "-oMakefile" crypto\include\internal\bn_conf.h.in > crypto\include\internal\bn_conf.h
/bin/sh: C:Perl64binperl.exe: command not found
make: *** [crypto\include\internal\bn_conf.h] Error 127

似乎从Perl.exe路径中删除了后缀,因此脚本无法找到C:/Perl64/bin/perl.exe.怎么解决?谢谢

It seems the backslahes are removed from Perl.exe path, so the script cannot find C:/Perl64/bin/perl.exe. How to solve? Thanks

推荐答案

您应该从OpenSSL发行版中看到以下建议:

You should see this recommendation from the OpenSSL distribution:

https://github.com/openssl/openssl/blob /master/NOTES.PERL#L30

关于Windows上的Perl的注意事项

有许多构建目标可以视为"Windows". 确实,有针对VisualStudio C的VC- *配置,以及 MinGW和Cygwin.关键建议是使用匹配" Perl, 一种与构建环境匹配的文件.例如,如果您要构建 在Cygwin上,请确保使用Cygwin软件包管理器来安装Perl. 对于MSYS构建,请使用MSYS提供的Perl.对于VC- *版本,我们 推荐ActiveState Perl,可从以下网站获得 http://www.activestate.com/ActivePerl .

Notes on Perl on Windows

There are a number of build targets that can be viewed as "Windows". Indeed, there are VC-* configs targeting VisualStudio C, as well as MinGW and Cygwin. The key recommendation is to use "matching" Perl, one that matches build environment. For example, if you will build on Cygwin be sure to use the Cygwin package manager to install Perl. For MSYS builds use the MSYS provided Perl. For VC-* builds we recommend ActiveState Perl, available from http://www.activestate.com/ActivePerl.

在执行MSYS/MinGW构建时,应确保已安装MSYS perl(并且在路径上优先于ActiveState版本).然后再次尝试构建.

As you are doing an MSYS/MinGW build you should ensure that MSYS perl is installed (and on your path in preference to the ActiveState version). Then try the build again.

这篇关于"/bin/sh:C:Perl64binperl.exe:找不到命令"在Windows 10上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆