Chinaunix首页 | 论坛 | 博客
  • 博客访问: 616473
  • 博文数量: 104
  • 博客积分: 1968
  • 博客等级: 上尉
  • 技术积分: 1587
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-01 17:52
文章分类

全部博文(104)

文章存档

2013年(12)

2012年(50)

2011年(42)

分类: LINUX

2011-09-12 21:25:45

1、在ubuntu中,如果在编译时出现如下错误:
  错误:X11/Xlib.h:没有那个文件或目录
  错误:X11/Xutil.h:没有那个文件或目录
  错误:X11/Xos.h:没有那个文件或目录
  错误:X11/Xatom.h:没有那个文件或目录
  错误:X11/keysym.h:没有那个文件或目录
  修正的方法:
  $ sudo apt-get install libx11-dev 

  错误: X11/xpm.h:没有该文件或目录
  修正的方法:
  $ sudo apt-get install libxpm-dev
  然后再从新编译即可
    /usr/bin/ld: cannot find -lXtst
    修正的方法:
    $ sudo apt-get install libxtst-dev


阅读(909) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~