Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linuxѧϰ£¨¶þ).1(ת)

1. Íù/libºÍ/usr/libÀïÃæ¼Ó¶«Î÷£¬ÊDz»ÓÃÐÞ¸Ä/etc/ld.so.confµÄ£¬µ«ÊÇÍêÁËÖ®ºóÒªµ÷Ò»ÏÂldconfig£¬²»È»Õâ¸ölibrary»áÕÒ²»µ½
2. ÏëÍùÉÏÃæÁ½¸öĿ¼ÒÔÍâ¼Ó¶«Î÷µÄʱºò£¬Ò»¶¨ÒªÐÞ¸Ä/etc/ld.so.conf£¬È»ºóÔÙµ÷ÓÃldconfig£¬²»È»Ò²»áÕÒ²»µ½
±ÈÈç°²×°ÁËÒ»¸ömysqlµ½/usr/local/mysql£¬mysqlÓÐÒ»´ó¶ÑlibraryÔÚ/usr/local/mysql/libÏÂÃ棬Õâʱ¾ÍÐèÒªÔÚ/etc/ld.so.confÏÂÃæ¼ÓÒ»ÐÐ/usr/local/mysql/lib£¬±£´æ¹ýºóldconfigһϣ¬ÐµÄlibrary²ÅÄÜÔÚ³ÌÐòÔËÐÐʱ±»ÕÒµ½¡£
3. Èç¹ûÏëÔÚÕâÁ½¸öĿ¼ÒÔÍâ·Ålib£¬µ«ÊÇÓÖ²»ÏëÔÚ/etc/ld.so.confÖмӶ«Î÷£¨»òÕßÊÇûÓÐȨÏÞ¼Ó¶«Î÷£©¡£ÄÇÒ²¿ÉÒÔ£¬¾ÍÊÇexportÒ»¸öÈ«¾Ö±äÁ¿LD_LIBRARY_PATH£¬È»ºóÔËÐгÌÐòµÄʱºò¾Í»áÈ¥Õâ¸öĿ¼ÖÐÕÒlibrary¡£Ò»°ãÀ´½²ÕâÖ»ÊÇÒ»ÖÖÁÙʱµÄ½â¾ö·½°¸£¬ÔÚûÓÐȨÏÞ»òÁÙʱÐèÒªµÄʱºòʹÓá£
4. ldconfig×öµÄÕâЩ¶«Î÷¶¼ÓëÔËÐгÌÐòʱÓйأ¬¸ú±àÒëʱһµã¹Øϵ¶¼Ã»ÓС£±àÒëµÄʱºò»¹ÊǸüÓ-L¾ÍµÃ¼Ó£¬²»Òª»ìÏýÁË¡£
5. ×ÜÖ®£¬¾ÍÊDz»¹Ü×öÁËʲô¹ØÓÚlibraryµÄ±ä¶¯ºó£¬×îºÃ¶¼ldconfigһϣ¬²»È»»á³öÏÖһЩÒâÏë²»µ½µÄ½á¹û¡£²»»á»¨Ì«¶àµÄʱ¼ä£¬µ«ÊÇ»áÊ¡ºÜ¶àµÄÊ¡£
¼¸¸öÌØÊâµÄ»·¾³±äÁ¿£º
LD_LIBRARY_PATH Õâ¸ö»·¾³±äÁ¿ÊÇ´ó¼Ò×îΪÊìϤµÄ£¬Ëü¸æËßloader£ºÔÚÄÄЩĿ¼ÖпÉÒÔÕÒµ½¹²Ïí¿â¡£¿ÉÒÔÉèÖöà¸öËÑË÷Ŀ¼£¬ÕâЩĿ¼֮¼äÓÃðºÅ·Ö¸ô¿ª¡£ÔÚlinuxÏ£¬»¹ÌṩÁËÁíÍâÒ»ÖÖ·½Ê½À´Íê³ÉͬÑùµÄ¹¦ÄÜ£¬Äã¿ÉÒÔ°ÑÕâЩĿ¼¼Óµ½/etc/ld.so.confÖУ¬»òÔòÔÚ/etc/ld.so.conf.dÀï´´½¨Ò»¸öÎļþ£¬°ÑĿ¼¼Óµ½Õâ¸öÎļþÀï¡£µ±È»£¬ÕâÊÇϵͳ·¶Î§ÄÚÈ«¾ÖÓÐЧµÄ£¬¶ø»·¾³±äÁ¿Ö»¶Ôµ±Ç°shellÓÐЧ¡£°´ÕÕ¹ßÀý£¬³ý·ÇÄãÓÃÉÏÊö·½Ê½Ö¸Ã÷£¬loaderÊDz»»áÔÚµ±Ç°Ä¿Â¼ÏÂÈ¥ÕÒ¹²Ïí¿âµÄ£¬ÕýÈçshell²»»áÔÚµ±Ç°Ä¿Ç°ÕÒ¿ÉÖ´ÐÐÎļþÒ»Ñù¡£
LD_PRELOAD Õâ¸ö»·¾³±äÁ¿¶ÔÓÚ³ÌÐòÔ±À´Ëµ£¬Ò²ÊÇÌرðÓÐÓõġ£Ëü¸æËßloader£ºÔÚ½âÎöº¯ÊýµØַʱ£¬ÓÅÏÈʹÓÃLD_PRELOADÀïÖ¸¶¨µÄ¹²Ïí¿âÖеĺ¯Êý¡£ÕâΪµ÷ÊÔÌṩÁË·½±ã£¬±ÈÈ磬¶ÔÓÚC/C++³ÌÐòÀ´Ëµ£¬ÄÚ´æ´íÎó×îÄѽâ¾öÁË¡£³£¼ûµÄ×ö·¨¾ÍÊÇÖØÔØmallocϵÁк¯Êý£¬µ«ÄÇÑù×öÒªÇóÖØбàÒë³ÌÐò£¬±È½ÏÂé·³¡£Ê¹Óà LD_PRELOAD»úÖÆ£¬¾Í²»ÓÃÖØбàÒëÁË£¬°Ñ°ü×°º¯Êý¿â±àÒë³É¹²Ïí¿â£¬²¢ÔÚLD_PRELOAD¼ÓÈë¸Ã¹²Ïí¿âµÄÃû³Æ£¬ÕâЩ°ü×°º¯Êý¾Í»á×Ô¶¯±»µ÷ÓÃÁË¡£ÔÚlinuxÏ£¬»¹ÌṩÁËÁíÍâÒ»ÖÖ·½Ê½À´Íê³ÉͬÑùµÄ¹¦ÄÜ£¬Äã¿ÉÒÔ°ÑÒªÓÅÏȼÓÔصĹ²Ïí¿âµÄÎļþÃûдÔÚ/etc/ld.so.preloadÀï¡£µ±È»£¬ÕâÊÇϵͳ·¶Î§ÄÚÈ«¾ÖÓÐЧµÄ£¬¶ø»·¾³±äÁ¿Ö»¶Ôµ±Ç°shellÓÐЧ¡£
LD_ DEBUG Õâ¸ö»·¾³±äÁ¿±È½ÏºÃÍ棬ÓÐʱ


Ïà¹ØÎĵµ£º

Linux ƽ̨ÉϵÄÈí¼þ°ü¹ÜÀí

°²×°£¬Éý¼¶ºÍжÔØÓ¦ÓÃÈí¼þÊÇÓ°ÏìÓû§¶Ô²Ù×÷ϵͳÆÀ¼ÛµÄ¾ö¶¨ÐÔÒòËØÖ®Ò»¡£¶ÔÓÚÈÕ½¥Á÷ÐÐµÄ GNU/Linux ²Ù×÷ϵͳ£¬ÓµÓмò½àÇ¿´óµÄÈí¼þ°ü¹ÜÀí»úÖƹ¦²»¿Éû¡£±¾ÎÄ´Ó»ù±¾µÄ rpm/dpkg ÃüÁîÐгö·¢£¬ÒÔ RHEL ºÍ Ubuntu
ΪÀý£¬½éÉܵäÐÍ Linux ϵͳÖÐÓ¦ÓÃÈí¼þµÄ¹ÜÀíºÍʹÓá£
RPM/DPKG Á½´óÕóÓª¼ò½é
ÔÚ GNU/Linux( ÒÔϼò³Æ Linux) ²Ù× ......

Linux É豸Çý¶¯³ÌÐò½ø½×£¨0£©

ºÜ¾ÃûÓÐд¼¼Êõ²©ÎÄÁË£¬´ÓÕâÀ↑ʼÎÒµÄÑо¿ÉúÉúÑÄ£¬×ªÑÛ¾ÍÒªÔÚÖ°³¡ÉÏÑø¼Òºý¿Ú£¬Éú»îÕæµÄ²»ÈÝÒ×£¬ÐҺû¹Óм¼ÊõÏà°éΪÎé¡£
ÓÉÓÚ¹¤×÷µÄ¹Øϵ£¬ÖÕÓÚ½Ó´¥µ½linuxÍøÂçºÍkernelµÄ±à³Ì£¬×ÜÌåÀ´Ëµ×ÜÊÇÒ»¸öºÃµÄÆõ»ú¡£ÈÃÎÒÄܹ»ÉîÈë²Ù×÷ϵͳÄںˡ£×ö¹ýÒ»¶Îʱ¼äµÄÓû§³ÌÐòµÄ¿ª·¢£¬×ÜÊÇÔÚWindowsƽ̨ÉÏ£¬ÖÕÓÚÓлú»áÔÚlinuxÉÏ×öµã¶«Î÷£¬»¹Ê ......

ǶÈëʽLinuxÎļþϵͳ¼°Æä´æ´¢»úÖÆ·ÖÎö

     ǶÈëʽϵͳÓëͨÓÃPC»ú²»Í¬£¬Ò»°ãûÓÐÓ²ÅÌÕâÑùµÄ´æ´¢É豸¶øÊÇʹÓÃFlashÉÁ´æоƬ¡¢Ð¡ÐÍÉÁ´æ¿¨µÈרΪǶÈëʽϵͳÉè¼ÆµÄ´æ´¢×°Ö㬱¾ÎÄ·ÖÎöÁËǶÈëʽϵͳÖг£ÓõĴ洢É豸¼°Æä¹ÜÀí»úÖÆ£¬½éÉÜÁ˳£ÓõĻùÓÚFLASHµÄÎļþϵͳÀàÐÍ¡£
1£®Ç¶Èëʽϵͳ´æ´¢É豸¼°Æä¹ÜÀí»úÖÆ·ÖÎö
¡¡¡¡¹¹½¨ÊÊÓÃÓÚǶÈëʽϵͳµÄLi ......

linuxÏÂÖ´ÐÐphpÎļþ·¢ÏÖCould not open input file

ÔÚlinuxÏÂͨ¹ýsvn¸üÐÂÁËÒ»¸öphpÎļþ£¬Ä¿µÄÊÇÏëͨ¹ýÖ´ÐÐÕâ¸öÎļþÀ´¶ÁÊý¾Ý²åÈëµ½Êý¾Ý¿â¡£ÔÚÆäÖеļ¸Ì¨Ö´ÐÐûÓÐÎÊÌ⣬ÆäÖÐһ̨¾Í·¢ÏÖÁËCould not open input fileÕâ¸ö´íÎ󣬺óÀ´²éÕÒ×ÊÁϲŷ¢ÏÖÔ­À´ÊÇÎļþ¸ñʽµÄÎÊÌ⣬³ö´íʱÎļþ¸ñʽÊÇdos£¬¿ÉÒÔÔÚviÖÐÓÃ:set ffÀ´²é¿´£¬Èç¹ûÊÇdos¸ñʽ£¬ÄÇôÔòÓÃ:set ff=unixÀ´ÉèÖÃеĸñʽ£¬ÕâÑ ......

Linuxѧϰ£¨¶þ£© ¹²Ïí¿âµÄ°²×°

°²×°³ÌÐòËùÐèÒªµÄ¹²Ïí¿âʱÐèҪעÒâµÄÎÊÌâ¡£
ÆðÒò£º°²×°libsqlite3.so.0 ºó£¬Ê¹ÓÃldd test ʱ£¬È´ÕÒ²»µ½¸Ã¿âÎļþ¡£
        ÔÚʹÓÃcpptest¶ÔÔ­³ÌÐòÔËÐе¥Ôª²âÊÔʱ£¬·¢ÏÖ´íÎ󣬼´ÕÒ²»µ½¿âÎļþ¡£
°²×°Íêlibsqlite3.so.0ºó£¬ÆäÊÇ´æ´¢ÔÚusr/local/libµÄ¡£ËùÒÔÎÊÌâÔÚÓÚ£¬linuxϵÄ×°ÔسÌÐò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ