ÈçºÎÔÚLinuxʹÓÃEclipse + CDT¿ª·¢C/C++³ÌÐò?
A. ΪʲôҪÔÚLinuxʹÓÃEclipse¿ª·¢C/C++³ÌÐò?
LinuxÊÇÒ»¸öÒÔC/C++¿ª·¢ÎªÖ÷µÄƽ̨£¬ÎÞÂÛÊÇKernel»òÊÇApplication£¬Ö÷Òª¶¼Ê¹ÓÃC/C++¿ª·¢¡£´«Í³ÔÚLinuxÏ¿ª·¢³ÌÐò£¬ÊÇÔÚÎÄ×ÖģʽÏ£¬ÀûÓÃviµÈÎÄ×Ö±à¼Æ÷׫дC/C++³ÌÐò´æÅ̺ó£¬ÔÚCommand lineÏÂʹÓÃgcc±àÒ룬ÈôÒªdebug£¬ÔòʹÓÃgdb¡£
ÕâÖÖ¿ª·¢·½Ê½Éú²úÁ¦²¢²»¸ß£¬ÈôÖ»ÊÇ¿ª·¢Ñ§Ï°ÓõÄС³ÌÐòÔòÓ°Ïì²»´ó£¬µ«ÈôÒª¿ª·¢´óÐÍÏîĿʱ£¬³ÌÐòµµ°¸¸öÊýÖڶ࣬ÐèÒªÓÃproject»òsolutionµÄ·½Ê½¹ÜÀí£»ÇÒdebugʱbreakpointµÄ¼ÓÈ룬µ¥²½Ö´ÐУ¬¹Û²ì±äÁ¿±ä»¯µÈ£¬¶¼ÐèÒª¸ü¿ÉÊÓ»¯µÄ·½Ê½²ÅÄܹ»Ôö¼ÓÉú²úÁ¦£»×îÖØÒªµÄ£¬ÓÉÓÚÏÖÔڵijÌÐòÓïÑԽԷdz£µÄÅÓ´ó£¬ÓÖÓи´Ôӵĺ¯Ê½¿â£¬Òª³ÌÐòÔ±Êì¼ÇËùÓеijÌÐòÓï·¨ºÍfunctionÃû³Æ£¬ÊµÔÚºÜÀ§ÄÑ£¬ËùÒÔÓï·¨Ìáʾ(Intellisense)µÄ¹¦Äܾͷdz£ÖØÒª£¬ÕâЩ¾Í±ØÐë¿¿IDEÀ´´ï³É¡£
ÔÚWindowsƽ̨ÉÏ£¬ÈôÒª¿ª·¢C/C++³ÌÐò£¬ÎÒÃÇÓÐMicrosoft Visual Studio¡¢Borland C++ Builder¿ÉÓã¬ÕâЩ¶¼ÊǺܺÃÓõÄIDE£¬µ«¿Éϧ½öÄÜÔÚWindowsÏÂʹÓ㬵«ÊÇÔÚLinuxƽ̨ÄØ?»ùÓÚÒÔÏÂÀíÓÉ£¬ÎÒÍƼöʹÓÃEclipse¿ª·¢C/C++³ÌÐò£º
1. EclipseÊÇÒ»¸öÓÃJavaËù׫дIDE£¬Òò´Ë¿É¿çƽ̨£¬ËùÒÔÔÚLinuxºÍWindowsƽ̨ϽԿÉʹÓÃEclipse£¬¿É½µµÍ³ÌÐòÔ±ÊìÎöIDEµÄѧϰÇúÏß¡£
2. EclipseËäÈ»Ö÷ÒªÄÃÀ´¿ª·¢Java³ÌÐò£¬µ«ÊÂʵÉÏEclipseΪһ¸ö¡ºÍòÓÃÓïÑÔ¡»µÄIDE£¬Ö»Òª¹ÒÉÏpluginºó£¬¾Í¿ÉÒÔÔÚEclipse¿ª·¢¸÷ÖÖÓïÑÔ³ÌÐò£¬ËùÒÔÎÒÃÇÖ»Òª¹ÒÉÏCDT(C/C++ Development Toolkit)ºó£¬¾Í¿ÉÒÔÔÚEclipse¿ª·¢C/C++³ÌÐò£¬³ý´ËÖ®Í⣬ĿǰµÄÖ÷Á÷³ÌÐòÓïÑÔ£¬ÈçC/C++¡¢C#¡¢Java¡¢PHP¡¢Perl¡¢Python¡¢Ruby¡¢Rebol¡¢JavaScript¡¢SQL¡¢XML¡¢UMLµÈ£¬½Ô¿ÉÔÚEclipseÉÏ׫д£¬ËùÒÔÖ»ÒªÊìÎöEclipseµÄIDE»·¾³£¬½«À´Èô¿ª·¢ÆäËüÓïÑÔ³ÌÐò£¬¾Í²»ÓÃÔÙÖØÐÂѧϰIDE»·¾³ÁË¡£
3. ×îÖØÒªµÄ£¬EclipseºÍCDTÊÇOpen SourceÇÒÍêÈ«Ãâ·Ñ£¬È¡µÃÏ൱ÈÝÒ×£¬ÊÂʵÉÏFedora 5ÒѾ°üº¬EclipseºÍCDTÁË£¬ËäȻԤÉèFedara 5°²×°Ê±²¢Ã»Óк¬Eclipse£¬Ö»ÒªÊÖ¶¯ÁíÍâ¼ÓÑ¡¼´¿É¡£
B. ÈçºÎÔÚLinuxÏ°²×°EclipseºÍCDT?
i. ÓÉLinux Distribution°²×°Eclipse£¬Fedora 5¾ÍÄÚº¬EclipseºÍCDT¡£
ii. ÊÖ¶¯°²×°
1. ÏÂÔصµ°¸
A¡¢ ÏÂÔØJRE(Java Runtime Environment) ¡£(http://java.sun.com/javase/downloads/index.jsp)
B¡¢ ÏÂÔØEclipse SDK¡£(http://www.eclipse.org/downloads/)
C¡¢ ÏÂÔØCDT¡£(http://www.eclipse.org/cdt/downloads.php)
2. °²×°
A¡¢ °²×°JRE
i. [root@localhost ~]#mkdir /
Ïà¹ØÎĵµ£º
×ÜÀÀ
ÓÃiptables -ADC À´Ö¸¶¨Á´µÄ¹æ
Ôò
£¬-AÌí¼Ó -Dɾ³ý -C ÐÞ¸Ä
iptables - [RI] chain rule num rule-specification[option]
ÓÃiptables - RI ͨ¹ý¹æÔòµÄ˳ÐòÖ¸¶¨
iptables -D chain rule num[option]
ɾ³ýÖ¸¶¨¹æÔò
iptables -[LFZ] [chain][option]
ÓÃiptables -LFZ Á´Ãû [Ñ¡Ïî]
iptables -[NX] chain
ÓÃ -NX ......
ÍøÉÏÒ»µÀ½ðɽµÄÃæÊÔÌ⣺
http://topic.csdn.net/u/20100524/14/0eff992a-2849-4db6-bdaa-d4a200e79b7c.html
Çë·Ö±ðÓÃC++µÄÃæÏò¶ÔÏóºÍ·ºÐÍ»úÖÆ£¬±àдʵÏÖTemplate MethodģʽµÄʾÀý´úÂ룬²¢±È½ÏÁ½ÖÖ·½Ê½¸÷×ÔµÄÓÅȱµã¡£
ÓÃÐ麯ÊýʵÏÖTemplate MethodµÄ·½Ê½¾Í²»¶à˵ÁË¡£Ó÷ºÐ͵ķ½Ê½ÊµÏÖ¶à̬ÔÚATLÀïÃæÓдóÁ¿µÄÓõ½£¡
·ºÐ͵ ......
1.´ò¿ª
http://labs.adobe.com/downloads/flashplayer10_64bit.html
ÏÂÔØ Flash Player 10 for 64-bit Linux
2.½âѹºó¸´ÖƵ½/usr/lib64/mozilla/plugins
mv libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so
3.ÖØÆôfirefox£¬¿ÉÒÔÐÞ¸ÄflashĬÈÏ×ÖÌå
vi /etc/fonts/conf.d/49-sansserif ......
1.apt-get update
¸üб¾µØapt-getµÄ±¾µØÊý¾Ý¿â£¬Ê¹ÆäÓë·þÎñÆ÷µÄpkglistÎļþͬ²½¡£ÔÚÉý¼¶ÒÔÇ°Ò»°ã¶¼ÒªÖ´Ðб¾ÃüÁîʵÏÖÓë·þÎñÆ÷µÄÒ»Ö¡£
2.apt-get check
ÑéÖ¤±¾µØϵͳµÄÍêÕûÐÔ¡£
3.apt-get dist-upgrade
ÀàËÆÓÚapt-get£¬µ«Êǽ«°²×°ËùÓеĻù´¡Èí¼þ°ü£¬²¢¾¡Á¦Éý¼¶Ò»ÇÐÈí¼þ°ü£¬²¢ÔÚÐèÒªÊÇ°²×°ÐÂÈí¼þ°ü¡£
4.apt-get ......