ÉîÈëdzÎöLinux¿âÎļþµÄËÑË÷·¾¶
linuxÓкܶàÖµµÃѧϰµÄµØ·½£¬ÕâÀïÎÒÃÇÖ÷Òª½éÉÜlinux¿âÎļþ£¬¾¹ýËѼ¯ºÍÕûÀílinux¿âÎļþ²ÄÁÏ£¬ÔÚÕâÀïÄóöÀ´ºÍ´ó¼Ò·ÖÏíһϣ¬Ï£Íû´ó¼Ò¿´ºó»áÓв»ÉÙÊÕ»ñ¡£
linux¿âÎļþÔÚÁ¬½Ó£¨¾²Ì¬¿âºÍ¹²Ïí¿â£©ºÍÔËÐУ¨½öÏÞÓÚʹÓù²Ïí¿âµÄ³ÌÐò£©Ê±±»Ê¹Óã¬ÆäËÑË÷·¾¶ÊÇÔÚϵͳÖнøÐÐÉèÖõġ£
Ò»°ã Linux ϵͳ°Ñ /lib ºÍ /usr/lib Á½¸öĿ¼×÷ΪĬÈϵĿâËÑË÷·¾¶£¬ËùÒÔʹÓÃÕâÁ½¸öĿ¼ÖеĿâʱ²»ÐèÒª½øÐÐÉèÖÃËÑË÷·¾¶¼´¿ÉÖ±½ÓʹÓ᣶ÔÓÚ´¦ÓÚĬÈÏ¿âËÑË÷·¾¶Ö®ÍâµÄ¿â£¬ÐèÒª½«¿âµÄλÖÃÌí¼Óµ½¿âµÄËÑË÷·¾¶Ö®ÖС£
ÉèÖÃlinux¿âÎļþµÄËÑË÷·¾¶ÓÐÏÂÁÐÁ½ÖÖ·½Ê½£¬¿ÉÈÎÑ¡ÆäһʹÓãº
ÔÚ»·¾³±äÁ¿ LD_LIBRARY_PATH ÖÐÖ¸Ã÷¿âµÄËÑË÷·¾¶¡£
ÔÚ /etc/ld.so.conf ÎļþÖÐÌí¼Ó¿âµÄËÑË÷·¾¶¡£
½«×Ô¼º¿ÉÄÜ´æ·Å¿âÎļþµÄ·¾¶¶¼¼ÓÈëµ½/etc/ld.so.confÖÐÊÇÃ÷ÖǵÄÑ¡Ôñ
Ìí¼Ó·½·¨Ò²¼«Æä¼òµ¥£¬½«linux¿âÎļþµÄ¾ø¶Ô·¾¶Ö±½Óд½øÈ¥¾ÍOKÁË£¬Ò»ÐÐÒ»¸ö¡£
ÀýÈ磺
/usr/X11R6/lib
/usr/local/lib
/opt/lib
ÐèҪעÒâµÄÊÇ£ºµÚ¶þÖÖËÑË÷·¾¶µÄÉèÖ÷½Ê½¶ÔÓÚ³ÌÐòÁ¬½ÓʱµÄ¿â£¨°üÀ¨¹²Ïí¿âºÍ¾²Ì¬¿â£©µÄ¶¨Î»ÒѾ×ã¹»ÁË£¬µ«ÊǶÔÓÚʹÓÃÁ˹²Ïí¿âµÄ³ÌÐòµÄÖ´Ðл¹ÊDz»¹»µÄ¡£ÕâÊÇÒòΪΪÁ˼ӿì³ÌÐòÖ´ÐÐʱ¶Ô¹²Ïí¿âµÄ¶¨Î»Ëٶȣ¬±ÜÃâʹÓÃËÑË÷·¾¶²éÕÒ¹²Ïí¿âµÄµÍЧÂÊ£¬ËùÒÔÊÇÖ±½Ó¶ÁÈ¡¿âÁбíÎļþ /etc/ld.so.cache ´ÓÖнøÐÐËÑË÷µÄ¡£/
etc/ld.so.cache ÊÇÒ»¸ö·ÇÎı¾µÄÊý¾ÝÎļþ£¬²»ÄÜÖ±½Ó±à¼£¬ËüÊǸù¾Ý /etc/ld.so.conf ÖÐÉèÖõÄËÑË÷·¾¶ÓÉ /sbin/ldconfig ÃüÁÕâЩËÑË÷·¾¶ÏµĹ²Ïí¿âÎļþ¼¯ÖÐÔÚÒ»Æð¶øÉú³ÉµÄ£¨ldconfig ÃüÁîÒªÒÔ root ȨÏÞÖ´ÐУ©¡£Òò´Ë£¬ÎªÁ˱£Ö¤³ÌÐòÖ´ÐÐʱ¶Ô¿âµÄ¶¨Î»£¬ÔÚ /etc/ld.so.conf ÖнøÐÐÁË¿âËÑË÷·¾¶µÄÉèÖÃÖ®ºó£¬»¹±ØÐëÒªÔËÐÐ /sbin/ldconfig ÃüÁî¸üР/etc/ld.so.cache ÎļþÖ®ºó²Å¿ÉÒÔ¡£
ldconfig ,¼òµ¥µÄ˵£¬ËüµÄ×÷ÓþÍÊǽ«/etc/ld.so.confÁгöµÄ·¾¶ÏµÄlinux¿âÎļþ»º´æµ½/etc/ld.so.cache ÒÔ¹©Ê¹Óá£Òò´Ëµ±°²×°ÍêһЩ¿âÎļþ£¬(ÀýÈç¸Õ°²×°ºÃglib)£¬»òÕßÐÞ¸Äld.so.confÔö¼ÓеĿâ·¾¶ºó£¬ÐèÒªÔËÐÐһϠ/sbin/ldconfigʹËùÓеĿâÎļþ¶¼±»»º´æµ½ld.so.cacheÖУ¬Èç¹ûû×ö£¬¼´Ê¹¿âÎļþÃ÷Ã÷¾ÍÔÚ/usr/libϵģ¬Ò²ÊDz»»á±»Ê¹Óõģ¬½á¹û±àÒë¹ý³ÌÖб§´í£¬È±ÉÙxxx¿â£¬È¥²é¿´·¢ÏÖÃ÷Ã÷¾ÍÔÚÄÇ·Å×Å£¬¸ãµÄÏë´óÂîcomputer´ÀÖíÒ»¸ö¡£
ÔÚ³ÌÐòÁ¬½Óʱ£¬¶ÔÓÚlinux¿âÎļþ£¨¾²Ì¬¿âºÍ¹²Ïí¿â£©µÄËÑË÷·¾¶£¬³ýÁËÉÏÃæµÄÉèÖ÷½Ê½Ö®Í⣬»¹¿ÉÒÔͨ¹ý -L ²ÎÊýÏÔʽָ¶¨¡£ÒòΪÓà -L ÉèÖõÄ·¾¶½«±»ÓÅÏÈËÑË÷£¬ËùÒÔÔÚÁ¬½ÓµÄʱºòͨ³£¶
Ïà¹ØÎĵµ£º
Linux²Ù×÷ϵͳÏÂÒÔÌ«Íø¿¨µÄ°²×°¼°ÅäÖÃ
¡¾ÍøѶÍøÂçͨÐÅѧԺ¡¿
Linux²Ù×÷ϵͳÒÔÆä¶ÀÓеĿª·ÅÐÔ¡¢Îȶ¨ÐÔ¡¢¸ßЧÂʵÈÌص㣬Êܵ½Ô½À´Ô½¶àÓÐʶ֮ʿµÄÇàíù¡£Ëæ×ÅIT²úÒµ¾ÞÍ··×·×Ðû²¼¶ÔLinuxµÄÖ§³Ö£¬LinuxÕýÔÚѸËÙÀ©Õ¹ÆäÓ¦ÓÃÊг¡£¬ÌرðÊÇ·þÎñÆ÷Êг¡¡£ÔÚ±ê×¼ÉÏ£¬LinuxÓëPOSIX1003.1¼æÈÝ£¬µ«Ëü¾ßÓбÈÒÔסµÄUNIXÏµÍ ......
general setup
---> enable deprecated sysfs features which may confuse old
userspace tools
insmod: error inserting '/lib/dm-region-hash.ko' : -1 File exists
½â¾ö
cp /boot/initrd-2.6.x.img /tmp
cd /tmp
mkdir newinitrd
cd newinitrd/
zcat ../initrd-2.6.x.img |cpio -i
ÏÂ ......
ÔÚQTÖпÉÒÔÖ±½ÓʹÓÃQTextCodecÀ´×ª»»×Ö·û´®µÄ±àÂë¡£
ÀýÈ磬ÎÒÃÇÏëÔÚ³ÌÐòÖÐʹÓÃÖÐÎÄ£¬ÀàËÆtr£¨“飬ÄãºÃÂ𣿔£©¡£ÎÒÃÇÒªÔÚmainº¯ÊýÖÐÔö¼ÓÒÔϼ¸ÌõÓï¾ä£¬ÖØÐÂÉèÖÃÒ»ÏÂĬÈϵıàÂëÆ÷¡£
Ïȵ÷ÓÃÏÂÃæÁ½¸öº¯ÊýÖ®Ò»
QTextCodec *codec=QTextCodec::codecForName(”gbk”);
QTextCodec *codec=QTextCodec ......
À´×Ô http://blog.csdn.net/saintony/category/226987.aspx
¼ÆËã»ú×î´óµÄÊг¡ÊÇǶÈëʽÉ豸¡£»ù±¾ÉÏ£¬º¬ÓмÆËã»úµ«ÊÇÍâ±í²¢²»Ïó¼ÆËã»úµÄÒ»ÇÐÉ豸¶¼¿ÉËãǶÈëʽ£¬°üÀ¨ÍøÂçÉ豸£¨Èç·ÓÉÆ÷£©£¬¹¤¿ØÉ豸£¨ÈçÊý¿Ø»ú´²£©£¬Æû³µ£¬ÐÅÏ¢¼Òµç, Òƶ¯¼ÆËãÉ豸µÈ¸÷ÖÖÉ豸¡£ÄÇô£¬ÔÚÕâ¸ö×î´óµÄÊг¡ÖУ¬LinuxºÍWindows˸üÓÐʵÓÃÐÔÄØ£¿ÈÃÎÒà ......
ÔÚÅäÖÃÍøÂçʱ£¬ÒªÎª»úÆ÷Ö¸¶¨½ÓÊÕÊý¾Ý°üʱ¸Ã°üÒª¾¹ýµÄ·¾¶¡£ÔÚLinuxϵͳÖУ¬Ìṩһ¸öÃüÁîroute£¬Õâ¸öÃüÁî¿ÉÒÔΪifconfigÃüÁîÅäÖõÄÍø¿¨ÉèÖþ²Ì¬Â·ÓÉ¡£ÕâÖÖÉèÖù¤×÷ͨ³£ÔÚ/etc/rc.d/rc.inet1ÖÐÒýÈ룬ÔÚϵͳÒýµ¼Ê±½øÐС£
¡¡¡¡ÎÒÃÇͨ¹ý¼¸¸öÀý×ÓÀ´ËµÃ÷ÈçºÎʹÓÃrouteÃüÁî:
¡¡¡¡¡¡¡¡routeadd-net127.0.0.0
¡¡¡¡Õâ¸öÃüÁÏòÂ·Ó ......