加载中…
  
博文
标签:

linux

编译错误

解决方法

分类: Linux笔记
1、/bin/bash: bison: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_y.cpp] Error 127
解决方法:sudo apt-get install bison

2、make: *** [out/host/linux-x86/obj/EXECUTABLES/aidl_intermediates/aidl_language_l.cpp] Error 127
解决方法: sudo apt-get install flex

3、make: *** [out/target/product/generic/obj/STATIC_LIBRARIES/libwebcore_intermediates/Source/WebCore/css/CSSPropertyNames.h] Error 25
解决方法:sudo apt-get install gperf

4、/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file or directoryIn file included from /home/hudan/android/source/android4.1.1/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../sysroot/usr/include/sys/types.h:27:0,
                 from frameworks/native/i
标签:

linux

查看

文件/软件路径

分类: Linux笔记
我们经常在linux要查看某个文件或者软件位置,可以使用下面的一些命令来搜索:
  • which  查看可执行文件的位置。
  • whereis 查看二进制文件、源文件、用户页文件的位置。
  • locate   配合数据库查看文件位置。
  • find   实际搜寻硬盘查询文件名称。


  1. which
    1. 格式:
      which [-a] filename
    2. 参数:
      -a print all matching pathnames of each argument
    3. 功能描述:
      which returns the pathnames of the files (or links) which would be exe‐ cuted in the current environment, had its arguments been given as com‐ mands in a strictly POSIX-conformant shell. It does this by searching the PATH for executable files matching the names of the arguments. It does not follow symbolic links.
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有