php±àÒëgd³ö´í!(Òѽâ¾ö)
php±àÒëgd³ö´í!(Òѽâ¾ö)
ÔÚ32λubuntu9.04ÉϱàÒëphp5.2.12,µ½gdʱmake³ö´í:
ext/gd/libgd/.libs/gd_png.o: In function
`php_gd_gdImageCreatefromPngCtx':
/home/test/php-5.2.12/ext/gd/libgd/gd_png.c:142: undefined reference to
`png_check_sig'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] ´íÎó 1
Ö±½ÓÏÂÔØgd,ÔÚgdĿ¼makeÒ²ÀàËƵĴí
gcc -g -O2 -o .libs/annotate annotate.o /usr/local/lib/libiconv.so
-Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib
./.libs/libgd.so /usr/local/lib/libjpeg.so /usr/local/lib/libfreetype.so
/usr/local/lib/libpng14.so -lz -lm
./.libs/libgd.so: undefined reference to `png_check_sig'
collect2: ld returned 1 exit status
make[2]: *** [annotate] ´íÎó 1
make[2]:ÕýÔÚÀ뿪Ŀ¼ `/home/test/gd-2.0.35'
make[1]: *** [all-recursive] ´íÎó 1
make[1]:ÕýÔÚÀ뿪Ŀ¼ `/home/test/gd-2.0.35'
make: *** [all] ´íÎó 2
°Ñphp°æ±¾»»Îª5.2.8Ò²´í,¶øÇÒ´ÓÉÏÃæµ¥¶À±àÒëgd´íÀ´¿´,ÓëphpÎÞ¹Ø.libpngÒѱàÒë°²×°Á˵Ä
ÍøÉÏËÑË÷²»µ½ÔÒò
²¹³ä:ÏÖÔÚ½â¾öÁË.
¿ÉÒԲμû
[url]http://aspn.activestate.com/ASPN/Mail/Message/php-dev/3803631[/url]
¿ÉÒÔËãÊÇphpµÄÒ»¸öbug,libpng-1.4.0Ô´ÂëÖеÄlibpng-1.4.0.txtÓÐ˵Ã÷,ÒѾȡÏûÁËpng_check_sigÕâ¸öº¯
Êý,¸ÄÓÃpng_sig_cmp´úÌæ.×Ô´Ólibpng-0.90¾ÍÒѾ·´¶ÔʹÓÃpng_check_sigº¯ÊýÁË.Õâ¸öÌû×ÓÖвÉÓÃÐÞ¸ÄphpÔ´ÂëµÄ·½
·¨,±à¼ext/gd/libgd/gd_png.c,½«
if (!png_check_sig (sig, 8)) { /* bad signature */
»»³É
if (png_sig_cmp (sig, 0, 8)) { /* bad signature */
µ«ÎÒ²»ÖªµÀÆäËûÄÄЩµØ·½ÓÐûÓÐÕâ¸öº¯Êý,ËùÒÔÎÒ»¹ÊÇÓÃlibpng-1.2.35°É,¿´libpng-1.2.35.txt,¾ÍûÓÐÌá
png_check_sigµÄÊÂ.
±àÒë°²×°libpng-1.2.35ºó,php-5.2.12µÄmakeͨ¹ýÁË
Ïà¹ØÎĵµ£º
ÏÈ×¼±¸ºÃÈí¼þ£º
·Ö±ðÔÚApache¹Ù·½¡¢php¹Ù·½¡¢mysql¹Ù·½ÏÂÔØ×îлòÎȶ¨°æ±¾
Ò»¡¢°²×°Apache£¬ÅäÖóɹ¦Ò»¸öÆÕͨÍøÕ¾·þÎñÆ÷
ÔËÐÐÏÂÔغõēapache_2.0.55-win32-x86-no_ssl.msi”£¬³öÏÖÈçϽçÃ棺
³öÏÖApache HTTP Server 2.0.55µÄ°²×°Ïòµ¼½çÃ棬µã“Next”¼ÌÐø
È·È ......
Ê×ÏÈ×¢Òâ°æ±¾ÎÊÌ⣬һ¶¨Òª×Ðϸ²é¿´php manualÉϵÄÄÚÈÝ£¬Èçhttp://www.php.net/manual/en/install.windows.apache2.php ÉÏÓÐÒ»¸önote:
Note
:
Apache 2.2 Support
Users of Apache 2.2 should note that the DLL file for Apache 2.2 is
named php5apache2_2.dll
rather than php5apache2.d ......
ת×Ô£ºÒÁͼÍø[www.4ico.com]ÔÚ²ûÊöÀàµÄ¸ÅÄî֮ǰÎÒÃÇÀ´ÏÈ˵˵ÃæÏò¶ÔÏó±à³ÌµÄ¸ÅÄÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ(Object-Oriented Programming£¬¼ò¼ÇΪOOP)Á¢ÒâÓÚ´´½¨Èí¼þÖØÓôúÂ룬¾ß±¸¸üºÃµØÄ£ÄâÏÖʵÊÀ½ç»·¾³µÄÄÜÁ¦£¬ÕâʹËü±»¹«ÈÏΪÊÇ×ÔÉ϶øϱà³ÌµÄÓÅʤÕß¡£Ëüͨ¹ý¸ø³ÌÐòÖмÓÈëÀ©Õ¹Óï¾ä£¬°Ñº¯Êý“·â×°”½ø±à³ÌËù±ØÐèµÄ&l ......
PHPÊÖ²áÉÏÌṩÁËÒÔÏÂһЩÖ÷ÒªµÄmysqlÊý¾Ý¿âµÄÖ§³Öº¯Êý£º
mysql_affected_rows -- È¡µÃÇ°Ò»´Î MySQL ²Ù×÷ËùÓ°ÏìµÄ¼Ç¼ÐÐÊý
mysql_change_user -- ¸Ä±ä»î¶¯Á¬½ÓÖеǼµÄÓû§
mysql_client_encoding -- ·µ»Ø×Ö·û¼¯µÄÃû³Æ
mysql_close -- ¹Ø±Õ MySQL Á¬½Ó
mysql_connect -- ´ò¿ªÒ»¸öµ½ MySQL ·þÎñÆ÷µÄÁ¬½Ó
mysql_c ......
1:·ÅÁË6¸öÎļþÔÚcÅÌÏÂ(php5ts.dll,libmysql.dll ,php_gd2.dll,php_mysql.dll,php_mbstring.dll ),Ò»¸öÔÚwindowsÏÂ,ÁíÎå¸öÔÚwindows/system32ÏÂ
2:ÅäÖÃÁËpath
3:ÃüÁî:httpd.exe -w -n "Apache2" -k start À´²é¿´ÊÇÄÄÒ»ÐеĴíÎóÐÅÏ¢.
×ܽá:µ½ÏÖÔÚΪֹ,ÕûÁËÒ»Ìì,×°ÁËÈý´ÎϵͳµÄÂé·³ÖÕÓÚÇ×ÉíÖ¤Ã÷ÁË,
Õâ¸ö×ï¿ý»öÊײúÉúµÄÔÒò ......