# cd /usr/local/src/ruby-2.1.2/ext/zlib/
# ruby extconf.rb
checking for deflateReset() in -lz... yes
checking for zlib.h... yes
checking for crc32_combine() in zlib.h... yes
checking for adler32_combine() in zlib.h... yes
checking for z_crc_t in zlib.h... no
creating Makefile
# make install
compiling zlib.c
linking shared-object zlib.so
/usr/bin/install -c -m 0755 zlib.so /usr/local/lib/ruby/site_ruby/2.1.0/x86_64-linux
installing default zlib libraries
改めてインストール
123
# gem install unicorn
ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
さっきのエラーはなくなったけど別のエラーが発生しました…
opensslをインストールしないといけないらしいのでインストールします
opensslというディレクトリに移動して実行
12345678910
# cd /usr/local/src/ruby-2.1.2/ext/openssl
# ruby extconf.rb
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
checking for openssl/ssl.h... no
# make
make: *** `ossl.o' に必要なターゲット `/thread_native.h' を make するルールがありません. 中止.