|
我想自定義打造一個專用的郵件服務器(postfix+Mysql+Apache+PHP+SASL+IMAP+DROP+Clamav+Amavisd),我先完成了LFS的創建,運行OK,然後安裝了openssl+SSH,遠程連入可以了,但是在安裝xpm-3.4k時需要用到xmkmf,在參考BLFS後安裝了imake,安裝完成後輸入xmkmf -a 後出現以下錯誤碼
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/local/lib/X11/config
Imakefile.c:34: error: Imake.tmpl: No such file or directory
imake: Exit code 1.
Stop.
不知是什麽問題,我有重新編譯imake,好像也不行,也查過/usr/loal/lib/這個路徑,沒有X11/config這個文件,也找不到Imakefile.c這個文件,不知怎麽解決。
詳細安裝過程如下:(省略安裝Apache及mysql一節)
tar zxvf fontconfig-2.4.0.tar.gz
cd fontconfig-2.4.0
./configure --prefix=/usr/local/fontconfig --with-freetype-config=/usr/local/freetype/bin/freetype-config
echo "/usr/local/fontconfig/lib/" >> /etc/ld.so.conf
ldconfig -v
export XORG_PREFIX="/usr/X11"
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc --mandir=$XORG_PREFIX/share/man --localstatedir=/var"
tar xvf pkg-config-0.20.tar.gz
cd pkg-config-0.20
./configure --prefix=/usr
make
make install
tar xvf xorg-cf-files-1.0.2.tar.gz
cd xorg-cf-files-1.0.2
sed -i "s@/usr/X11R6@$XORG_PREFIX@" X11.tmpl &&
./configure $XORG_CONFIG --with-config-dir=$XORG_PREFIX/lib/X11/config
make install
tar xvf applewmproto-1.0.3.tar.gz
cd applewmproto-1.0.3
./configure $XORG_CONFIG
make install
tar xvf bigreqsproto-1.0.2.tar.gz
cd bigreqsproto-1.0.2
./configure $XORG_CONFIG
make install
tar xvf compositeproto-0.4.tar.gz
cd compositeproto-0.4
./configure $XORG_CONFIG
make install
tar xvf damageproto-1.1.0.tar.gz
cd damageproto-1.1.0
./configure $XORG_CONFIG
make install
tar xvf dmxproto-2.2.2.tar.gz
cd dmxproto-2.2.2
./configure $XORG_CONFIG &&
make install
tar xvf dri2proto-1.1.tar.gz
cd dri2proto-1.1
./configure $XORG_CONFIG &&
make install
tar xvf evieext-1.0.2.tar.gz
cd evieext-1.0.2
./configure $XORG_CONFIG &&
make install
tar xvf fixesproto-4.0.tar.gz
cd fixesproto-4.0
./configure $XORG_CONFIG &&
make install
tar xvf fontcacheproto-0.1.2.tar.gz
cd fontcacheproto-0.1.2
./configure $XORG_CONFIG &&
make install
tar xvf fontsproto-2.0.2.tar.gz
cd fontsproto-2.0.2
./configure $XORG_CONFIG &&
make install
tar xvf glproto-1.4.9.tar.gz
cd glproto-1.4.9
./configure $XORG_CONFIG &&
make install
tar xvf inputproto-1.4.tar.gz
cd inputproto-1.4
./configure $XORG_CONFIG &&
make install
tar xvf kbproto-1.0.3.tar.gz
cd kbproto-1.0.3
./configure $XORG_CONFIG &&
make install
tar xvf randrproto-1.2.1.tar.gz
cd randrproto-1.2.1
./configure $XORG_CONFIG &&
make install
tar xvf renderproto-0.9.3.tar.gz
cd renderproto-0.9.3
./configure $XORG_CONFIG &&
make install
tar xvf resourceproto-1.0.2.tar.gz
cd resourceproto-1.0.2
./configure $XORG_CONFIG &&
make install
tar xvf scrnsaverproto-1.1.0.tar.gz
cd scrnsaverproto-1.1.0
./configure $XORG_CONFIG &&
make install
tar xvf trapproto-3.4.3.tar.gz
cd trapproto-3.4.3
./configure $XORG_CONFIG &&
make install
tar xvf videoproto-2.2.2.tar.gz
cd videoproto-2.2.2
./configure $XORG_CONFIG &&
make install
tar xvf windowswmproto-1.0.3.tar.gz
cd windowswmproto-1.0.3
./configure $XORG_CONFIG &&
make install
tar xvf xcmiscproto-1.1.2.tar.gz
cd xcmiscproto-1.1.2
./configure $XORG_CONFIG &&
make install
tar xvf xextproto-7.0.2.tar.gz
cd xextproto-7.0.2
./configure $XORG_CONFIG &&
make install
tar xvf xf86bigfontproto-1.1.2.tar.gz
cd xf86bigfontproto-1.1.2
./configure $XORG_CONFIG &&
make install
tar xvf xf86driproto-2.0.4.tar.gz
cd xf86driproto-2.0.4
./configure $XORG_CONFIG &&
make install
tar xvf xf86rushproto-1.1.2.tar.gz
cd xf86rushproto-1.1.2
./configure $XORG_CONFIG &&
make install
tar xvf xf86vidmodeproto-2.2.2.tar.gz
cd xf86vidmodeproto-2.2.2
./configure $XORG_CONFIG &&
make install
tar xvf xineramaproto-1.1.2.tar.gz
cd xineramaproto-1.1.2
./configure $XORG_CONFIG &&
make install
tar xvf xproto-7.0.12.tar.gz
cd xproto-7.0.12
./configure $XORG_CONFIG &&
make install
tar xvf xproxymanagementprotocol-1.0.2.tar.gz
cd xproxymanagementprotocol-1.0.2
./configure $XORG_CONFIG &&
make install
PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig/
export PKG_CONFIG_PATH
tar xvf imake-1.0.2.tar.gz
cd imake-1.0.2
./configure
make
make install
tar xvf xpm-3.4k.tar.gz
cd xpm-3.4k |
|