Ubuntu常见错误问题的解决方法小结

 更新时间:2016年11月16日 10:43:01   作者:bladestone  
最近经常使用ubuntu,难免会遇到各种各样的问题。所以想着记录下来,方便自己和大家以后需要的时候查看参考,文中介绍的很详细,相信对大家学习或者使用Ubuntu能有一定的参考借鉴价值,感兴趣的朋友们下面来一起看看吧。

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

错误1: ./configure

checking for getifaddrs... yes 
checking ifaddrs.h usability... yes 
checking ifaddrs.h presence... yes 
checking for ifaddrs.h... yes 
checking for socklen_t... yes 
checking for getaddrinfo... yes 
checking whether to build optimizer debugging code... no 
checking whether to build parser debugging code... no 
checking whether we have DAG API headers... no 
checking whether we have Septel API headers... no 
checking whether we have Myricom Sniffer API... no 
checking whether TurboCap is supported... no 
checking for flex... no 
checking for lex... no 
configure: error: Neither flex nor lex was found.

核心错误信息为: 

error: Neither flex nor lex was found. 

解决办法: sudo apt-get install flex bison

Reading package lists... Done 
Building dependency tree     
Reading state information... Done 
The following package was automatically installed and is no longer required: 
 linux-image-extra-4.4.0-34-generic 
Use 'sudo apt autoremove' to remove it. 
The following additional packages will be installed: 
 libbison-dev libfl-dev 
Suggested packages: 
 bison-doc 
The following NEW packages will be installed: 
 bison flex libbison-dev libfl-dev 
0 upgraded, 4 newly installed, 0 to remove and 7 not upgraded. 
Need to get 900 kB of archives. 
After this operation, 2,692 kB of additional disk space will be used. 
Do you want to continue? [Y/n] y 
Get:1 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libfl-dev amd64 2.6.0-11 [12.5 kB] 
Get:2 http://mirrors.aliyun.com/ubuntu xenial/main amd64 flex amd64 2.6.0-11 [290 kB] 
Get:3 http://mirrors.aliyun.com/ubuntu xenial/main amd64 libbison-dev amd64 2:3.0.4.dfsg-1 [338 kB] 
Get:4 http://mirrors.aliyun.com/ubuntu xenial/main amd64 bison amd64 2:3.0.4.dfsg-1 [259 kB] 
Fetched 900 kB in 1s (518 kB/s) 
Selecting previously unselected package libfl-dev:amd64. 

然后输入==>   sudo make install , 进行安装

错误2:

checking for gcc... gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables...  
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking for pcap_open_live in -lpcap... no 
error: pcap library not found! 

问题解决:

sudo apt-get install libsqlite3-dev libpcap-dev 

然后重新尝试新的命令,即可解决上述错误

二、中文模式下切换回英文模式?

修改/etc/default/locale文件的语言值。

将LANG zh_CN.UTF-8修改为en_US.UTF-8  , LANGUAGE zh_CN:zh修改为en_US:en

三、英文模式下开机自动启动IBUS中文输入法。

英文模式下,ibus不能自动启动。每次输入中文都得手动启动。这个让人不能接受。google一下,两种方法。

方法1:system settings->Languange-support->keyboard input method system ->ibus 

这种方法我没试验成功。如图所示,选择了没有保存按钮。我以为是默认保存的。但是关了在打开发现还是没有选择上。有可能语言包没有按完整的语言,每次进入语言设置,都会提示语言包没有安装完整。

方法2:添加ibus设置为开机启动的应用               

system->preferences->startup application

    

-d 的意思是让ibus在后台运行

总结

以上就是这篇文章的全部内容了,希望本文的内容对大家的学习或者工作能带来一定的帮助,如果有疑问大家可以留言交流。

相关文章

  • linux系统安装git及git常用命令

    linux系统安装git及git常用命令

    这篇文章主要介绍了linux系统安装git及git常用命令,大家参考使用吧
    2014-01-01
  • Linux进程和计划任务管理方式

    Linux进程和计划任务管理方式

    程序是存储在存储设备上的静态代码,而进程是程序在CPU和内存中动态执行的实体,进程可以有父子关系,查看进程信息的命令包括ps,top,pgrep,jobs,pstree等,用于监控和管理进程状态,ps命令可以显示终端的所有进程
    2024-09-09
  • Cpanel下Cron Jobs定时执行PHP的方法

    Cpanel下Cron Jobs定时执行PHP的方法

    PHP代码需要定时执行,如果你有Linux或unix系统权限或网站使用的是Cpanel后台,那么可以使用Cron JOBS来完成PHP的定时执行功能。飘易简单介绍一下cpanel下的使用方法
    2021-07-07
  • centos6利用yum安装php mysql gd的步骤

    centos6利用yum安装php mysql gd的步骤

    我在84vps中利用yum顺利安装mysql php 及gd库,因为vps本身自带了apahce2.2所以没有apache安装过程
    2012-09-09
  • Linux设置文件和目录权限方式

    Linux设置文件和目录权限方式

    在Linux系统中,文件和目录的权限分为访问权限和归属权限,访问权限包括读(r)、写(w)、执行(x),可用字符或数字方式设置,归属权限涉及文件的所有者和用户组,特殊权限包括suid、sgid和Sticky位,分别用于提高程序的安全性和管理共享目录
    2024-11-11
  • centos8安装zabbix提示All mirrors were tried的解决方案

    centos8安装zabbix提示All mirrors were tried的解决方案

    这篇文章主要介绍了centos8安装zabbix提示All mirrors were tried的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教
    2024-01-01
  • 使用Apache ab工具对Apache服务器进行简单的压力测试

    使用Apache ab工具对Apache服务器进行简单的压力测试

    这篇文章主要介绍了使用Apache ab工具对Apache服务器进行简单的压力测试的方法,文中还对如何查看当前Apache的连接数的方法作了介绍,需要的朋友可以参考下
    2016-03-03
  • 基于Xshell使用密钥方式连接远程主机

    基于Xshell使用密钥方式连接远程主机

    这篇文章主要为大家详细介绍了基于Xshell使用密钥方式连接远程主机的相关资料,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
    2017-06-06
  • centos7下mysql5.6的主从复制详解

    centos7下mysql5.6的主从复制详解

    本篇文章主要介绍了centos7下mysql5.6的主从复制详解,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
    2017-02-02
  • linux文件目录管理命令整理总结

    linux文件目录管理命令整理总结

    在本篇文章里小编给大家整理的是关于linux文件目录管理命令整理总结,需要的朋友们参考下。
    2019-11-11

最新评论