LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1317|回复: 1

BLFS編譯xpm-3.4k出錯

[复制链接]
发表于 2008-5-12 15:26:35 | 显示全部楼层 |阅读模式
  我想自定義打造一個專用的郵件服務器(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
 楼主| 发表于 2008-5-15 11:29:45 | 显示全部楼层
我现在已经搞定这个问题了,使用rpm2targz这个工具将fontconfig-devel-2.2.3-7.i386.rpm,freetype-devel-2.1.9-1.i386.rpm,xorg-x11-devel-6.8.1-23.EL.i386.rpm这三个文件转换成gz文件格式,解压后按其解压出来的路径放入相应的路径(注意不要造成文件覆盖),然后按BLFS上的提示指定相应的参数,然后按上面的操作就可以进行了。出现的错误一般都只是路径问题,很容易就搞定,谢谢大家关注。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表