ºìÁªLinuxÃÅ»§
Linux°ïÖú

linuxϵͳ³£¼û´íÎó¼Ç¼Óë½â¾ö£¨Ò»£©

·¢²¼Ê±¼ä:2009-10-28 15:09:54À´Ô´:ºìÁª×÷Õß:szlfeng
³£¼ûµÄϵͳ´íÎóºÍ°²×°Èí¼þ³£³ö´íµÄµØ·½Ò»°ã¶¼ÓÐÁË¡£´ó¼Ò¿ÉÒԲο¼²Î¿¼¡£
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 ¾­µäËIJ½Ê±£¬´ÓÀ´Ã»ÓÐÏë¹ýÆäÖеĹý³Ì£¬Ö»¾õµÃÏñÀýÐй«ÊÂÒ»Ñù£¬×ö¾ÍÊÇÁË¡£

²»ÐÒµÄÊÇ£¬Õâ´ÎÔÚ./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 ~]#
Èç¹ûÄã¿´µ½ÓУ¬¾Í˵Ã÷·þÎñÆ÷°²×°ÆðÀ´ÁË¡«¡«
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ