设为首页收藏本站language 语言切换
查看: 3099|回复: 0
收起左侧

[原创] 【原创】linux系统常见错误记录与解决

[复制链接]
发表于 2013-4-25 13:18:31 | 显示全部楼层 |阅读模式
常见的系统错误和安装软件常出错的地方一般都有了。大家可以参考参考。
linux系统维护常见错误记录
点评:一:卸载的时候出现的错误: umount /dev/nb1 device is busy 解决:找到是什么进程使得他busy,用 lsof /dev/nb1 . kill掉那个进程,然后重新umount即可。 二:GD2编译的时候出现的错误: The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’

一:卸载的时候出现的错误:
umount /dev/nb1
device is busy
解决:找到是什么进程使得他busy,用 lsof /dev/nb1 . kill掉那个进程,然后重新umount即可。

二:GD2编译的时候出现的错误:
The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’
Libtool library used but `LIBTOOL’ is undefined
[Makefile.in] Error 1
解决:缺少编译安装的软件包。如:yum install automake,libjpeg-devel,libpng-devel,freetype-devel,libtiff-devel,autoconf,gettext-devel,libtool

三:安装 snmp的时候出现的错误:
1>/bin/sed: can’t read /usr/lib/libbeecrypt.la: No such file or directory
libtool: link: `/usr/lib/libbeecrypt.la’ is not a valid libtool archive
make[1]: *** [libnetsnmpmibs.la] Error 1
解决:以为缺少libbeecrypt.la ,libbeecrypt.so等共享库,如:yum install libbeecrypt.la
2>/usr/bin/ld: cannot find -lelf
解决:ln -s /usr/lib/libelf.so.1 /usr/lib/libelf.so
3>/usr/bin/ld:can’t not find -lselinux
解决:缺少libselinux 和 libselinux-devel包,如:yum install libselinux

四:Rsync同步常见问题:
错误一:
@ERROR: auth failed on module xxxxx
rsync: connection unexpectedly closed (90 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
解决:这是因为密码设置错了,无法登入成功,检查一下rsync.pwd,看客服是否匹配。还有服务器端没启动rsync 服务也会出现这种情况。
错误二:
password file must not be other-accessible
continuing without password file
Password:
解决:这是因为rsyncd.pwd rsyncd.sec的权限不对,应该设置为600。如:chmod 600 rsyncd.pwd
错误三:
@ERROR: chroot failed
rsync: connection unexpectedly closed (75 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)
解决:这是因为你在 rsync.conf 中设置的 path 路径不存在,要新建目录才能开启同步。
错误四:
rsync: failed to connect to 218.107.243.2: No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9]
解决:对方没开机、防火墙阻挡、通过的网络上有防火墙阻挡,都有可能。关闭防火墙,其实就是把tcp udp 的873端口打开。

五:软件安装的时候常出现的问题:
configure: error: …No recognized SSL/TLS toolkit detected
# yum -y install openssl-devel

configure: error: no acceptable cc found in $PATH
yum -y install gcc-c++

configure: error: cannot find output from lex; giving up flex is not installed, install flex.
yum -y install flex

configure: error: xml2-config not found. Please check your libxml2 installation.
yum -y install libxml2-devel

configure: error: Cannot find OpenSSL’s
yum -y install openssl-devel

configure: error: Please reinstall the BZip2 distribution
yum -y install bzip2-devel

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
yum -y install curl-devel

configure: error: libjpeg.(a|so) not found.
yum -y install libjpeg-devel

configure: error: libpng.(a|so) not found.
yum -y install libpng-devel

configure: error: freetype2 not found!
yum -y install freetype-devel

configure: error: Unable to locate gmp.h
yum -y install gmp-devel

configure: error: Cannot find pspell
yum -y install aspell-devel

libtool: link: cannot find the library `/usr/lib/libbeecrypt.la’ (librpmio.la: /usr/lib/libbeecrypt.la)
解决:缺少beecrypt包,如:
http://sourceforge.net/projects/beecrypt下载beecrypt-4.1.2.tar.gz
然后运行如下命令:
#tar -zxvf beecrypt-4.1.2.tar.gz
#./configure
#make
#make install
内容来自: 脚本之家 www.jb51.net
问题:在手动编译安装mysql的过程中.发生错误如下:
configure: error: No curses/termcap library found
在网上找了很多的解决办法,发现以下这个正解,放上以备查用

解决方法:安装 ncurses-devel-5.5-24.20060715.i386.rpm
OK!
注意版本问题,也许我们两个需要安装的版本不一样.
mysql版本:5.1.30



已经不记得这次是第几次安装mysql了,遇到这个问题倒是第一次。

之前在tar,./configure,make,make install 经典四步时,从来没有想过其中的过程,只觉得像例行公事一样,做就是了。

不幸的是,这次在./configure后,make时出现以下错误:

make: *** No targets specified and no makefile found. stop.



本来这次还是想向别人请教的,后来转念一想,前段时间还告诉自己:遇到问题,首先想到自己解决。



于是,在网上找到相关资料,确认是./configure出了问题,于是回头查看,果然发现问题:

最后几行出了错。完整错误信息如下:

checking for tgetent in -lncurses... no

checking for tgetent in -lcurses... no

checking for tgetent in -ltermcap... no

checking for tgetent in -ltinfo... no

checking for termcap functions library... configure: error: No curses/termcap library found



原因:

缺少ncurses安装包



解决办法:

下载安装相应软件包

一、如果你的系统是RedHat系列:

yum list|grep ncurses

yum -y install ncurses-devel

yum install ncurses-devel



二、如果你的系统是Ubuntu或Debian:

apt-cache search ncurses

apt-get install libncurses5-dev



待安装completed!之后,再./configure,顺利通过,然后make && make install,成功安装,一切OK!~~~
1,mysql 的守护进程是mysqld
[root@localhost ~]# service mysqld start
启动 MySQL: [确定]

你可以看看你的服务是否已经添加到linux上
[root@localhost ~]# chkconfig --list mysqld
mysqld 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:启用 6:关闭
[root@localhost ~]#
如果没有,先添加,用chkconfig --add mysqld
然后在3 5级别上设定服务为on
chkconfig --level 35 mysqld on
然后service start一下;
一旦你启动了服务,可以这样检查服务器是否在运行
[root@localhost ~]# ps -el | grep mysqld
4 S 0 1796 1 0 85 0 - 1513 wait ? 00:00:00 mysqld_safe
4 S 27 1856 1796 0 78 0 - 34055 - ? 00:00:00 mysqld
[root@localhost ~]#
如果你看到有,就说明服务器安装起来了~~
您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-24 16:16 , Processed in 0.060102 second(s), 23 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

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