フリーソフトウェアのコンパイル

コンパイル環境

マシン

コンパイルはすべて, 以下の環境変数を設定して行う.

(LD_LIBRARY_PATH, LD_RUN_PATH の値は結果的に

LD_RUN_PATH=/usr/local/lib:/usr/local/ssl/lib
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb

となってる.)

zlib-1.2.1 -> 1.2.3

% ./configure --shared
% make 
# make install
# mkdir /opt/local/man/man3
# cp zlib.3 /opt/local/man/man3

openssl-0.9.7c -> 0.9.7i

% ./config shared zlib-dynamic
% make
% make test
# make install

apache(httpd-2.0.48 -> 2.0.55)

コンパイルとインストール

% ./configure --enable-so --enable-mods-shared=all \
  --enable-ssl=shared --with-mpm=prefork --with-z=/usr/local \
  --with-ssl
% make
# make install

apache ユーザ作成

# groupadd -g 80 apache
# useradd -d /dev/null -u 80 -g apache -s /bin/false apache

SSL 自己認証キー作成

# /usr/local/ssl/bin/openssl  genrsa -des3 1024 > ssl.key
# /usr/local/ssl/bin/openssl req -new -key ssl.key -out ssl.csr
# /usr/local/ssl/bin/openssl req -new -key ssl.key -x509 -days 365 -out ssl.crt
# /usr/local/ssl/bin/openssl rsa -in ssl.key -out ssl.key.nopass

# mkdir /usr/local/apache2/conf/ssl.key
# mkdir /usr/local/apache2/conf/ssl.crt
# cp ssl.key /usr/local/apache2/conf/ssl.key/
# cp ssl.key.nopass /usr/local/apache2/conf/ssl.key/
# chmod 400 /usr/local/apache2/conf/ssl.key/*
# cp ssl.crt /opt/apache/conf/ssl.crt/

PHP

% ./configure  --with-apxs2=/usr/local/apache2/bin/apxs \
 --enable-mbstring --enable-mbregex \
 --with-openssl=/usr/local/ssl --with-zlib=/usr/local --with-xml
% make
# make install

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2006-03-06 (月) 14:23:27