CentOS5 no acceptable C compiler found in $PATH
CentOs5°²×°apacheµÄʱºò
#./configure
(ÓÚ¼ì²éϵͳÊÇ·ñÓбàÒëʱËùÐèµÄ¿â£¬ÒÔ¼°¿âµÄ°æ±¾ÊÇ·ñÂú×ã±àÒëµÄÐèÒªµÈ°²×°ËùÐèÒªµÄϵͳÐÅÏ¢¡£ÎªËæºóµÄ±àÒ빤×÷×ö×¼±¸¡£)
Ìáʾ´íÎóÈçÏÂ:£¨Ã»ÓÐGCC±àÒëÆ÷»·¾³£©
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure:
error
: no acceptable C compiler found in $PATH
¾¹ý²éÔÄ×ÊÁÏ,·¢ÏÖÊÇÒòΪûÓа²×°GCC×é¼þµÄÔÒò
;
×Ô¼ºµÄ½â¾ö°ì·¨£º
£¨ÔÚÏß°²×°gcc£©
# yum -y install
gcc
ÏÈÒªÓÃyum install yum-fastestmirror¸üÐÂÏÂÔ´
ÔÙ°²×°apache¾ÍºÃÁË¡£¡£
Ïà¹ØÎĵµ£º
yeah£¬×éºÏµÄÒ²³öÀ´ÁË£¬ÔÙÒ»Æð·¢Ò»¸ö
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication32
{
class Program
{
static int s = 0;
static void Main(string[] args)
{
Console.Writ ......
×Ö·ûÊý×éºÍ×Ö·û´®
&×Ö·ûÊý×éºÍ×Ö·û´®µÄ¸ÅÄî &×Ö·ûÊý×éµÄ³õʼ»¯
&×Ö·û´®µÄÊäÈëÊä³ö &×ۺϾÙÀý
×Ö·ûÊý×éºÍ×Ö·û´®µÄ¸ÅÄî
×Ö·ûÊý×éÊÇÔªËØÀàÐÍΪ×Ö·ûµÄÊý×é ,Ëü¼È¾ßÓÐÆÕͨÊý×éµÄÒ»°ãÐÔÖÊ ,ÓÖ¾ßÓÐijЩÌØÊâÐÔÖÊ¡£
& ......
ż¶û¿´µ½ C Primer Plus Öн²µ½±ä³¤Êý×é(VLA)£¬ºÜÓÐÒâ˼¡£
×÷ÕßÔÚËûµÄ C Primer Plus ºÍ C++ Primer Plus ÀïÃ涼Ã÷È·Ö¸³ö£¬¶¨ÒåÊý×éʱÊý×éµÄÔªËظöÊý±ØÐëÊÇÕûÐͳ£Á¿£¬²»ÄÜÊDZäÁ¿¡£µ«ÊÇÔÚ C Õâ±¾ÊéÀï½²µ½±ä³¤Êý×é VLA£¬ÔÚ C++ ÄDZ¾ÀïÃæÓÖûÓÐÌá¡£²»ÖªµÀΪʲô£¿ÏëÀ´Ò»¶¨ÊÇ VLA ÓÃÆðÀ´ÓÐЩ²»Ì«Ã÷È·µÄµØ·½¡£
ÎÒÊÔ×ÅдÁ˸öС³ ......
Ç°ÑÔ:ÕâÒ»ÕÂÎÒÃÇÌÖÂÛÒ»ÏÂLinuxϵÄÐźŴ¦Àíº¯Êý.
LinuxϵÄÐźŴ¦Àíº¯Êý:
1.ÐźŵIJúÉú
2.ÐźŵĴ¦Àí
3.ÆäËüÐźź¯Êý
--------------------------------------------------------------------------------
Ò»¸öʵÀý
1¡£ÐźŵIJúÉú ......
stroul£¬
strdup
snprintf()
atio
CÖг£ÓÃ×Ö·û´®²Ù×÷º¯Êý
#include <string.h>
size_t strlen(const char *s) ²âÁ¿×Ö·û´®³¤¶ÈsµÄʵ¼Ê³¤¶È¡£
ÀýÈçs[20]="abc",ÄÇôstrlen(s)µÄ½á¹ûÊÇ3£¬¶ø²»ÊÇ20.Õâ¾ÍÊÇʵ¼Ê³¤¶È
char *strcat(const char *s1, const *s2) ......