openssl-1.0.1e Debian でコンパイル済み

openssl-1.0.1e Debian でコンパイル済み

私はコンパイル中ですOpenSSL-1.0.1eDebian Lenny(armv4 アーキテクチャ)で。私は以下の指示に従いました。http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.htmlソースコードをコンパイルします。正常makemake test完了しました。ファイルをコンパイルする方法を知りたいです。

する必要がありますかmake install、それとも指示に従って実行する必要がありますか?

make MANDIR=/usr/share/man MANSUFFIX=ssl install &&
install -dv -m755 /usr/share/doc/openssl-1.0.1e  &&
cp -vfr doc/*     /usr/share/doc/openssl-1.0.1e

編集:両方の方法を実行しましたが、まだ古いバージョンのopensslを使用しています。新しいバイナリを古いバイナリに置き換えるには、バイナリをopensslコピーして特定のディレクトリ(たとえば)に貼り付ける必要がありますか?/usr/binプログラムをどのように更新しますか?

編集2:make test出力:すべてのテストが成功しました。

make[1]: Leaving directory `/home/openssl-1.0.1e/test'
OPENSSL_CONF=apps/openssl.cnf util/opensslwrap.sh version -a
OpenSSL 1.0.1e 11 Feb 2013
built on: Mon Jun 10 05:08:05 UTC 2013
platform: dist
options:  bn(32,32) rc4(ptr,int) des(idx,cisc,2,long) idea(int) blowfish(idx) 
compiler: cc -O
OPENSSLDIR: "/usr/local/ssl"

make install出力:

make[1]: Leaving directory `/home/openssl-1.0.1e/engines'
making install in apps...
make[1]: Entering directory `/home/openssl-1.0.1e/apps'
installing openssl
installing CA.sh
installing CA.pl
installing tsget
make[1]: Leaving directory `/home/openssl-1.0.1e/apps'
making install in test...
make[1]: Entering directory `/home/openssl-1.0.1e/test'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/openssl-1.0.1e/test'
making install in tools...
make[1]: Entering directory `/home/openssl-1.0.1e/tools'
make[1]: Leaving directory `/home/openssl-1.0.1e/tools'
installing libcrypto.a
installing libssl.a
cp libcrypto.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libcrypto.pc
cp libssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/libssl.pc
cp openssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig/openssl.pc

ベストアンサー1

何が起こるか:openssl debianパッケージが配置され、/usr/bin, /usr/lib, /usr/share/manコンパイルされたバージョンは完全に内部にあります/usr/local/{bin,share,lib}。シェルは/usr/binまず(パッケージ内で)バイナリを見つけて実行します。

OpenSSLを設定するときにそれを使用する必要があり./config --prefix=/usrますが、これはaptを介してインストールされたバイナリを上書きし、システムを損傷する可能性があります。より良い、より正確なコンパイル方法は、以下を使用することです。Debian ソースパッケージ

安定版(http://packages.debian.org/source/wheezy/openssl)?

おすすめ記事