2011/12/06(Tue)
# pecl install xdebug
# mkdir /var/log/xdebug
# chmod 777 /var/log/xdebug
# vi /usr/local/lib/php.ini
(下記を追加)
extension=xdebug.so
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/var/log/xdebug"
# /usr/local/apache/bin/apachectl graceful
# mkdir /var/log/xdebug
# chmod 777 /var/log/xdebug
# vi /usr/local/lib/php.ini
(下記を追加)
extension=xdebug.so
xdebug.profiler_enable = 1
xdebug.profiler_output_dir = "/var/log/xdebug"
# /usr/local/apache/bin/apachectl graceful
2011/12/06(Tue)
●必要コマンド、ツールのインストール
# yum -y install dos2unix automake* libtool* gcc-c++ compat-gcc-32 compat-gcc-34 nasm libogg
●faacのインストール
# cd /usr/local/src
# tar -jxvf faac-1.28.tar.bz2
# cd faac-1.28
# dos2unix Makefile.am bootstrap configure.in
# ./bootstrap
# ./configure --prefix=/usr
# vi common/mp4v2/mpeg4ip.h
(下記のようにコメントアウト)
/*
#ifdef __cplusplus
extern “C” {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
*/
# make
# make install
# /sbin/ldconfig
●faadのインストール
# cd /usr/local/src
# tar -jxvf faad2-2.7.tar.bz2
# cd faad2-2.7
# sh bootstrap
# ./configure
(Cent5.5 64bitでは # ./configure)
(compat-gcc-34環境の場合は # ./configure CC=gcc34)
(compat-gcc-32環境の場合は # ./configure CC=gcc32)
# make
# make install
# /sbin/ldconfig
●opencore-amrのインストール
# cd /usr/local/src
# wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
# tar -zxvf opencore-amr-0.1.2.tar.gz
# cd opencore-amr-0.1.2
# ./configure
# make
# make install
●mp3lameのインストール
# cd /usr/local/src
# tar -zxvf lame-3.98.4.tar.gz
# cd lame-3.98.4
# ./configure
# make
# make install
●amrnbのインストール
# cd /usr/local/src
# tar -jxvf amrnb-7.0.0.2.tar.bz2
# cd amrnb-7.0.0.2
# ./configure
# make
# make install
●amrwbのインストール
# cd /usr/local/src
# tar -jxvf amrwb-7.0.0.4.tar.bz2
# cd amrwb-7.0.0.4
# ./configure
# make
# make install
●yasmのインストール
# cd /usr/local/src
# tar -zxvf yasm-1.1.0.tar.gz
# cd yasm-1.1.0
# ./configure --prefix=/usr
# make
# make install
●x264コーデックのインストール
# cd /usr/local/src
# tar -jxvf x264-snapshot-20110920-2245.tar.bz2
# cd x264-snapshot-20110920-2245
# ./configure --enable-pthread --enable-shared
# make
# make install
●xvidコーデックのインストール
# cd /usr/local/src
# tar -zxvf xvidcore-1.3.2.tar.gz
# cd xvidcore/build/generic
# ./configure
# make
# make install
●liboggのインストール
# cd /usr/local/src
# tar -zxvf libogg-1.3.0.tar.gz
# cd libogg-1.3.0
# ./configure --prefix=/usr
# make
# make install
●libvorbisのインストール
# cd /usr/local/src
# tar -jxvf libvorbis-1.3.2.tar.bz2
# cd libvorbis-1.3.2
# ./configure --prefix=/usr
# make
# make install
●libtheoraのインストール
# cd /usr/local/src
# tar -jxvf libtheora-1.1.1.tar.bz2
# cd libtheora-1.1.1
# ./configure --prefix=/usr
# make
# make install
●gsmのインストール
# cd /usr/local/src
# tar -zxvf gsm-1.0.13.tar.gz
# cd gsm-1.0-pl13
# mkdir /usr/local/include/gsm
# mkdir -p /usr/local/man/man3
# vi Makefile
(下記のように変更)
74行目 INSTALL_ROOT =→INSTALL_ROOT = /usr/local
83行目 GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc→GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include/gsm
CFLAGS = $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) $(LTP_CUT) \
$(WAV49) $(CCINC) -I$(INC) -fPIC ←CFLAGSに-fPICを追加する。
# make(エラーが出ても無視)
# cp lib/libgsm.a /usr/local/lib/
# cp lib/libgsm.a /usr/lib/
# cp inc/gsm.h /usr/local/include/
# cp inc/gsm.h /usr/include/
# make install(エラーが出ても無視)
●OpenJPEGのインストール
# cd /usr/local/src
# wget http://openjpeg.googlecode.com/files/openjpeg_v1_4_sources_r697.tgz
# tar -zxvf openjpeg_v1_4_sources_r697.tgz
# cd openjpeg_v1_4_sources_r697
# ./configure
# make
# make install
●libnutのインストール
# cd /usr/local/src
# tar -jxvf libnut-672.tar.bz2
# cd libnut-672
# vi libnut/demuxer.c
(下記のように変更)
16行目
修正前) return ftello(priv);
修正後) return ftell(priv);
# vi config.mak
(下記を適当なところに追加)
CFLAGS += -fPIC
# make
# make PREFIX=/usr install
●liba52decのインストール
# cd /usr/local/src
# tar -zxvf a52dec-0.7.4.tar.gz
# cd a52dec-0.7.4
# ./configure
# make
# make install
●WebMのインストール
# cd /usr/local/src
# wget http://webm.googlecode.com/files/libvpx-v0.9.7-p1.tar.bz2
# tar -jxvf libvpx-v0.9.7-p1.tar.bz2
# cd libvpx-v0.9.7-p1
# ./configure --target=x86_64-linux-gcc --enable-vp8 --enable-shared --disable-examples
# make
# make install
●ffmpegのインストール
# cd /usr/local/src
# tar -jxvf ffmpeg-0.8.3.tar.bz2
# cd ffmpeg-0.8.3
≪ffmpeg-0.8.3の場合≫
# ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --disable-debug --extra-libs="-la52" --enable-swscale --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
≪ffmpeg-0.6.3の場合≫
# ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --disable-debug --extra-libs="-la52" --enable-swscale --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
≪ffmpeg-0.5.3の場合≫
# ./configure --cc=gcc34 --extra-libs="-la52" --enable-swscale --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libamr_wb --enable-libamr_nb --disable-ffplay --disable-ffserver --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libtheora --enable-libgsm --enable-pthreads --enable-nonfree --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
# make
# make install
# vi /etc/ld.so.conf.d/ffmpeg.conf
(新規ファイル。下記のように編集)
/usr/local/lib
# /sbin/ldconfig
≪動作確認≫
# ffmpeg
# yum -y install dos2unix automake* libtool* gcc-c++ compat-gcc-32 compat-gcc-34 nasm libogg
●faacのインストール
# cd /usr/local/src
# tar -jxvf faac-1.28.tar.bz2
# cd faac-1.28
# dos2unix Makefile.am bootstrap configure.in
# ./bootstrap
# ./configure --prefix=/usr
# vi common/mp4v2/mpeg4ip.h
(下記のようにコメントアウト)
/*
#ifdef __cplusplus
extern “C” {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif
*/
# make
# make install
# /sbin/ldconfig
●faadのインストール
# cd /usr/local/src
# tar -jxvf faad2-2.7.tar.bz2
# cd faad2-2.7
# sh bootstrap
# ./configure
(Cent5.5 64bitでは # ./configure)
(compat-gcc-34環境の場合は # ./configure CC=gcc34)
(compat-gcc-32環境の場合は # ./configure CC=gcc32)
# make
# make install
# /sbin/ldconfig
●opencore-amrのインストール
# cd /usr/local/src
# wget http://downloads.sourceforge.net/project/opencore-amr/opencore-amr/0.1.2/opencore-amr-0.1.2.tar.gz
# tar -zxvf opencore-amr-0.1.2.tar.gz
# cd opencore-amr-0.1.2
# ./configure
# make
# make install
●mp3lameのインストール
# cd /usr/local/src
# tar -zxvf lame-3.98.4.tar.gz
# cd lame-3.98.4
# ./configure
# make
# make install
●amrnbのインストール
# cd /usr/local/src
# tar -jxvf amrnb-7.0.0.2.tar.bz2
# cd amrnb-7.0.0.2
# ./configure
# make
# make install
●amrwbのインストール
# cd /usr/local/src
# tar -jxvf amrwb-7.0.0.4.tar.bz2
# cd amrwb-7.0.0.4
# ./configure
# make
# make install
●yasmのインストール
# cd /usr/local/src
# tar -zxvf yasm-1.1.0.tar.gz
# cd yasm-1.1.0
# ./configure --prefix=/usr
# make
# make install
●x264コーデックのインストール
# cd /usr/local/src
# tar -jxvf x264-snapshot-20110920-2245.tar.bz2
# cd x264-snapshot-20110920-2245
# ./configure --enable-pthread --enable-shared
# make
# make install
●xvidコーデックのインストール
# cd /usr/local/src
# tar -zxvf xvidcore-1.3.2.tar.gz
# cd xvidcore/build/generic
# ./configure
# make
# make install
●liboggのインストール
# cd /usr/local/src
# tar -zxvf libogg-1.3.0.tar.gz
# cd libogg-1.3.0
# ./configure --prefix=/usr
# make
# make install
●libvorbisのインストール
# cd /usr/local/src
# tar -jxvf libvorbis-1.3.2.tar.bz2
# cd libvorbis-1.3.2
# ./configure --prefix=/usr
# make
# make install
●libtheoraのインストール
# cd /usr/local/src
# tar -jxvf libtheora-1.1.1.tar.bz2
# cd libtheora-1.1.1
# ./configure --prefix=/usr
# make
# make install
●gsmのインストール
# cd /usr/local/src
# tar -zxvf gsm-1.0.13.tar.gz
# cd gsm-1.0-pl13
# mkdir /usr/local/include/gsm
# mkdir -p /usr/local/man/man3
# vi Makefile
(下記のように変更)
74行目 INSTALL_ROOT =→INSTALL_ROOT = /usr/local
83行目 GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/inc→GSM_INSTALL_INC = $(GSM_INSTALL_ROOT)/include/gsm
CFLAGS = $(CCFLAGS) $(SASR) $(DEBUG) $(MULHACK) $(FAST) $(LTP_CUT) \
$(WAV49) $(CCINC) -I$(INC) -fPIC ←CFLAGSに-fPICを追加する。
# make(エラーが出ても無視)
# cp lib/libgsm.a /usr/local/lib/
# cp lib/libgsm.a /usr/lib/
# cp inc/gsm.h /usr/local/include/
# cp inc/gsm.h /usr/include/
# make install(エラーが出ても無視)
●OpenJPEGのインストール
# cd /usr/local/src
# wget http://openjpeg.googlecode.com/files/openjpeg_v1_4_sources_r697.tgz
# tar -zxvf openjpeg_v1_4_sources_r697.tgz
# cd openjpeg_v1_4_sources_r697
# ./configure
# make
# make install
●libnutのインストール
# cd /usr/local/src
# tar -jxvf libnut-672.tar.bz2
# cd libnut-672
# vi libnut/demuxer.c
(下記のように変更)
16行目
修正前) return ftello(priv);
修正後) return ftell(priv);
# vi config.mak
(下記を適当なところに追加)
CFLAGS += -fPIC
# make
# make PREFIX=/usr install
●liba52decのインストール
# cd /usr/local/src
# tar -zxvf a52dec-0.7.4.tar.gz
# cd a52dec-0.7.4
# ./configure
# make
# make install
●WebMのインストール
# cd /usr/local/src
# wget http://webm.googlecode.com/files/libvpx-v0.9.7-p1.tar.bz2
# tar -jxvf libvpx-v0.9.7-p1.tar.bz2
# cd libvpx-v0.9.7-p1
# ./configure --target=x86_64-linux-gcc --enable-vp8 --enable-shared --disable-examples
# make
# make install
●ffmpegのインストール
# cd /usr/local/src
# tar -jxvf ffmpeg-0.8.3.tar.bz2
# cd ffmpeg-0.8.3
≪ffmpeg-0.8.3の場合≫
# ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --disable-debug --extra-libs="-la52" --enable-swscale --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
≪ffmpeg-0.6.3の場合≫
# ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-ffserver --enable-pthreads --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --disable-debug --extra-libs="-la52" --enable-swscale --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
≪ffmpeg-0.5.3の場合≫
# ./configure --cc=gcc34 --extra-libs="-la52" --enable-swscale --enable-gpl --enable-libmp3lame --enable-libfaac --enable-libfaad --enable-libamr_wb --enable-libamr_nb --disable-ffplay --disable-ffserver --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libtheora --enable-libgsm --enable-pthreads --enable-nonfree --disable-demuxer=v4l --disable-demuxer=v4l2 --enable-libnut
# make
# make install
# vi /etc/ld.so.conf.d/ffmpeg.conf
(新規ファイル。下記のように編集)
/usr/local/lib
# /sbin/ldconfig
≪動作確認≫
# ffmpeg
2011/12/06(Tue)
# mount -n -o remount, rw /
# vi /etc/fstab
# vi /etc/fstab
2011/12/06(Tue)
# cd /usr/local/src
# tar -zxvf qpopper4.0.19.tar.gz
# cd qpopper4.0.19
# ./configure --enable-specialauth
# make
# make install
# vi /etc/xinetd.d/pop3
service pop3
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/popper
server_args = -s -R
}
# /etc/rc.d/init.d/xinetd restart
# vi /etc/hosts.allow
(以下の行を追加)
popper : ALL
# tar -zxvf qpopper4.0.19.tar.gz
# cd qpopper4.0.19
# ./configure --enable-specialauth
# make
# make install
# vi /etc/xinetd.d/pop3
service pop3
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/local/sbin/popper
server_args = -s -R
}
# /etc/rc.d/init.d/xinetd restart
# vi /etc/hosts.allow
(以下の行を追加)
popper : ALL
2011/12/06(Tue)
キューにあるメールを表示
# postqueue -p
キューにあるメールを強制配信
# postqueue -f
停滞キューの排出
# postfix flush
キューを個別削除
# postsuper -d <キューID>
キューを全て削除
# postsuper -d ALL
# postqueue -p
キューにあるメールを強制配信
# postqueue -f
停滞キューの排出
# postfix flush
キューを個別削除
# postsuper -d <キューID>
キューを全て削除
# postsuper -d ALL
