linuxϵÄso¡¢o¡¢lo¡¢a¡¢laÎļþÓÐʲôÇø±ð£¿
o: ±àÒëµÄÄ¿±êÎļþ
a: ¾²Ì¬¿â£¬Æäʵ¾ÍÊÇ°ÑÈô¸ÉoÎļþ´òÁ˸ö°ü
so: ¶¯Ì¬Á´½Ó¿â£¨¹²Ïí¿â£©
lo: ʹÓÃlibtool±àÒë³öµÄÄ¿±êÎļþ£¬Æäʵ¾ÍÊÇÔÚoÎļþÖÐÌí¼ÓÁËһЩÐÅÏ¢
la: ʹÓÃlibtool±àÒë³öµÄ¿âÎļþ£¬ÆäʵÊǸöÎı¾Îļþ£¬¼Ç¼ͬÃû¶¯Ì¬¿âºÍ¾²Ì¬¿âµÄÏà¹ØÐÅÏ¢
1 libtoolµÄ¹¤×÷ÔÀí
libtool ÊÇÒ»¸öͨÓÿâÖ§³Ö½Å±¾£¬½«Ê¹Óö¯Ì¬¿âµÄ¸´ÔÓÐÔÒþ²ØÔÚͳһ¡¢¿ÉÒÆÖ²µÄ½Ó¿ÚÖУ»Ê¹ÓÃlibtoolµÄ±ê×¼·½·¨£¬¿ÉÒÔÔÚ²»Í¬Æ½Ì¨ÉÏ´´½¨²¢µ÷Óö¯Ì¬¿â¡£¿ÉÒÔÈÏΪlibtoolÊÇgccµÄÒ»¸ö³éÏó£¬Æä°ü×°ÁËgcc£¨»òÕßÆäËûµÄ±àÒëÆ÷£©£¬Óû§ÎÞÐèÖªµÀϸ½Ú£¬Ö»Òª¸æËßlibtoolÐèÒª±àÒëÄÄЩ¿â¼´¿É£¬libtool½«´¦Àí¿âµÄÒÀÀµµÈϸ½Ú¡£libtoolÖ»Óëºó׺ÃûΪlo¡¢laΪµÄlibtoolÎļþ´ò½»µÀ¡£
libtoolÖ÷ÒªµÄÒ»¸ö×÷ÓÃÊÇÔÚ±àÒë´óÐÍÈí¼þµÄ¹ý³ÌÖнâ¾öÁË¿âµÄÒÀÀµÎÊÌ⣻½«·±ÖصĿâÒÀÀµ¹ØϵµÄά»¤¹¤×÷³Ðµ£ÏÂÀ´£¬´Ó¶øÊÍ·ÅÁ˳ÌÐòÔ±µÄÈËÁ¦×ÊÔ´¡£libtoolÌṩͳһµÄ½Ó¿Ú£¬Òþ²ØÁ˲»Í¬Æ½Ì¨¼ä¿âµÄÃû³ÆµÄ²îÒìµÈϸ½Ú£¬Éú³ÉÒ»¸ö³éÏóµÄºó׺ÃûΪla¸ß²ã¿âlibxx.la£¨ÆäʵÊǸöÎı¾Îļþ£©£¬²¢½«¸Ã¿â¶ÔÆäËü¿âµÄÒÀÀµ¹Øϵ£¬¶¼Ð´ÔÚ¸ÃlaµÄÎļþÖС£¸ÃÎļþÖеÄdependency_libs¼Ç¼¸Ã¿âÒÀÀµµÄËùÓп⣨ÆäÖÐÓÐЩÊÇÒÔ.laÎļþµÄÐÎʽ¼ÓÈëµÄ£©£»libdirÔòÖ¸³öÁË¿âµÄ°²×°Î»Öã»library_names¼Ç¼Á˹²Ïí¿âµÄÃû×Ö£»old_library¼Ç¼Á˾²Ì¬¿âµÄÃû×Ö¡£
µ±±àÒë¹ý³Ìµ½link½×¶ÎµÄʱºò£¬Èç¹ûÓÐÏÂÃæµÄÃüÁ
$libtool --mode=link gcc -o myprog -rpath /usr/lib –L/usr/lib –la
libtool»áµ½/usr/lib·¾¶ÏÂȥѰÕÒliba.la£¬È»ºó´ÓÖжÁȡʵ¼ÊµÄ¹²Ïí¿âµÄÃû×Ö£¨library_namesÖмǼÁ˸ÃÃû×Ö£¬±ÈÈçliba.so£©ºÍ·¾¶(lib_dirÖмǼÁË£¬±ÈÈçlibdir=’/usr/lib’)£¬·µ»ØÖîÈç/usr/lib/liba.soµÄ²ÎÊý¸ø¼¤·¢³öµÄgccÃüÁîÐС£
Èç¹ûliba.soÒÀÀµÓÚ¿â/usr/lib/libb.so£¬ÔòÔÚliba.laÖн«»áÓÐdependency_libs=’-L/usr/lib -lb’»òÕßdependency_libs=’/usr/lib/libb.la’µÄÐУ¬Èç¹ûÊÇÇ°Õߣ¬Æ佫ֱ½Ó°Ñ“-L/usr/lib –lb”µ±×÷²ÎÊý´«¸øgccÃüÁîÐУ»Èç¹ûÊǺóÕߣ¬libtool½«´Ó/usr/lib/libb.laÖжÁȡʵ¼ÊµÄlibb.soµÄ¿âÃû³ÆºÍ·¾¶£¬È»ºó×éºÏ³É²ÎÊý“/usr/lib/libb.so”´«µÝ¸øgccÃüÁîÐС£
µ±ÒªÉú³ÉµÄÎļþÊÇÖîÈçlibmylib.laµÄʱºò£¬±ÈÈ磺
$libtool --mode=link gcc -o libmylib.la -rpath /usr/lib –L/usr/lib –la
ÆäÒÀÀµµÄ¿âµÄËÑË÷»ù±¾ÀàËÆ£¬Ö»ÊÇÔÚÕâ¸öʱºò»á¸ù¾ÝÏàÓ¦µÄ¹æÔòÉú³ÉÏàÓ¦µÄ¹²Ïí¿
Ïà¹ØÎĵµ£º
Ö÷ÒªÓÐÏÂÃæÈýÖÖ·½Ê½£º
1.whereis ÎļþÃû
Ìصã:¿ìËÙ, Ö´ÐÐ׼ȷ²éÕÒ¡£
2.find / -name ÎļþÃû
²é³öºÜ¶à¶«Î÷£¬Óкܶà
“Permission Denied".
#find / -name php.ini
3.locate ÎļþÃû
×î¿ìµÄ·½·¨.Ö´ÐÐÄ£ºý²éÕÒ¡£
×¢Òâ:µÚÒ»´ÎʹÓøÃÃüÁî,¿ÉÄÜÐèÒª¸üÐÂÊý¾Ý¿â,°´ÕÕÌáʾµÄÃüÁîÖ´ÐÐһϾͺÃÁË.
ÕâÀï¾ÍҪ˵˵loc ......
½«¿ÉÒƶ¯É豸Á¬Èëϵͳʱ£¬ÏµÍ³µÄºǫ́ÖлáÒÀ´Î·¢ÉúÈçÏÂʼþ£º
l Äں˼ì²âµ½ÐÂÓ²¼þ²åÈ룬Ȼºó·Ö±ð֪ͨhotplugºÍudev¡£Ç°ÕßÓÃÀ´×°ÈëÏàÓ¦µÄÄÚºËÄ£¿é(Èçusb-storage)£¬¶øºóÕßÓÃÀ´ÔÚ/devÖд´½¨ÏàÓ¦µÄÉ豸½Úµã(Èç/dev/sda1)¡£
l udev´´½¨ÁËÏàÓ¦µÄÉ豸½ÚµãÖ®ºó£¬»á½«ÕâÒ»ÏûϢ֪ͨhalµÄÊØ»¤³ÌÐò(hald)¡£µ±È»udev»¹µÃ±£Ö¤Ð ......
µ±ÔÚLinuxÏÂƵ·±´æÈ¡Îļþ
ºó£¬ÎïÀíÄÚ´æ»áºÜ¿ì±»Óù⣬µ±³ÌÐò
½áÊøºó£¬ÄÚ´æ²»»á±»Õý³£ÊÍ·Å£¬¶øÊÇÒ»Ö±×÷Ϊcaching¡£Õâ¸öÎÊÌ⣬òËÆÓв»ÉÙÈËÔÚÎÊ£¬²»¹ý¶¼Ã»Óп´µ½ÓÐʲôºÜºÃ½â¾ö
µÄ°ì·¨¡£ÄÇôÎÒÀ´Ì¸Ì¸Õâ¸öÎÊÌâ¡£
Ò»¡¢Í¨³£Çé¿ö
ÏÈÀ´ËµËµfreeÃüÁî
£º
ÒýÓÃ
[root@server ~]# free -m
total used free shared buffers cac ......
; break;
}
if (type != EV_SYN)
&nbs ......
The Linux USB input subsystem is a single, harmonized way to manage all input devices. This is a relatively new approach for Linux, with the system being partly incorporated in kernel version 2.4 and fully integrated in the 2.5 development series.
This article covers four basic areas: a descripti ......