LinuxSir.cn,穿越时空的Linuxsir!

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

blfs+xorg的问题

[复制链接]
发表于 2005-7-14 01:27:22 | 显示全部楼层 |阅读模式
刚刚搞定lfs之后就想做blfs了
想法是:希望能够上网,有X系统,有多媒体
先做的是X系统,选择xorg。问题出在很后面
lfs是6.1的,blfs是6.0的。编译xorg的时候我没有按照blfs的顺序,也就是说我只按照xorg所需要的libpng和fontconfig,当然fontconfig所需要的东东我也有安装啦。
在ldconfig
cd ~之后的Xorg -configure出问题了。提示是找不到Xorg这个执行程序
去查看了下/usr/bin发现X11链接是非法的,即指向目标不存在。不知道是什么问题了,大家给点提示吧
发表于 2005-7-14 09:40:24 | 显示全部楼层
xorg还得安装呀!
不止是那些需要的东西。
xorg是一个软件包,还得进行编译安装。
你是不是只是安装xorg安装时所需要的前提条件,但是主要的东西xorg都还没有安装,这样当然是不行了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 10:41:27 | 显示全部楼层
斑竹啊斑竹,偶不是低智商了啦。有安装啊,就安装了之后却没有Xorg才觉得奇怪
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 12:49:07 | 显示全部楼层
还好我的lfs都有备份成tar,刚才重新试着安装了Xorg,发现下面的命令有些疑惑
ln -sf ../X11R6/bin /usr/bin/X11 &&
ln -sf ../X11R6/lib/X11 /usr/lib/X11 &&
ln -sf ../X11R6/include/X11 /usr/include/X11
此时是在xcbuild目录下的,其父目录中不可能存在X11R6目录啊?我看了它的安装过程,没有什么地方提到改变目录啊。
这是怎么回事呢?
回复 支持 反对

使用道具 举报

发表于 2005-7-14 18:14:45 | 显示全部楼层
这几个命令是准确的,没错。 ../ 这个只是相对 /usr/include/X11里边说的。

你运行一次就知道了。

会不会你 make 的时候出错了,maks install的时候就没装Xorg。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 18:31:02 | 显示全部楼层
55555555555555555555555总算有兄弟来回复了,我等的头发都白了。
我执行make的时候没有出错信息,但是make install的时候提示:install是最新的,然后就没有了
回复 支持 反对

使用道具 举报

发表于 2005-7-14 18:50:05 | 显示全部楼层
重新安装一次Xorg试试?。。我觉得是安装过程中有文件拷贝错位置了。


对了,是make World,不是单单make的。。。别弄错了:)。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 19:03:09 | 显示全部楼层
看看我的安装步骤会有问题吗?
解压Xorg的源码包(我下载的是单包,40多M)到/source/
进入生成的xc目录
sed -i '/^SUBDIRS =/s/ etc$//' programs/Xserver/Xprint/Imakefile

pushd config/util &&
make -f Makefile.ini lndir

cp lndir /usr/bin/

popd

mkdir ../xcbuild &&
cd ../xcbuild &&
lndir ../xc

生成host.def文件,我没有做任何修改
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.  Axp is for the Alpha architecture
* and Ppc is for the Power PC.  AMD64 is for the Opteron processor.
* Note that there have been reports that the Ppc optimization line
* causes segmentation faults during build.  If that happens, try
* building without the DefaultGcc2PpcOpt line.  ***********/

/* #define DefaultGcc2i386Opt -O2 -fno-strength-reduce \
                              -fno-strict-aliasing -march=i686 */
/* #define DefaultGccAMD64Opt -O2 -fno-strength-reduce \
                              -fno-strict-aliasing */
/* #define DefaultGcc2AxpOpt  -O2 -mcpu=ev6 */
/* #define DefaultGcc2PpcOpt  -O2 -mcpu=750 */

#define HasFreetype2            YES
#define HasFontconfig           YES
#define HasExpat                YES
#define HasLibpng               YES
#define HasZlib                 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 s3virge sis rendition \
                                neomagic i740 tdfx savage \
                                cirrus vmware tseng trident chips apm \
                                GlideDriver fbdev i128 \
                                ati AgpGartDrivers DevelDrivers ark \
                                cyrix siliconmotion 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

/* 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

/* 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完了,之后的make install就提示install最新
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 19:11:36 | 显示全部楼层
Post by 黯然销魂
重新安装一次Xorg试试?。。我觉得是安装过程中有文件拷贝错位置了。


对了,是make World,不是单单make的。。。别弄错了:)。

我在书上没有看到用make的地方啊?是不是我看漏了?汗啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-7-14 19:14:20 | 显示全部楼层
Post by demonlj
我在书上没有看到用make的地方啊?是不是我看漏了?汗啊

呵呵,我自己看错了。
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
    `grep -lr linux/config.h *` &&
( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
这个应该就是了吧。不过这么多符号,还没都搞明白(偶学的正则表达式很简单)。我是直接copy过去的,应该没什么问题吧。现在正则重新安装xorg
zlib是lfs就做好的,libpng、expat、freetype、fontconfig都搞定了。正在
sed -i -e "s@^#include <linux/config.h>@/* & */@" \
    `grep -lr linux/config.h *` &&
( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
希望不要有错了
回复 支持 反对

使用道具 举报

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

本版积分规则

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