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

linux gcc ±àÒëʱͷÎļþºÍ¿âÎļþËÑË÷·¾¶

Ò»¡¢Í·Îļþ
 
gcc ÔÚ±àÒëʱѰÕÒËùÐèÒªµÄÍ·Îļþ £º
 
¡ùËÑѰ»á´Ó-I¿ªÊ¼
 
¡ùÈ»ºóÕÒgccµÄ»·¾³±äÁ¿ C_INCLUDE_PATH,CPLUS_INCLUDE_PATH,OBJC_INCLUDE_PATH
 
¡ùÔÙÕÒÄÚ¶¨Ä¿Â¼
/usr/include 
/usr/local/include
/usr/lib/gcc-lib/i386-linux/2.95.2/include
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../include/g++-3
/usr/lib/gcc-lib/i386-linux/2.95.2/../../../../i386-linux/include
 
¿âÎļþµ«ÊÇÈç¹û×°gccµÄʱºò£¬ÊÇÓиø¶¨µÄprefixµÄ»°£¬ÄÇô¾ÍÊÇ
/usr/include 
prefix/include
prefix/xxx-xxx-xxx-gnulibc/include
prefix/lib/gcc-lib/xxxx-xxx-xxx-gnulibc/2.8.1/include
 
¶þ¡¢¿âÎļþ
±àÒëµÄʱºò:
¡ùgcc»áÈ¥ÕÒ-L
¡ùÔÙÕÒgccµÄ»·¾³±äÁ¿LIBRARY_PATH
 
¡ùÔÙÕÒÄÚ¶¨Ä¿Â¼ /lib£º/usr/lib£º /usr/local/lib£ºÕâÊǵ±³õcompile gccʱдÔÚ³ÌÐòÄÚµÄ
Èý¡¢ÔËÐÐʱ¶¯Ì¬¿âµÄËÑË÷·¾¶
1¡¢ÔÚÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶
2¡¢Í¨¹ý»·¾³±äÁ¿LD_LIBRARY_PATHÖ¸¶¨¶¯Ì¬¿âËÑË÷·¾¶£¨µ±Í¨¹ý¸Ã»·¾³±äÁ¿Ö¸¶¨¶à¸ö¶¯Ì¬¿âËÑË÷·¾¶Ê±£¬Â·¾¶Ö®¼äÓÃðºÅ"£º"·Ö¸ô£©
 
3¡¢ÔÚ±àÒëÄ¿±ê´úÂëʱָ¶¨¸Ã³ÌÐòµÄ¶¯Ì¬¿âËÑË÷·¾¶£¨»¹¿ÉÒÔÔÚ±àÒëÄ¿±ê´úÂëʱָ¶¨³ÌÐòµÄ¶¯Ì¬¿âËÑË÷·¾¶¡£
 
ÕâÊÇͨ¹ýgcc µÄ²ÎÊý"-Wl,-rpath,"Ö¸¶¨¡£µ±Ö¸¶¨¶à¸ö¶¯Ì¬¿âËÑË÷·¾¶Ê±£¬Â·¾¶Ö®¼äÓÃðºÅ"£º"·Ö¸ô
4¡¢Ä¬ÈϵĶ¯Ì¬¿âËÑË÷·¾¶/lib    /usr/lib
¿ÉÒÔͨ¹ýÖ´ÐпÉÖ´ÐÐÎļþposµÃµ½µÄ½á¹û²»Í¬»ñÖªÆäËÑË÷µ½ÁËÄĸö¶¯Ì¬¿â£¬´Ó¶ø»ñµÃµÚ1¸ö¶¯Ì¬¿âËÑË÷˳Ðò£¬È»ºóɾ³ý¸Ã¶¯Ì¬¿â£¬
 
ÔÙÖ´ÐгÌÐòpos£¬»ñµÃµÚ2¸ö¶¯Ì¬¿âËÑË÷·¾¶£¬ÔÙɾ³ýµÚ2¸ö±»ËÑË÷µ½µÄ¶¯Ì¬¿â£¬
 
Èç´ËÍù¸´£¬½«¿ÉµÃµ½LinuxËÑË÷¶¯Ì¬¿âµÄÏȺó˳Ðò¡£
³ÌÐòposÖ´ÐеÄÊä³ö½á¹ûºÍËÑË÷µ½µÄ¶¯Ì¬¿âµÄ¶ÔÓ¦¹ØÏµÈç±í1Ëùʾ
 
³ÌÐòposÊä³ö½á¹û ʹÓõĶ¯Ì¬¿â ¶ÔÓ¦µÄ¶¯Ì¬¿âËÑË÷·¾¶Ö¸¶¨·½Ê½
./ ./libpos.so ±àÒëÄ¿±ê´úÂëʱָ¶¨µÄ¶¯Ì¬¿âËÑË÷·¾¶
 
/root/test/env/lib /root/test/env/lib/libpos.so »·¾³±äÁ¿LD_LIBRARY_PATHÖ¸¶¨µÄ¶¯Ì¬¿âËÑË÷·¾¶
 
/root/test/conf/lib /root/test/conf/lib/libpos.so ÅäÖÃÎļþ/etc/ld.so.confÖÐÖ¸¶¨µÄ¶¯Ì¬¿âËÑË÷·¾¶
 
/lib /lib/libpos.so ĬÈϵĶ¯Ì¬¿âËÑË÷·¾¶/lib
 
/usr/lib /usr/lib/libpos.so ĬÈϵĶ¯Ì¬¿âËÑË÷·¾¶/usr/lib
 
¶¯


Ïà¹ØÎĵµ£º

linux µÄ¿â²Ù×÷ÃüÁî arºÍnm


linux µÄ¿â²Ù×÷ÃüÁî arºÍnm
µ±ÎÒÃǵijÌÐòÖÐÓо­³£Ê¹ÓõÄÄ£¿é£¬¶øÇÒÕâÖÖÄ£¿éÔÚÆäËû³ÌÐòÖÐÒ²»áÓõ½£¬Õâʱ°´ÕÕÈí¼þÖØÓõÄ˼Ï룬ÎÒÃÇÓ¦¸Ã½«ËüÃÇÉú³É¿â£¬Ê¹µÃÒÔºó±à³Ì¿ÉÒÔ¼õÉÙ¿ª·¢´úÂëÁ¿¡£ÕâÀï½éÉÜÁ½¸öÃüÁîarºÍnm£¬ÓÃÀ´¶Ô¿â²Ù×÷¡£  
 
1.ar»ù±¾Ó÷¨
2.nm»ù±¾Ó÷¨ÃüÁî
 
¡¡µ±ÎÒÃǵijÌÐòÖÐÓо­³£ ......

MySQL(rootÓû§)ÃÜÂëÍü¼ÇÖØÖÃ(Windows/Linux)

MySQL(rootÓû§)ÃÜÂëÍü¼ÇÖØÖÃ
·Ö±ðÔÚWindowsϺÍLinuxÏÂÖØÖÃÁËMYSQLµÄrootµÄÃÜÂ룬ÕûÀíÈçÏ£º
¡¡¡¡A£ºÔÚwindowsÏ£º
¡¡¡¡1£º½øÈëcmd£¬Í£Ö¹mysql·þÎñ£ºNet stop mysql
¡¡¡¡   µ½mysqlµÄ°²×°Â·¾¶Æô¶¯mysql£¬ÔÚbinĿ¼ÏÂʹÓÃmysqld-nt.exeÆô¶¯£¬
¡¡¡¡2£ºÖ´ÐУºmysqld-nt --skip-grant-tables£¨´°¿Ú»áһֱֹͣ ......

¼¸¸ölinux×ÀÃæÏ³£ÓõÄÈí¼þ#archlinux £¨1£©

1¡¢  freemind ˼¿¼Èí¼þ
sudo pacman -S freemind
2¡¢  gnomesword  Ê¥¾­Ñ§Ï°Èí¼þ# clucene-0.9.21b-1  sword-1.6.1-1  xiphos-3.1.2-1 
sudo pacman -S gnomesword
3¡¢exaileÒôÀÖ²¥·ÅÆ÷
sudo pacman -S exaile
4¡¢°²×° mp3blaster
sudo pacman -S mp3blaster
5 ¡¢°²×°msnÈí¼þ
sud ......

ʹÓà /proc ÎļþϵͳÀ´·ÃÎÊ Linux Äں˵ÄÄÚÈÝ

²Î¼û£ºhttp://www.ibm.com/developerworks/cn/linux/l-proc.html
ʹÓà /proc ÎļþϵͳÀ´·ÃÎÊ Linux Äں˵ÄÄÚÈÝ
Õâ¸öÐéÄâÎļþϵͳÔÚÄں˿ռäºÍÓû§¿Õ¼äÖ®¼ä´ò¿ªÁËÒ»¸öͨÐÅ´°¿Ú
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8& ......

¿ìËÙʹÓÃlocateÃüÁî²éÕÒLinuxÖеÄÎļþ

ÔÚºÆå«µÄLinuxÖУ¬²éÕÒij¸öÎļþÊǼþ·Ç³£ÒªÃüµÄʶù¡£ÎÒÊÔ¹ýºÜ¶à·½·¨£¬×î¼òµ¥¡¢×î·½±ãµÄÒ»ÖÖÊÇÀûÓÃlocateÃüÁîºÍupdatedbÃüÁîÅäºÏµÄ·½·¨£º
±ÈÈ磬ÎÒÃÇÒª²éÕÒÒ»¸öÎļþÃûÖдø“chen”×Ö·û´®µÄÎļþ£¬ÕâÑù×ö£º
[root@locahost /]# locate chen
ÕâÑù¾ÍÄܳöÏÖÒ»´ó´®Ô̺¬chen×Ö·û´®ÎļþÃûµÄÎļþ¡£
×¢Ò⣬locateÖ´Ðкóµ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ