Black Drongo's Blog
Dream left, Living right  
Lighttpd + PHP Install Manual

1. Install Optional Package
yum -y install zlib zlib-devel pcre pcre-devel

Solutions to some configure errors:

configure: error: C compiler cannot create executables
apt-get install libc6-dev.

configure: error: configure: error: pcre-config not foundapt-get install libpcre3-dev

configure: error: zlib-headers and/or libs where not found
apt-get install zlib1g-dev

configure: error: bzip2-headers and/or libs where not found
apt-get install libbz2-dev

...  More>>

posted at 2010-05-19 | Development - Linux | Views(850) | Comment(792)

LAMP Configure Memo - For Debian And CentOS

1. Option Package Install

yum install gcc
yum install gcc-c++
yum -y install ncurses-devel
yum -y install libxml2-devel
yum -y install zlib-devel openssl-devel
yum -y install gd
yum -y install gd-devel
yum -y install flex
yum -y install diffutils
yum -y install curl curl-devel

apt-get install libncurses5-dev  
apt-get install libncursesw5-dev
apt-get install libcurl4-gnutls-dev

2. MySQL Configure And Install

./configure \
--prefix=/usr/local/mysql \
--localstatedir=/var/mysql \
--with-comment=Source \
--with-server-suffix=-enterprise-gpl \
--with-mysqld-user=mysql \
--without-debug \
--with-big-tables \
--with-charset=utf8 \
--with-collation=utf8_general_ci \
--with-extra-charsets=all \
--with-pthread \
--enable-static \
--enable-thread-safe-client \
--with-client-ldflags=-all-static \
--with-mysqld-ldflags=-all-static \
--enable-assembler \
--without-ndb-debug \
--enable-local-infile \
--with-readline

...  More>>

posted at 2010-05-06 | Development - Linux | Views(339) | Comment(3804)

Sendmail+SpamAssassin+MIMEDefang Anti Spam Mail

Install SpamAssassin and MIMEDefang need a lots of optional package, you can get it from http://search.cpan.org

1. Install SpamAssassin

# groupadd spamd
# useradd -g spamd -s /bin/false spamd
# tar xzvf Mail-SpamAssassin-3.0.2.tar.gz
# cd Mail-SpamAssassin-3.0.2
# export LC_ALL=C
# perl Makefile.PL
# make
# make install
# cp spamd/redhat-rc-script.sh /etc/rc.d/init.d/spamd
# chmod 755 /etc/rc.d/init.d/spamd
# chkconfig --add spamd
# vi /etc/rc.d/init.d/spamd


SPAMDOPTIONS="-d -c -u spamd -H /home/spamd -m5"

 

# vi /etc/mail/spamassassin/local.cf (my local.cf)


# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

required_hits 5.5
rewrite_subject 1
rewrite_header Subject *****SPAM*****
report_safe 1
defang_mime 0
rewrite_subject 1
report_header 1
use_terse_report 1
whitelist_from *@quickmail.51job.com
whitelist_from *@gmail.com
#whitelist_from *@163.com
whitelist_from *@sina.com
whitelist_from *@126.com
whitelist_from *@21cn.com
whitelist_from *@qq.com
whitelist_from *@tom.com
whitelist_from *@yahoo.com.cn
whitelist_from *@hotmail.com
whitelist_from *@sky.net.cn
whitelist_from *@gddc.com.cn
whitelist_from *@sharebank.com.cn
whitelist_from *@pcsoft.com.cn
whitelist_from *@igrand.cn
whitelist_from *@iresearch.cn

...  More>>

posted at 2010-04-15 | Development - Linux | Views(199) | Comment

CentOS And Debian Frequently Configure Error Solutions
Only For Debian And CentOS 5
configure: error: No curses/termcap library found
The wrong way:
--with-named-curses-libs=/usr/lib/libncursesw.so.5
It can config the configure error, but it will cause make time error, the right way is:
yum -y install ncurses-devel
debian: apt-get install libncurses5-dev

configure: error: xml2-config not found
yum -y install libxml2-devel
debian:apt-get install libxml2-dev

configure: error: Cannot find OpenSSL's
yum -y install openssl-devel

configure: error: libjpeg.(a|so) not found
yum -y install gd
yum -y install gd-devel
debian:apt-get install libjpeg-dev

configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev

configure: error: cannot find output from lex; giving up
yum -y install flex

configure: error: mod_deflate has been requested but can not be built due to prerequisite failures
yum -y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev

configure: error: libXpm.(a|so) not found.
apt-get install libxpm-dev

onfigure: error: freetype.h not found.
apt-get install libfreetype6-dev

configure: error: ...No recognized SSL/TLS toolkit detected
apt-get install libssl-dev

configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/
yum -y install curl-devel
posted at 2010-04-15 | Development - Linux | Views(362) | Comment

你从什么时候不再爱我

你的容颜,留下了太多的思念.
内心缠绵,就在那相爱的一瞬间.
想你一遍,感觉世间沧桑的迁变.
爱就在眼前,不再留恋.

是否听见,那天你说的谎言.
看你一眼,感觉那爱剩下一点点.
我的眷恋,总在一个落叶的秋天.
不知不觉,回到从前.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我.

是否听见,那天你说的谎言.看你一眼,感觉那爱剩下一点点.
我的眷恋,总在一个落叶的秋天.不知不觉,回到从前.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我的爱已让你不知所措.
你从什么时候不再爱我,有没有一种爱叫做执着,不想再让你害怕寂寞,我不相信爱情没有结果.
你已不再爱我

posted at 2006-10-15 | Dairy | Views(88) | Comment(9)

avatar