尊龙凯时人生就是搏

Linux ldconfig¹¦Ð§ÆÊÎö

Linux ldconfig¹¦Ð§ÆÊÎö

ÔÚLinuxϵͳÖÐ  £¬ldconfigÊÇÒ»¸öÓÃÓÚÉèÖÃÔËÐÐʱÁ´½ÓÆ÷µÄÊÊÓóÌÐò  £¬Ëü±»ÓÃÀ´¸üй²Ïí¿âµÄ»º´æÒÔ¼°ÔËÐÐʱ¿âµÄ·ûºÅÁ´½Ó¡£Í¨¹ýʹÓÃldconfigÏÂÁî  £¬Óû§¿ÉÒÔÀû±ãµØÖÎÀíϵͳÉϵĹ²Ïí¿â  £¬È·±£³ÌÐòÄܹ»×¼È·µØÁ´½Óµ½ËùÐèµÄ¿â²¢Õý³£ÔËÐС£

ldconfig ÔÚLinuxϵͳÖÐÊÎÑÝןÜÊÇÖ÷ÒªµÄ½ÇÉ«  £¬ËüÓÐÖúÓÚϵͳÔÚÔËÐÐʱ¶¯Ì¬¼ÓÔع²Ïí¿â  £¬²¢ÇÒÌá¸ßÁËÈí¼þµÄÔËÐÐЧÂÊ¡£ÔÚ±¾ÎÄÖÐ  £¬ÎÒÃǽ«ÏêϸÆÊÎöldconfigµÄ¹¦Ð§  £¬ÒÔ¼°ÔõÑù׼ȷµØʹÓÃldconfigÏÂÁîÀ´ÖÎÀí¹²Ïí¿â¡£

Ò»¡¢ldconfigÏÂÁîÓï·¨

ldconfigÏÂÁîµÄÓï·¨ºÜÊǼòÆÓ  £¬Ò»Ñùƽ³£ÃûÌÃÈçÏÂËùʾ£º

ldconfig [Ñ¡Ïî] [·¾¶]

µÇ¼ºó¸´ÖÆ

Ñ¡Ï

-n£º½ö´òÓ¡ÐèÒª¸üеÄÄÚÈÝ  £¬¶ø²»ÏÖʵ¸üС£

-v£ºÏÔʾÏêϸÐÅÏ¢  £¬°üÀ¨ÕýÔÚÌí¼ÓµÄ¿âÒÔ¼°ÕýÔÚ²éÕҵķ¾¶¡£

-p£ºÏÔʾĿ½ñ»º´æÖеÄËùÓй²Ïí¿â¡£

·¾¶£º¿ÉÑ¡µÄ·¾¶²ÎÊýÓÃÓÚÖ¸¶¨Òª¸üй²Ïí¿â»º´æµÄ·¾¶¡£

¶þ¡¢ldconfig¹¦Ð§ÆÊÎö

¸üй²Ïí¿â»º´æ

ldconfigµÄÖ÷Òª¹¦Ð§Ö®Ò»¾ÍÊÇÓÃÀ´¸üÐÂϵͳµÄ¹²Ïí¿â»º´æ¡£µ±Óû§×°ÖÃÐµĹ²Ïí¿âÎļþ»òÕß½«ÏÖÓеĹ²Ïí¿âÎļþÒƶ¯µ½²î±ðµÄ·¾¶Ê±  £¬Í¨¹ýÔËÐÐldconfigÏÂÁî¿ÉÒÔ¸üÐÂϵͳµÄ¹²Ïí¿â»º´æ  £¬ÈòÙ×÷ϵͳÄܹ»×¼È·µØ¶¨Î»µ½ÕâЩ¹²Ïí¿âÎļþ¡£

²éÕÒ¹²Ïí¿â

µ±³ÌÐòÔÚÔËÐÐʱÐèÒª¼ÓÔØ¿âÎļþʱ  £¬ÏµÍ³»áͨ¹ýldconfigά»¤µÄ¹²Ïí¿â»º´æÀ´²éÕÒ¶ÔÓ¦µÄ¿âÎļþ¡£ldconfig»á±éÀúϵͳָ¶¨µÄ·¾¶  £¬²éÕÒÇкÏÒÀÀµ¹ØϵµÄ¹²Ïí¿âÎļþ²¢½¨Éè·ûºÅÁ´½Ó  £¬ÒÔ±ã³ÌÐòÄܹ»×¼È·Á´½Óµ½ËùÐèµÄ¿âÎļþ¡£

ÖÎÀí¿âÎļþ·¾¶

ͨ¹ýldconfigÏÂÁî¿ÉÒÔÀû±ãµØÖÎÀíϵͳÖÐËùÓй²Ïí¿âÎļþµÄ·¾¶¡£Óû§¿ÉÒÔͨ¹ýldconfigÏÂÁîÌí¼Ó¡¢É¾³ý»ò¸üй²Ïí¿âÎļþµÄ·¾¶  £¬È·±£ÏµÍ³Äܹ»×¼È·µØ¼ÓÔز¢Á´½ÓÕâЩ¿âÎļþ¡£

Èý¡¢ldconfigʵÀýÑÝʾ

ÏÂÃæÎÒÃÇͨ¹ýÒ»¸öʵÀýÀ´ÑÝʾÔõÑùʹÓÃldconfigÏÂÁîÀ´¸üй²Ïí¿â»º´æ£º

¼ÙÉèÎÒÃÇÔÚϵͳÖÐ×°ÖÃÁËÒ»¸öÐµĹ²Ïí¿âÎļþlibtest.so  £¬²¢½«Æä·¾¶ÉèÖÃΪ/usr/local/lib  £¬ÏÖÔÚÎÒÃÇÐèҪʹÓÃldconfigÏÂÁîÀ´¸üÐÂϵͳµÄ¹²Ïí¿â»º´æ¡£

½«libtest.so¿½±´µ½/usr/local/libĿ¼Ï£º

cp libtest.so /usr/local/lib

µÇ¼ºó¸´ÖÆ

ÔËÐÐldconfigÏÂÁî¸üÐÂϵ×ܹ²Ïí¿â»º´æ£º

ldconfig /usr/local/lib

µÇ¼ºó¸´ÖÆ

Éó²éÊÇ·ñÀֳɸüй²Ïí¿â»º´æ£º

ldconfig -p | grep libtest.so

µÇ¼ºó¸´ÖÆ

ͨ¹ýÉÏÊöʵÀý  £¬ÎÒÃÇÀֳɵØʹÓÃldconfigÏÂÁî¸üÐÂÁËϵͳµÄ¹²Ïí¿â»º´æ  £¬È·±£ÏµÍ³Äܹ»×¼È·µØ¼ÓÔغÍÁ´½Ólibtest.so¹²Ïí¿âÎļþ¡£

ËÄ¡¢×ܽá

ÔÚLinuxϵͳÖÐ  £¬ldconfigÏÂÁîÊÇÒ»¸öºÜÊÇÊÊÓõŤ¾ß  £¬ÓÃÀ´ÖÎÀíϵͳµÄ¹²Ïí¿âÎļþ¡£Í¨¹ý׼ȷµØʹÓÃldconfigÏÂÁî  £¬Óû§¿ÉÒÔÈ·±£ÏµÍ³Äܹ»×¼È·µØ¼ÓÔغÍÁ´½Ó¹²Ïí¿âÎļþ  £¬°ü¹Ü³ÌÐòÕý³£ÔËÐС£

Ï£Íû±¾ÎĶÔÄãÃ÷È·ldconfigµÄ¹¦Ð§¼°Ê¹ÓÃÓÐËù×ÊÖú  £¬Ò²Ï£Íû¶ÁÕßÄܹ»ÔÚÏÖʵµÄLinuxϵͳÖÎÀíÖÐÎÞаÔËÓÃldconfigÏÂÁî  £¬Ìá¸ßϵͳµÄÎȹÌÐÔºÍÐÔÄÜ¡£

ÒÔÉϾÍÊÇLinux ldconfig¹¦Ð§ÆÊÎöµÄÏêϸÄÚÈÝ  £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí  £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø  £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是搏ÂËÓÍ»úÍø¹Ù·½Ì¬¶È  £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ  £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢  £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢  £¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是搏ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是搏

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå  £¬9:30-18:30  £¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ