LinuxSir.cn,穿越时空的Linuxsir!

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

我想升级Xfree86.请问怎样弄啊?

[复制链接]
发表于 2004-3-7 11:24:24 | 显示全部楼层 |阅读模式
我看了一些有关这个的文档,可是那里说得好多东西.我不知道那东西是在那.是干什么的.所以不胆升级.
可以教我怎样升级吗!  我的系统是:Redhat linux  9.0
谢谢!
发表于 2004-3-7 12:34:09 | 显示全部楼层
我虽然也升级了, 但也希望有人能讲解多一些, 了解多一些概念性的东西
 楼主| 发表于 2004-3-9 21:10:40 | 显示全部楼层

那你是怎样升级的啊?

你可以说说你的过程吗!
发表于 2004-3-9 22:20:35 | 显示全部楼层
一.下栽:
    cvs co -A xc
二.配置:
    编辑config/cf/site.def 修改ProjectRoot 为/opt/X11R6(这就是安装目录,不用/usr是做测试用,这样就不会跟以前的冲突)
    新建config/cf/host.def
三.编译:
    第一次:make World 2<&1 |tee world.log
    改动配置文件后:
    make everything 2<&1 | tee everything.log
四.安装:
    make install 2<&1 | tee install.log
    make instlal.man 2<&1 | tee install.man.log
五.运行:
    1)修改环境变量PATH将/usr/bin/X11替换成/opt/X11R6/bin
    2)修改/etc/ld.so.conf将/usr/X11R6/lib替换成/opt/X11R6/lib
    3)运行/sbin/ldconfig
    4)启动X: /opt/X11R6/bin/xinit
    如果是使用gdm的话,修改/etc/gdm/gdm.conf:
    将其中/usr/X11R6都改为/opt/X11R6
六.查看/var/log/XFree86.0.log是不是有什么问题。

我的host.def:

  1. /* Begin XFree86 host.def file */

  2. /* System Related Information.  If you read and configure only one
  3. * section then it should be this one.  The Intel architecture defaults are
  4. * set for a i686 and higher.  Axp is for the Alpha architecture and Ppc is  
  5. * for the Power PC.  Note that there have been reports that the Ppc
  6. * optimization line causes segmentation faults during build.  If that
  7. * happens, try building without the DefaultGcc2PpcOpt line.  **************/

  8. /* #define DefaultGcc2i386Opt  -O2 -fomit-frame-pointer -march=i686 */
  9. /* #define DefaultGcc2AxpOpt   -O2 -mcpu=ev6 */
  10. /* #define DefaultGcc2PpcOpt   -O2 -mcpu=750 */

  11. /* The following definitions are normally set properly by XFree86's scripts.
  12. * You can uncomment them if you want to make sure. ************************/

  13. #define HasMTRRSupport      YES   /* Enabled in kernel see kernel docs*/
  14. #define HasMMXSupport        YES   /* Any i586 or above */
  15. /* #define HasKatmaiSupport     NO  */ /* PIII SSE instuctions */
  16. #define Has3DNowSupport      YES   /* AMD instructions */


  17. /* This setting reduces compile time a little by omitting rarely used input
  18. * devices.  You can find the complete list in config/cf/xfree86.cf ********/

  19. #define XInputDrivers                 mouse void

  20. /* VIDEO DRIVERS ***********************************************************/

  21. /* If you are sure you only want the drivers for one or a few video cards,
  22. * you can delete the drivers you do not want. *****************************/


  23. #define XF86CardDrivers  nv vesa vga dummy

  24. /* FONT SERVER AND LIBRARY SETTINGS ****************************************/

  25. /* These settings are the defaults   ***************************************/

  26. /* #define BuildFontServer          YES  */ /* For GhostScript Print Server*/
  27. /* #define SharedLibFont            YES  */
  28. /* #define CompressAllFonts         YES  */
  29. /* #define GzipFontCompression      YES  */

  30. /* These settings ensure we use our libraries ******************************/
  31. #define HasFreetype2             YES
  32. #define HasExpat                 YES
  33. #define HasLibpng                YES
  34. #define HasZlib                  YES

  35. /* The font path can be redefined in the XF86Config file *******************/

  36. /*
  37. #define DefaultFontPath                $(FONTDIR)/misc/,$(FONTDIR)/75dpi/,\
  38. $(FONTDIR)/100dpi/,$(FONTDIR)/Type1,$(FONTDIR)/local,\
  39. $(FONTDIR)/TrueType,$(FONTDIR)/CID,$(FONTDIR)/Speedo
  40. */


  41. /* INTERNATIONAL FONTS.  Change to YES if you need any of them.  These  are
  42. * the defaults. ***********************************************************/

  43. /* #define BuildCyrillicFonts            NO  */
  44. /* #define BuildArabicFonts              NO  */
  45. /* #define BuildISO8859_6Fonts           NO  */
  46. /* #define BuildGreekFonts               NO  */
  47. /* #define BuildISO8859_7Fonts           NO  */
  48. /* #define BuildHebrewFonts              NO  */
  49. /* #define BuildISO8859_8Fonts           NO  */
  50. /* #define BuildKOI8_RFonts              NO  */
  51. /* #define BuildJapaneseFonts            NO  */
  52. /* #define BuildJISX0201Fonts            NO  */
  53. /* #define BuildKoreanFonts              NO  */
  54. /* #define BuildChineseFonts             YES  */

  55. /* DOCUMENTATION SETTINGS **************************************************/

  56. /* These setting are the defaults. *****************************************/

  57. /* #define BuildLinuxDocHtml             NO  */  /* X Docs in Html format */
  58. /* #define BuildLinuxDocPS               NO  */  /* PostScript format */
  59. /* #define BuildAllSpecsDocs             NO  */  /* Various docs */
  60. /* #define BuildHtmlManPages             NO  */

  61. /* GENERAL SETTINGS: You generally want to leave these alone when
  62. * building X on an LFS system *********************************************/

  63. #define GccWarningOptions         -pipe /* Speed up compiles */
  64. #define TermcapLibrary            -lncurses
  65. #define XprtServer                YES /* Needed by realplayer */
  66. #define XnestServer               YES
  67. #define XAppLoadDir               EtcX11Directory/app-defaults
  68. #define VarLibDir                 /var/lib
  69. #define XFree86Devel               NO
  70. #define FSUseSyslog               YES
  71. #define ThreadedX                 YES
  72. #define HasPam                    YES        
  73. #define SystemManDirectory        /usr/share/man  /* Instead of /usr/man */
  74. #define HasLibCrypt               YES
  75. #define InstallXinitConfig        YES
  76. #define InstallXdmConfig          YES
  77. #define ForceNormalLib            YES
  78. #define BuildSpecsDocs             NO

  79. /* End XFree86 host.def file */
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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