LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: qeming

xorg 7.0 已经正式发布了,可是应该怎么安装呢?

[复制链接]
发表于 2005-12-23 23:03:14 | 显示全部楼层
编那么多包好麻烦啊。最近重build了次系统,就是在打这些包的时候最郁闷!
回复 支持 反对

使用道具 举报

发表于 2005-12-23 23:03:31 | 显示全部楼层
安装 XOrg 6.9 的方法:


1. 下载 X11R6.9.0-src.tar.bz2,解压。
2. 建立 config/cf/host.def 文件。
3. 修改 /usr/include/sys/kd.h 文件。
4. 其他调整。
5. 编译以及安装。


1。下载,简单。


2。建立host.def文件。
你可以用 BLFS Book 中提供的,也可以用我提供的。差不多。

  1. XCOMM $XFree86: xc/config/cf/xf86site.def,v 3.186 2003/06/25 18:06:22 eich Exp $

  2. #define XprtServer              NO
  3. #define BuildXprintClients      NO

  4. #define InstallXserverSetUID    YES

  5. /*
  6. * Server configuration parameters.  The defaults are shown here:
  7. */

  8. /*
  9. * Which drivers to build.  When building a static server, each of these
  10. * will be included in it.  When building the loadable server each of these
  11. * modules will be built.
  12. *
  13. #define XF86CardDrivers         mga glint nv tga s3virge sis rendition \
  14.                                 neomagic i740 tdfx savage \
  15.                                 cirrus vmware tseng trident chips apm \
  16.                                 GlideDriver fbdev i128 \
  17.                                 ati DevelDrivers ark cyrix \
  18.                                 siliconmotion \
  19.                                 vesa vga XF86OSCardDrivers XF86ExtraCardDrivers
  20. */

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


  29. #define BuildFonts              YES
  30. #define BuildSpeedo             YES
  31. #define BuildSpeedoFonts        YES


  32. /*
  33. * To build only the servers with a cut-down source tree, uncomment
  34. * this.
  35. *
  36. #define BuildServersOnly        YES
  37. */

  38. /*
  39. * By default, the sample config files for xinit, xdm and xfs are installed
  40. * only when there is no pre-existing version installed.  Uncommenting the
  41. * following lines will force the sample versions to be installed even if
  42. * it means over-writing existing versions.
  43. *
  44. #define InstallXinitConfig      YES
  45. #define InstallXdmConfig        YES
  46. #define InstallFSConfig         YES
  47. */

  48. /*
  49. * By default the application defaults files are always installed.
  50. * Uncommenting the the following will prevent exising application
  51. * defaults files from being over-written.
  52. *
  53. #define InstallAppDefFiles      NO
  54. */

  55. #define DefaultGcc2i386Opt      -O2 -fno-strength-reduce -pipe
  56. #define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \
  57.                           -Wmissing-prototypes -Wmissing-declarations \
  58.                           -Wredundant-decls -Wnested-externs


  59. #define HasFreetype2 YES
  60. #define Freetype2Dir /usr/

  61. #define HasFontconfig YES
  62. #define FontconfigDir /usr


  63. #define HasExpat YES
  64. #define ExpatDir /usr

  65. #define HasLibpng YES
  66. #define LibpngDir /usr

  67. #define BuildXterm YES

  68. #define HasPam YES
  69. #define HasPamMisc YES
复制代码


如果不想用PAM,就把最后2行去掉。

3. 修改 kd.h
备份:
cp -v /usr/include/sys/kd.h{,.BAK}

修改:
把文件内容修改成这样:

  1. #ifndef _SYS_KD_H
  2. #define _SYS_KD_H   1

  3. /* Make sure the <linux/types.h> header is not loaded.  */
  4. #ifndef _LINUX_TYPES_H
  5. # define _LINUX_TYPES_H 1
  6. # define __undef_LINUX_TYPES_H 1
  7. #endif

  8. #include <linux/kd.h>

  9. #ifdef __undef_LINUX_TYPES_H
  10. # undef _LINUX_TYPES_H
  11. # undef __undef_LINUX_TYPES_H
  12. #endif

  13. #endif  /* sys/kd.h */
复制代码


4. 其他调整。
sed -i '/^SUBDIRS =/s/ etc$//' programs/Xserver/Xprint/Imakefile

5. 编译以及安装。
make -j3 World &> world.log
make install &> inst.log
make install.man &> inst_man.log


剩下的,就是xorg.conf的配置。如果没问题,原来的应该可以继续用。:)。

(测试中,随时更新)

-------------------------------------
问题:
1。 启动的时候,出现以下问题:
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

不过不影响使用,不过我不知道如何解决(主要是懒得找)。
回复 支持 反对

使用道具 举报

发表于 2005-12-24 01:26:00 | 显示全部楼层
不知道 youbest 是如何编译的呢:)。

XOrg 7.0 的安装方法,真麻烦!BT们,干嘛把XOrg 改成moduler,郁闷。

写了一个脚本,把最简单的 XOrg7 编译出来。剩下的,自己按需安装吧,

很奇怪,我编译出来的xorg不能转换控制台。就是Ctrl+Alt+F1不起作用。
只能用Ctrl+Alt+Backspace 退出来。

1。在 /etc/ld.so.conf 里边加上 /opt/xorg7/lib
2。环境变量 PKG_CONFIG_PATH 加上 /opt/xorg7/lib/pkgconfig
3。下载所有bz2文件并且解压。
4。运行脚本。
5。安装字体。

  1. mkdir -p done &&
  2. ldconfig &&

  3. #libX11-X11R7.0-1.0.0="--enable-loadable-i18n"
  4. #xorg-server-X11R7.0-1.0.1="--disable-xprint"

  5.     ##xproto-X11R7.0-7.0.4 xextproto-X11R7.0-7.0.2 liblbxutil-X11R7.0-1.0.0 proto-X11R7.0-2.0.3 libdrm-2.0 glproto-X11R7.0-1.4.3 \
  6. DJDK="
  7. "

  8. for x in \
  9.     xproto-X11R7.0-7.0.4 xextproto-X11R7.0-7.0.2 liblbxutil-X11R7.0-1.0.0 glproto-X11R7.0-1.4.3 \
  10.     randrproto-X11R7.0-1.1.2 renderproto-X11R7.0-0.9.2 fixesproto-X11R7.0-3.0.2 damageproto-X11R7.0-1.0.3 \
  11.     xcmiscproto-X11R7.0-1.1.2 xtrans-X11R7.0-1.0.0 xf86miscproto-X11R7.0-0.9.2 xf86vidmodeproto-X11R7.0-2.2.2 \
  12.     xf86bigfontproto-X11R7.0-1.1.2 scrnsaverproto-X11R7.0-1.0.2 bigreqsproto-X11R7.0-1.0.2 \
  13.     resourceproto-X11R7.0-1.0.2 fontsproto-X11R7.0-2.0.2 inputproto-X11R7.0-1.3.2 \
  14.     xf86dgaproto-X11R7.0-2.0.2 videoproto-X11R7.0-2.2.2 compositeproto-X11R7.0-0.2.2 \
  15.     trapproto-X11R7.0-3.4.3 recordproto-X11R7.0-1.13.2 libICE-X11R7.0-1.0.0 libSM-X11R7.0-1.0.0 \
  16.     libXau-X11R7.0-1.0.0 libXdmcp-X11R7.0-1.0.0 kbproto-X11R7.0-1.0.2 libX11-X11R7.0-1.0.0 \
  17.     libXt-X11R7.0-1.0.0 libXext-X11R7.0-1.0.0 libXmu-X11R7.0-1.0.0 xineramaproto-X11R7.0-1.1.2 \
  18.     libXinerama-X11R7.0-1.0.1 evieext-X11R7.0-1.0.2 libXevie-X11R7.0-1.0.0 libxkbfile-X11R7.0-1.0.1 \
  19.     libXpm-X11R7.0-3.5.4.2 libXaw-X11R7.0-1.0.1 xfontsel-X11R7.0-1.0.1 xauth-X11R7.0-1.0.1 libfontenc-X11R7.0-1.0.1 \
  20.     fontcacheproto-X11R7.0-0.1.2 libXfont-X11R7.0-1.0.0 libxkbui-X11R7.0-1.0.1 libXxf86misc-X11R7.0-1.0.0 \
  21.     libXxf86vm-X11R7.0-1.0.0 xf86driproto-X11R7.0-2.0.3 \
  22.     xorg-server-X11R7.0-1.0.1 \
  23.     \
  24.     bdftopcf-X11R7.0-1.0.0 mfstobdf-X11R7.0-1.0.1 mkfontdir-X11R7.0-1.0.1 mkfontscale-X11R7.0-1.0.1 \
  25.     xconsole-X11R7.0-1.0.1 encodings-X11R7.0-1.0.0 iceauth-X11R7.0-1.0.1 \
  26.     imake-X11R7.0-1.0.1 libFS-X11R7.0-1.0.0 libXfixes-X11R7.0-3.0.1.2 \
  27.     libXrender-X11R7.0-0.9.0.2 libXcursor-X11R7.0-1.1.5.2 libXft-X11R7.0-2.1.8.2 \
  28.     libXrandr-X11R7.0-1.1.0.2 xrandr-X11R7.0-1.0.1 rgb-X11R7.0-1.0.0 xrdb-X11R7.0-1.0.1 \
  29.     xhost-X11R7.0-1.0.0 xkbcomp-X11R7.0-1.0.1 xbitmaps-X11R7.0-1.0.1 xsetroot-X11R7.0-1.0.1 \
  30.     xsm-X11R7.0-1.0.1 xset-X11R7.0-1.0.1 xf86-input-keyboard-X11R7.0-1.0.1.3 font-util-X11R7.0-1.0.0 \
  31.     xf86-video-nv-X11R7.0-1.0.1.5 xf86-video-vga-X11R7.0-4.0.0.5 xf86-video-fbdev-X11R7.0-0.1.0.5 \
  32.     xf86-input-mouse-X11R7.0-1.0.3.1 libXTrap-X11R7.0-1.0.0 xtrap-X11R7.0-1.0.1 \
  33.     libXfontcache-X11R7.0-1.0.1 xlsfonts-X11R7.0-1.0.1 xlsclients-X11R7.0-1.0.1 \
  34.     fonttosfnt-X11R7.0-1.0.1 showfont-X11R7.0-1.0.1 bitmap-X11R7.0-1.0.1 font-micro-misc-X11R7.0-1.0.0 \
  35.     xmodmap-X11R7.0-1.0.0 libXv-X11R7.0-1.0.1 libXtst-X11R7.0-1.0.1 \
  36.     xinit-X11R7.0-1.0.1 \
  37. ;
  38. do
  39.     [ ! -d $x ] && beep && exit # exit if the dir does not exist
  40.     ( echo -e "\nINSTALL  -->  $x\n" && sleep 2 && cd $x && ./configure --prefix=/opt/xorg7 && make -j3 && make install && cd .. && mv $x done && ldconfig )
  41.     [ -d $x ] && beep && exit # exit if the dir exists
  42. done
复制代码


5. 安装字体。
把字体都解压到一个目录里边后,运行

  1. for pkg in *; (cd $pkg && ./configure --prefix=/opt/xorg7 && make && make install );done
复制代码


我的字体文件:

  1. font-adobe-100dpi-X11R7.0-1.0.0.tar.bz2
  2. font-adobe-75dpi-X11R7.0-1.0.0.tar.bz2
  3. font-adobe-utopia-100dpi-X11R7.0-1.0.1.tar.bz2
  4. font-adobe-utopia-75dpi-X11R7.0-1.0.1.tar.bz2
  5. font-adobe-utopia-type1-X11R7.0-1.0.1.tar.bz2
  6. font-alias-X11R7.0-1.0.1.tar.bz2
  7. font-arabic-misc-X11R7.0-1.0.0.tar.bz2
  8. font-bh-100dpi-X11R7.0-1.0.0.tar.bz2
  9. font-bh-75dpi-X11R7.0-1.0.0.tar.bz2
  10. font-bh-lucidatypewriter-100dpi-X11R7.0-1.0.0.tar.bz2
  11. font-bh-lucidatypewriter-75dpi-X11R7.0-1.0.0.tar.bz2
  12. font-bh-ttf-X11R7.0-1.0.0.tar.bz2
  13. font-bh-type1-X11R7.0-1.0.0.tar.bz2
  14. font-bitstream-100dpi-X11R7.0-1.0.0.tar.bz2
  15. font-bitstream-75dpi-X11R7.0-1.0.0.tar.bz2
  16. font-bitstream-speedo-X11R7.0-1.0.0.tar.bz2
  17. font-bitstream-type1-X11R7.0-1.0.0.tar.bz2
  18. font-cronyx-cyrillic-X11R7.0-1.0.0.tar.bz2
  19. font-cursor-misc-X11R7.0-1.0.0.tar.bz2
  20. font-daewoo-misc-X11R7.0-1.0.0.tar.bz2
  21. font-dec-misc-X11R7.0-1.0.0.tar.bz2
  22. font-ibm-type1-X11R7.0-1.0.0.tar.bz2
  23. font-isas-misc-X11R7.0-1.0.0.tar.bz2
  24. font-jis-misc-X11R7.0-1.0.0.tar.bz2
  25. font-misc-cyrillic-X11R7.0-1.0.0.tar.bz2
  26. font-misc-ethiopic-X11R7.0-1.0.0.tar.bz2
  27. font-misc-meltho-X11R7.0-1.0.0.tar.bz2
  28. font-misc-misc-X11R7.0-1.0.0.tar.bz2
  29. font-mutt-misc-X11R7.0-1.0.0.tar.bz2
  30. font-schumacher-misc-X11R7.0-1.0.0.tar.bz2
  31. font-screen-cyrillic-X11R7.0-1.0.0.tar.bz2
  32. font-sony-misc-X11R7.0-1.0.0.tar.bz2
  33. font-sun-misc-X11R7.0-1.0.0.tar.bz2
  34. font-winitzki-cyrillic-X11R7.0-1.0.0.tar.bz2
  35. font-xfree86-type1-X11R7.0-1.0.0.tar.bz2
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-12-24 07:18:44 | 显示全部楼层
的确够变态。。。。
回复 支持 反对

使用道具 举报

发表于 2005-12-24 16:46:29 | 显示全部楼层
因为是第一次编译,我就是一个包一个包解压缩然后./configure --prefix=/usr/X11R6 && make && make install 的方式安装的,提示缺什么就装什么,反正最后就运行起来了。不过我是用GCC4.0.2编译的,不知道终极幻想是用哪个版本的GCC编译的。
我也有无法用Ctrl+Alt+F1切换到控制台的问题,还不知道原因在哪里。
回复 支持 反对

使用道具 举报

发表于 2006-3-16 14:39:13 | 显示全部楼层
那和包要先make阿?
回复 支持 反对

使用道具 举报

发表于 2006-3-16 16:28:03 | 显示全部楼层
xorg.conf中的keyboard用xorg.
回复 支持 反对

使用道具 举报

发表于 2006-10-28 20:51:03 | 显示全部楼层
按照Beyond Linux From Scratch - Version svn-20061012指导书安装xorg6.9
提示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
请先行者指导一下;可以这样吗?
ln -v -s /usr/X11R6/bin /usr/bin/X11 &&
ln -v -s /usr/X11R6/lib/X11 /usr/lib/X11 &&
ln -v -s /usr/X11R6/include/X11 /usr/include/X11
回复 支持 反对

使用道具 举报

发表于 2006-10-29 09:56:07 | 显示全部楼层
终极幻想 和 youbest 不能切换控制台的问题,我也遇上了。。。
我也在这里发贴问过了。。。。d00m3d 回复说,怀疑是inittab写得不对。。。。。
回复 支持 反对

使用道具 举报

发表于 2006-10-29 13:07:31 | 显示全部楼层
可能是xorg.conf里设置的问题,xorg7.0我是打了一个补丁来解决的,我现在用xorg7.1是正常的.
回复 支持 反对

使用道具 举报

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

本版积分规则

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