LinuxSir.cn,穿越时空的Linuxsir!

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

装Xorg6.9.1遇到的问题

[复制链接]
发表于 2009-9-16 16:27:40 | 显示全部楼层 |阅读模式
各位达人:我是按照青铜镜仁兄的安装X的步骤在LFS下作X的,但是做到第六步的时候出现了一下问题:

code:              ( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
problem:   
                 env: perl: No such file or directory
                 make[5]: *** [xf86DefModeSet.c] Error 127
                 make[5]: Leaving directory `/sources/xcbuild/programs/Xserver/hw/xfree86/common'
                 make[4]: *** [includes] Error 2
                 make[4]: Leaving directory `/sources/xcbuild/programs/Xserver/hw/xfree86'
                 make[3]: *** [includes] Error 2
                 make[3]: Leaving directory `/sources/xcbuild/programs/Xserver'
                 make[2]: *** [includes] Error 2
                 make[2]: Leaving directory `/sources/xcbuild/programs'
                 make[1]: *** [includes] Error 2
                 make[1]: Leaving directory `/sources/xcbuild'
                 make: *** [World] Error 2

以下是青铜镜的安装方法:

06
Xorg-6.9.0
http://xorg.freedesktop.org/releases....0-src.tar.bz2
http://www.linuxfromscratch.org/patc...t_race-1.patch
http://www.linuxfromscratch.org/patc...curity-4.patch

0601Xorg-6.9.0 (特别说明,host.def是俺修改过的,建议使用原来的官方文件!)------------------------------------------------------------------------------------
#!/bin/sh
set -e

tar -jxvf X11R6.9.0-src.tar.bz2
cd xc
patch -Np1 -i ../xorg-6.9.0-luit_race-1.patch &&
patch -Np1 -i ../xorg-6.9.0-security-4.patch
sed -i 's@/usr/X11R6@</usr>@' programs/luit/parser.h
sed -i '/^SUBDIRS =/s/ etc$//' programs/Xserver/Xprint/Imakefile
pushd config/util &&
make -f Makefile.ini lndir
popd
mkdir ../xcbuild &&
cd ../xcbuild &&
../xc/config/util/lndir ../xc
cat > config/cf/host.def << "EOF"
/* Begin Xorg host.def file */

/* System Related Information. If you read and configure only one
* section then it should be this one. The Intel architecture defaults
* are set for a i686 and higher. If that happens, try
* building without the DefaultGcc2PpcOpt line. ***********/

/* #define DefaultGcc2i386Opt -O2 -fno-strength-reduce \
-fno-strict-aliasing -march=i686 */

#define HasFreetype2 YES
#define HasFontconfig YES
#define HasExpat YES
#define HasLibpng YES
#define HasZlib YES

/* Uncomment the following define if you'd like
* xdm to use Linux-PAM
#define HasPam YES
*/

/*
* Which drivers to build. When building a static server, each of
* these will be included in it. When building the loadable server
* each of these modules will be built.
*
#define XF86CardDrivers mga glint nv tga vesa vga \
XF86OSCardDrivers XF86ExtraCardDrivers
*/

/*
* Select the XInput devices you want by uncommenting this.
*
#define XInputDrivers mouse keyboard acecad calcomp citron \
digitaledge dmc dynapro elographics \
microtouch mutouch penmount spaceorb \
summa wacom void magictouch aiptek
*/

/* Most installs will only need this */

#define XInputDrivers mouse keyboard

/* Xterm is no longer built by default */
#define BuildXterm YES

/* Disable building Xprint server and clients until we get them figured
* out but build Xprint libraries to allow precompiled binaries such as
* Acrobat Reader to run.
*/

#define XprtServer NO
#define BuildXprintClients NO

/* Uncomment the following define if you would prefer to install X into
* /usr or change it to any other location that you prefer.
* The GL related defines disable compatibility symlinks (the links
* are not needed when X is installed in /usr).
#define ProjectRoot /usr
#define LinkGLToUsrInclude NO
#define LinkGLToUsrLib NO
*/

/* End Xorg host.def file */
EOF
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h *` &&
( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
make install &&
make install.man
ln -v -s ../X11R6/bin /usr/bin/X11 &&
ln -v -s ../X11R6/lib/X11 /usr/lib/X11 &&
ln -v -s ../X11R6/include/X11 /usr/include/X11
install -v -d -m755 /usr/share/fonts &&
ln -svn /usr/X11R6/lib/X11/fonts/TTF /usr/share/fonts/X11-TTF

cat >> /etc/ld.so.conf << "EOF" &&
/usr/X11R6/lib
EOF
ldconfig &&
cat >> /etc/profile << "EOF" &&
export PATH=$PATH:/usr/X11R6/bin
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/X11R6/lib/pkgconfig
EOF
/sbin/ldconfig &&
cd ~ &&
Xorg -configure
exit
------------------------------------------------------------------------------------

测试:
X -config ~/xorg.conf.new
按Ctrl+Alt+backspace退出
发表于 2009-9-16 19:21:03 | 显示全部楼层
今时今日就不要装 6.9 了,否则日後要换版相当麻烦,真接装 7.x 吧
回复 支持 反对

使用道具 举报

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

本版积分规则

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