Linux²Ù×÷ϵͳµÄConfigure²ÎÊý½âÊÍ˵Ã÷
Linux»·¾³ÏµÄÈí¼þ°²×°£¬²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飻Èç¹ûͨ¹ýÔ´´úÂë±àÒëºóÔÚ°²×°£¬µ±È»ÊÂÇé¾Í¸üΪ¸´ÔÓһЩ£»ÏÖÔÚ°²×°¸÷ÖÖÈí¼þµÄ½Ì³Ì¶¼·Ç³£Æձ飻µ«Íò±ä²»ÀëÆäÖУ¬¶Ô»ù´¡ÖªÊ¶µÄÔúʵÕÆÎÕ£¬°²×°¸÷ÖÖÈí¼þµÄÎÊÌâ¾ÍÓÈжø½âÁË¡£Configure½Å±¾ÅäÖù¤¾ß¾ÍÊÇ»ù´¡Ö®Ò»£¬ËüÊÇautoconfµÄ¹¤¾ßµÄ»ù±¾Ó¦Óá£
ÓëһЩ¼¼ÇÉÏà±È£¬ConfigureÏԵûù´¡Ò»Ð©£¬µ±È»Ê¹ÓúÍѧϰÆðÀ´¾ÍÏԵÿÝÔ﷦ζһЩ£¬µ±È»Òª³ÉΪ¸ßÊÖ£¬¶Ô»ù´¡µÄÊìϤ²»Äܳ¬Ô½Å¶¡£
Ϊ´ËÎÒתÔØÁËһƪ¹ØÓÚConfigureÑ¡ÏîÅäÖõÄÏêϸ½éÉÜ¡£¹©´ó¼Ò²Î¿¼
'configure'½Å±¾ÓдóÁ¿µÄÃüÁîÐÐÑ¡Ïî¡£¶Ô²»Í¬µÄÈí¼þ°üÀ´Ëµ£¬ÕâЩѡÏî¿ÉÄÜ»áÓб仯£¬µ«ÊÇÐí¶à»ù±¾µÄÑ¡ÏîÊDz»»á¸Ä±äµÄ¡£´øÉÏ'--help'Ñ¡ÏîÖ´ÐÐ'configure'½Å±¾¿ÉÒÔ¿´µ½¿ÉÓõÄËùÓÐÑ¡Ïî¡£¾¡¹ÜÐí¶àÑ¡ÏîÊǺÜÉÙÓõ½µÄ£¬µ«Êǵ±ÄãΪÁËÌØÊâµÄÐèÇó¶øconfigureÒ»¸ö°üʱ£¬ÖªµÀËûÃǵĴæÔÚÊǺÜÓÐÒæ´¦µÄ¡£ÏÂÃæ¶Ôÿһ¸öÑ¡Ïî½øÐмòÂԵĽéÉÜ£º
--cache-file=FILE
'configure'»áÔÚÄãµÄϵͳÉϲâÊÔ´æÔÚµÄÌØÐÔ(»òÕßbug!)¡£ÎªÁ˼ÓËÙËæºó½øÐеÄÅäÖ㬲âÊԵĽá¹û»á´æ´¢ÔÚÒ»¸öcache fileÀï¡£µ±configureÒ»¸öÿ¸ö×ÓÊ÷ÀﶼÓÐ'configure'½Å±¾µÄ¸´ÔÓµÄÔ´ÂëÊ÷ʱ£¬Ò»¸öºÜºÃµÄcache fileµÄ´æÔÚ»áÓкܴó°ïÖú¡£
--help
Êä³ö°ïÖúÐÅÏ¢¡£¼´Ê¹ÊÇÓоÑéµÄÓû§Ò²Å¼¶ûÐèҪʹÓÃʹÓÃ'--help'Ñ¡ÏÒòΪһ¸ö¸´ÔÓµÄÏîÄ¿»á°üº¬¸½¼ÓµÄÑ¡Ïî¡£ÀýÈ磬GCC°üÀïµÄ'configure'½Å±¾¾Í°üº¬ÁËÔÊÐíÄã¿ØÖÆÊÇ·ñÉú³ÉºÍÔÚGCCÖÐʹÓÃGNU»ã±àÆ÷µÄÑ¡Ïî¡£
--no-create
'configure'ÖеÄÒ»¸öÖ÷Òªº¯Êý»áÖÆ×÷Êä³öÎļþ¡£´ËÑ¡Ïî×èÖ¹'configure'Éú³ÉÕâ¸öÎļþ¡£Äã¿ÉÒÔÈÏΪÕâÊÇÒ»ÖÖÑÝÏ°(dry run)£¬¾¡¹Ü»º´æ(cache)ÈÔÈ»±»¸ÄдÁË¡£
--quiet
--silent
µ±'configure'½øÐÐËûµÄ²âÊÔʱ£¬»áÊä³ö¼òÒªµÄÐÅÏ¢À´¸æËßÓû§ÕýÔÚ×÷ʲô¡£ÕâÑù×÷ÊÇÒòΪ'configure'¿ÉÄÜ»á±È½ÏÂý£¬Ã»ÓÐÕâÖÖÊä³öµÄ»°Óû§½«»á±»ÈÓÔÚÒ»ÅÔÒÉ»óÕýÔÚ·¢Éúʲô£¬Ê¹ÓÃÕâÁ½¸öÑ¡ÏîÖеÄÈκÎÒ»¸ö¶¼»á°ÑÄãÈÓµ½Ò»ÅÔ¡£(Òë×¢£ºÕâÁ½¾ä»°±È½ÏÓÐÒâ˼£¬ÔÎÄÊÇÕâÑùµÄ£ºIf there was no such output, the user would be left wondering what is happening. By using this option, you too can be left wondering!)
--version
´òÓ¡ÓÃÀ´²úÉú'configure'½Å±¾µÄAutoconfµÄ°æ±¾ºÅ¡£
--prefix=PEWFIX
'--prefix'ÊÇ×î³£ÓõÄÑ¡Ïî¡£ÖÆ×÷³öµÄ'Makefile'»á²é¿´Ëæ´ËÑ¡Ïî´«µÝµÄ²ÎÊý£¬µ±Ò»¸ö°üÔÚ°²×°Ê±¿ÉÒÔ³¹µ×µÄÖØа²ÖÃËûµÄ½á¹¹¶ÀÁ¢²¿·Ö¡£¾ÙÒ»¸öÀý×Ó£¬µ±°²×°Ò»¸ö°ü£¬ÀýÈç˵Emacs£¬ÏÂÃæµÄÃüÁ»áʹEmacs Lisp file±»
Ïà¹ØÎĵµ£º
´´½¨×ÀÃæͼ±ê
Ä¿Ç°½«ÍøÂçÓ¦ÓÃÀ©Õ¹µ½×ÀÃæÊÇÒ»¸öÇ÷ÊÆ£¬´æÔÚןܶà½â¾ö·½°¸£¬±¾ÎÄÒÔ Mozilla Prism ΪÀý£¬ÀàËƵķ½·¨Í¬ÑùÊÊÓÃÓÚ Google Chrome ¡£
1. µ½ Mozilla Prism µÄÍøÕ¾ÉÏÏÂÔØ Prism£¬µã»÷ Download Now Ö®ºó»áÌáʾÓÐÁ½ÖÖ£¬Ò»ÖÖÊÇÒÔ Mozilla Firefox À©Õ¹µÄ·½Ê½£¬ÊʺÏÒѾ°²×°ÓÐ Firefox µÄÅóÓÑ£»Ò»Ö ......
Ò»ÄêÒ»¶ÈµÄLinux¿ª·¢Õß´ó»áÉÏÖÜÔھɽðɽ¾ÙÐУ¬»áÉÏLinux»ù½ð»áÖ´ÐÐÀíÊÂJim Zemlin±íʾ£¬µÃÒæÓÚÔƼÆËãÒÔ¼°ÆäËü¿Æ¼¼³±Á÷µÄ³öÏÖ£¬LinuxµÄÊг¡µØλʮ·ÖÎȹ̣¬È»¶øһЩÖ÷ÒªµÄά»¤ÈËÔ±ÒѾÈÕ½¥²ÔÀÏ£¬ºó¼ÌÕßÈ´»¹Ã»ÓгÉÊì¡£
sysfsÄÚºË×Óϵͳά»¤ÕßGrey Kroah-HartmanÖ¸³ö£º“ÉϲãµÄÈËÔ±ÈÔȻà ......
ÎÒÕýÔÚѧϰдlinux device driver for embedded system.
ÎÒÓÐÒ»¸ölinuxǶÈëʽÉ豸£¬Ò²ÓÐÕâ¸öÉ豸µÄlinuxÔ´´úÂë¡£Ò²ÓÐcross compiler tool chain.
µÚÒ»²½£¬¾ÍÊÇдһ¸ö¼òµ¥µÄhelloÄ£¿é£¬È»ºó×°µ½É豸ÖС£ÒÔÑéÖ¤ÎÒÕâ¸ö¿ª·¢»·¾³¡£
ÔÚÍøÉÏËÑË÷ÁËһϣ¬ how to cross compile linux device driver
·¢ÏÖÔÚlinux´úÂë¸ùĿ¼µÄMak ......
man¾ÍÊÇmanualµÄËõд£¬ÓÃÀ´²é¿´ÏµÍ³ÖÐ×Ô´øµÄ¸÷Öֲο¼Êֲᡣ
Ò»¡¢ËµÃ÷
1£¬ÊÖ²áÒ³·ÖΪºÃ¼¸¸ö²¿·Ö£¬ÈçÏÂËùʾ£º
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File fo ......
ip ÊǸöÃüÁ ip ÃüÁîµÄ¹¦Äܺܶ࣡»ù±¾ÉÏËüÕûºÏÁË ifconfig Óë route ÕâÁ½¸öÃüÁ²»¹ýip µÄ¹¦ÄܸüÇ¿´ó£¡ Èç¹ûÄúÓÐÐËȤµÄ»°£¬Çë×ÔÐÐ vi /sbin/ifup ¾ÍÖªµÀÕû¸ö ifup ¾ÍÊÇÀûÓà ip Õâ¸öÃüÁîÀ´ÊµÏֵġ£ÏÂÃæ½éÉÜÒ»ÏÂʹÓ÷½·¨
[root@linux ~]# ip [option] [¶¯×÷] [ÃüÁî]
²ÎÊý£º
option £ºÉ趨µÄ²ÎÊý£¬Ö÷ÒªÓУº
  ......