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

linuxÏÂapache+php°²×°³£¼ûÎÊÌâ


linuxÏÂapache+php°²×°³£¼ûÎÊÌâ
configure: error: Unable to find libgd.(a|so)
Èç¹ûʹÓõÄÊÇubuntu»òdebian¾ÍºÜ¼òµ¥ÁË£¬Ö±½Ósudo apt-get install apache2 libapache2-mod-php5 php5 php5-gd ¾Í»ù±¾Éϸ㶨£¬µ«ÊÇÓÃÔ´´úÂë°²×°»¹ÊǺÜÂé·³¡«
wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
tar zxvf gd-2.0.11.tar.gz
cd gd-2.0.11
sudo ./configure --prefix=/usr/local/gd2
sudo make
sudo make install
ÔÙphp:~/:./configure  …… --with-gd=/usr/local/gd2  ……
ÒÔÏÂÊÇ×ªÔØµÄ,¶øÇÒ¶¼ÊÇ»ùÓÚyum install»òÕßapt-getµÄ¡£
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
Solutions :
Quote:
#yum install
libxml2
libxml2-devel
(For Redhat & Fedora)
# aptitude install lib
xml2
-dev      (For ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL’s <evp.h>
Solutions :
Quote:
#yum install
openssl
openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
Solutions :
Quote:
# yum install
bzip2
bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
Solutions :
Quote:
# yum install
curl
curl-devel   (For Redhat & Fedora)

# install libcurl4-gnutls-dev    (For Ubuntu)

5) Configure: error: libjpeg.(also) not found.
Solutions :
Quote:
# yum install
libjpeg
libjpeg-devel
6) Configure: error: libpng.(also) not found.
Solutions :
Quote:
# yum install
libpng
libpng-devel
7) Configure: error: freetype.h not found.
Solutions :
Quote:
#yum install freetype-devel
8) Configure: error: Unable to locate gmp.h
Solutions :
Quote:
# yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Solutions :
Quote:
# yum install mysql-devel       &n


Ïà¹ØÎĵµ£º

CassandraÔÚLinuxϵÄÅäÖÃ

CassandraÊÇÒ»¸ö¿ªÔ´µÄ·Ö²¼Ê½Key-Value´æ´¢ÏµÍ³£¬Ö÷ÒªÓÃÓÚFacebook¡¢Digg¡¢TwitterµÈ´óÐÍ´óÊý¾ÝÁ¿µÄÍøÕ¾£¬ÏÖÔÚÒѾ­³ÉΪApacheµÄ¶¥¼¶ÏîÄ¿¡£
ÐèÒªÏȰ²×°Java 1.6ÒÔÉϰ汾ºÍThrift¡£
ÏÂÔØCassandra£º
1.wget http://www.apache.org/dyn/closer.cgi?path=/cassandra/0.6.0/apache-cassandra-0.6.0-bin.tar.gz
½âѹËõ£º
2.t ......

linuxÇý¶¯¿ª·¢½Ì³Ì1

´ÓǰÌ쿪ʼѧϰÇý¶¯£¬¸Ð¾õ²»µ½Çý¶¯µÄ¾«Ëè¡£²»¹ýËæ×Åʱ¼äµÄÁ÷ÊÅÎÒ½«¸ã¶¨Ëû¡£
ÒòΪÎÒ²»ÊÇÌØ±ð¶¯Èç¹ûÎÒдµÄ²»µ½Î»µÄµØ·½Ï£Íû´ó¼ÒÖ¸Õý£¬¹²Í¬½ø²½
¡£
É豸Çý¶¯
Çý¶¯¿ò¼Ü£º
Çý¶¯ºÍÆÕͨ³ÌÐòµÄÇø±ðÔÚÓÚËûÊÇʼþÇý¶¯
µÄ£¬Ò²¾ÍÊÇ˵Ëû²»ÊÇÏñÆÕͨ³ÌÐòÄÇÑù´Ómain()Ö´ÐУ¬´Ómain()½áÊø¡£ÒòΪÇý¶¯ÊÇÒÔÄ£¿éµÄÐÎʽ“ÈںϔÈë ......

´´½¨linuxµÄ·þÎñ³ÌÐò

´´½¨linux·þÎñ£¬Ê¹µÃtest client¿ÉÒÔ¿ª»úÆô¶¯£¬²½ÖèÈçÏ£º
 
1.´´½¨Ä¿Â¼/usr/local/test/
2.¸´ÖÆtestcµ½/usr/local/test/
3.±àдÎļþ/etc/init.d/testc.sh
testc.sh
--------------------begin(not included)-----------------------
 
#! /bin/sh
#
### BEGIN INIT INFO
# Provides:  &nbs ......

Linux Shell ϵÄÊä³öÖØ¶¨Ïò


Linux Shell »·¾³ÖÐÖ§³ÖÊäÈëÊä³öÖØ¶¨Ïò£¬Ó÷ûºÅ<ºÍ>À´±íʾ¡£0¡¢1ºÍ2·Ö±ð±íʾ±ê×¼ÊäÈë¡¢±ê×¼Êä³öºÍ±ê×¼´íÎóÐÅÏ¢Êä³ö£¬¿ÉÒÔÓÃÀ´Ö¸¶¨ÐèÒªÖØ¶¨ÏòµÄ±ê×¼ÊäÈë»òÊä³ö£¬±ÈÈç 2>a.txt ±íʾ½«´íÎóÐÅÏ¢Êä³öµ½Îļþa.txtÖС£
ͬʱ£¬»¹¿ÉÒÔÔÚÕâÈý¸ö±ê×¼ÊäÈëÊä³öÖ®¼äʵÏÖÖØ¶¨Ïò£¬±ÈÈ罫´íÎóÐÅÏ¢ÖØ¶¨Ïòµ½±ê×¼Êä³ö£¬¿ÉÒÔÓà 2> ......

PHPÒ³Ãæ±àÂëͳһ

MySQLÊý¾Ý¿â±àÂë¡¢htmlÒ³Ãæ±àÂë¡¢PHP»òhtmlÎļþ±¾Éí±àÂëҪȫ²¿Ò»Ö¡£
1¡¢MySQLÊý¾Ý¿â±àÂ룺½¨Á¢Êý¾Ý¿âʱָ¶¨±àÂ루Èçgbk_chinese_ci)£¬½¨Á¢Êý¾Ý±í¡¢½¨Á¢×ֶΡ¢²åÈëÊý¾Ýʱ²»ÒªÖ¸¶¨±àÂ룬»á×Ô¶¯¼Ì³ÐÊý¾Ý¿âµÄ±àÂë¡£
Êý¾Ý¿âÁ¬½Óʱ£¬Ò²ÓбàÂ룬¿ÉÒÔÔÚÁ¬½ÓÍêÊý¾Ý¿âºó£¬Ö´ÐÐ
mysql_query(‘SET NAMES gbk’);//½«gbk» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ