2014-01-15 60 views
0

我得到一個錯誤的建築的OpenSSL 1.0.1f與MSYS/mingw64:的OpenSSL 1.0.1f MSYS/mingw64構建失敗

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 

當我運行.Configure我得到:

ENGINES_OBJ = 
PROCESSOR  = 
RANLIB  =\mingw64\bin/ranlib.exe 
ARFLAGS  = 
PERL   =perl 

Soooooo似乎很容易我只需要更改反斜槓斜槓

我打開.Configure和搜索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 path是真正的問題嗎?如果是這樣,我怎麼讓msys看到斜槓而不是反斜槓?如果你知道答案,你認爲你可以使用簡明扼要的解釋嗎?

回答

0

我懷疑你是不是試圖從MSYS控制檯建立OpenSSL。

您應該運行從MSYS控制檯這些命令(啓動它,使用C:\msys64\msys.bat):

perl Configure mingw64 --prefix=/wherever-you-need-to-put-it 
make 
make test 
make install 

附: MSYS應該配置爲使用MinGW:你應該用這樣的一行創建一個文件C:\ msys64 \ etc \ fstab(如果你的機器不同,調整第一部分)。

c:/mingw64  /mingw 
+0

我試圖從Msys控制檯內部構建。事實證明,我安裝了msys perl並從我的機器上刪除了草莓perl。它完成了這項工作! Ssooo我想這只是一個配置thingy ... –