Ubuntu常见错误问题解决

前端之家收集整理的这篇文章主要介绍了Ubuntu常见错误问题解决前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

动作:  下载http://www.tcpdump.org/#latest-release,下载libcap-1.8.1.tar.gz,解压缩之后

错误1:  ./configure

  1. checking for getifaddrs... yes
  2. checking ifaddrs.h usability... yes
  3. checking ifaddrs.h presence... yes
  4. checking for ifaddrs.h... yes
  5. checking for socklen_t... yes
  6. checking for getaddrinfo... yes
  7. checking whether to build optimizer debugging code... no
  8. checking whether to build parser debugging code... no
  9. checking whether we have DAG API headers... no
  10. checking whether we have Septel API headers... no
  11. checking whether we have Myricom Sniffer API... no
  12. checking whether TurboCap is supported... no
  13. checking for flex... no
  14. checking for lex... no
  15. configure: error: Neither flex nor lex was found.
核心错误信息为: 
  1. error: Neither flex nor lex was found.
解决办法: sudo apt-get install flex bison
  1. Reading package lists... Done
  2. Building dependency tree
  3. Reading state information... Done
  4. The following package was automatically installed and is no longer required:
  5. linux-image-extra-4.4.0-34-generic
  6. Use 'sudo apt autoremove' to remove it.
  7. The following additional packages will be installed:
  8. libbison-dev libfl-dev
  9. Suggested packages:
  10. bison-doc
  11. The following NEW packages will be installed:
  12. bison flex libbison-dev libfl-dev
  13. 0 upgraded,4 newly installed,0 to remove and 7 not upgraded.
  14. Need to get 900 kB of archives.
  15. After this operation,2,692 kB of additional disk space will be used.
  16. Do you want to continue? [Y/n] y
  17. Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libfl-dev amd64 2.6.0-11 [12.5 kB]
  18. Get:2 http://mirrors.aliyun.com/ubuntu xenial/main amd64 flex amd64 2.6.0-11 [290 kB]
  19. Get:3 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1 [338 kB]
  20. Get:4 http://mirrors.aliyun.com/ubuntu xenial/main amd64 bison amd64 2:3.0.4.dfsg-1 [259 kB]
  21. Fetched 900 kB in 1s (518 kB/s)
  22. Selecting prevIoUsly unselected package libfl-dev:amd64.
然后输入==> sudo make install,进行安装

错误2:

  1. checking for gcc... gcc
  2. checking whether the C compiler works... yes
  3. checking for C compiler default output file name... a.out
  4. checking for suffix of executables...
  5. checking whether we are cross compiling... no
  6. checking for suffix of object files... o
  7. checking whether we are using the GNU C compiler... yes
  8. checking whether gcc accepts -g... yes
  9. checking for gcc option to accept ISO C89... none needed
  10. checking for pcap_open_live in -lpcap... no
  11. error: pcap library not found!
问题解决
  1. sudo apt-get install libsqlite3-dev libpcap-dev
然后重新尝试新的命令,即可解决上述错误

猜你在找的Ubuntu相关文章