+ -
当前位置:首页 → 问答吧 → 求一个BLFS svn里面 xorg 7.2的编译安装脚本~~包太多了 自己不会写~~~~

求一个BLFS svn里面 xorg 7.2的编译安装脚本~~包太多了 自己不会写~~~~

时间:2007-12-12

来源:互联网

其实我看不懂

作者: biosxjj   发布时间: 2007-12-12

http://www.linuxfromscratch.org/blfs...e/x/xorg7.html
1.新建个编译xorg的目录
mkdir xc &&
cd xc
2.设置需要的变量
export XORG_PREFIX="<PREFIX>" && #把xorg装到哪里,就改成相应的目录
export XORG_CONFIG="--prefix=$XORG_PREFIX --sysconfdir=/etc \
--mandir=$XORG_PREFIX/share/man --localstatedir=/var" #编译包时所用的参数

做完这两步后,就可以安装了。。。

就拿Xorg Protocol Headers 来说
先把需要的包下下来
wget http://anduin.linuxfromscratch.org/f...proto-7.1.wget &&
mkdir proto &&
cd proto &&
wget -B http://xorg.freedesktop.org/releases/individual/proto/ \
-i ../proto-7.1.wget

接下来用下面的脚本安装
bash -e #exit on all errors
for package in $(cat ../wgetlist.wget)
do
packagedir=$(echo $package | sed 's/.tar.bz2//')
tar -xf $package
cd $packagedir
./configure $XORG_CONFIG
make
make install
cd ..
rm -rf $packagedir
rm -f $package
done 2>&1 | tee -a ../xorg-compile.log #log the entire loop

作者: epvmm365   发布时间: 2007-12-12

lfs里面的bash 怎么用啊 ./$script没用啊

作者: biosxjj   发布时间: 2007-12-12

Xorg-7.2 / 7.3
我知道

作者: tfkdmwmqtr   发布时间: 2007-12-13