10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

openssl のビルドに10分ほど手こずったので備忘録

Posted at

openssl のビルドで10分ほど手こずったので備忘録

  • もってくる
$ wget https://www.openssl.org/source/openssl-1.0.1g.tar.gz --no-check-certificate
$ tar xvf openssl-1.0.1g.tar.gz
$ cd openssl-1.0.1g/
  • 何か、エラー出るのでオプション付けてmakeする
  • make コマンドには depend 付ける
$ ./config no-shared no-idea no-mdc2 no-rc5 zlib enable-tlsext no-ssl2
$ make depend
$ sudo make install
  • ver確認
$ openssl version -a
  • ビルドしたのが /usr/local/ssl にいるせいなので、リネームしてシンボリックリンク貼る
$ /usr/local/ssl/bin/openssl version -a
$ sudo mv /usr/bin/openssl /usr/bin/openssl.bak
$ sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
  • 改めて ver 確認
$ openssl version -a
OpenSSL 1.0.1g 7 Apr 2014
built on: Tue Apr  8 16:14:09 JST 2014
platform: linux-x86_64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)
compiler: gcc -DZLIB -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -DTERMIO -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/local/ssl"
  • 手こずった理由
  • オプション付けないとダメって分かって./configした
  • make cleanするの忘れてた
  • あたしって・・ホント情弱

環境

$ cat /etc/debian_version
7.1
10
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?