标签存档: setup

在centos上安装php5

php5 install on centos: yum install -y httpd-devel libtool-ltdl libtool-ltdl-devel openssl-devel curl-devel  libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libc-client libc-client-devel  gd gd-devel libmcrypt libmcrypt-devel sqlite sqlite-devel mysql-devel libicu libicu-devel pcre-devel postgresql84 postgresql84-libs postgresql84-server postgresql84-devel yum install -y mhash-devel 如果不安装 libtool-ltdl-devel编译时会出错,所以要么安装这个包要么执行以下命令: # …

继续阅读 »

安装trac

install trac: on ubuntu: sudo apt-get install python-setuptools sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev create a user to install & run trac su trac cd ~ mkdir ./.local/lib/python2.6/site-packages -p mkdir ./.local/lib/python2.4/site-packages -p easy_install –prefix=$HOME/.local  Genshi easy_install –prefix=$HOME/.local  Babel …

继续阅读 »

在centos上编译安装nginx

install nginx on centos: sudo yum -y install pcre pcre-devel download the src code NGINX_HOME=/opt/nginx sudo mkdir $NGINX_HOME sudo chown $(id -u) $NGINX_HOME -R ./configure –prefix=$NGINX_HOME Configuration summary   + using system PCRE library   + OpenSSL library is not …

继续阅读 »

在ubuntu上编译安装percona

install percona: 添加专门的用户用于安装percona sudo adduser percona 下载percona源码 axel http://www.percona.com/downloads/Percona-Server-5.1/Percona-Server-5.1.55-12.6/source/Percona-Server.tar.gz 安装依赖 sudo apt-get install automake libtool g++ ncurses-dev bison 解压编译 su percona PERCONA_HOME=$(readlink -f ~/percona) tar -xvf Percona-Server.tar.gz cd Percona-Server sh BUILD/autorun.sh 当我打这个命令的时候发现一个这样的问题: BUILD/autorun.sh: 41: aclocal: not found 输入aclocal看看qui是什么,没反映报任何错误,再重新运行”sh BUILD/autorun.sh”居然,又OK了 mkdir $PERCONA_HOME (建立目录用于存放编译后的percona …

继续阅读 »

linux发邮件

sudo apt-get install sendEmail libnet-ssleay-perl libio-socket-ssl-perl or download from “http://caspian.dotconf.net/menu/Software/SendEmail/sendEmail-v1.56.tar.gz“ sendEmail -f “unotseeme@gmail.com”   -t “unotseeme@qq.com”   -u “hello world”   -m “hello world”   -o tls=yes   -s smtp.gmail.com:587   -xu “unotseeme@gmail.com”   -xp “xxxx” on centos: http://pkgs.repoforge.org/perl-Net-SSLeay/perl-Net-SSLeay-1.36-1.el5.rfx.x86_64.rpm http://packages.sw.be/perl-IO-Socket-SSL/perl-IO-Socket-SSL-1.34-1.el5.rfx.noarch.rpm