Xnix系統下某些軟件自動安裝腳本

我這裏把我用到的那些東東整理一下,以後再安裝直接copy就好了,
方便多了,否則找個地方去下載就要找半天.

[quote="sysstat"]
wget http://pagesperso-orange.fr/sebastien.godard/sysstat-9.0.6.tar.gz
tar -zxvf sysstat-9.0.6.tar.gz
cd sysstat-9.0.6
./configure
make && make install
cd ..[/quote]

wget http://ncu.dl.sourceforge.net/project/rstatd/rstatd/3.07/rstatd.tar.gz
tar -zxvf rstatd.tar.gz
cd rpc.rstatd/
./configure
make && make install
cd ..
rpc.rstatd


[quote="apache-ant-1.8.0-bin"]
#下載
wget http://www.apache.org/dist/ant/binaries/apache-ant-1.8.0-bin.tar.gz
tar -zxvf apache-ant-1.8.0-bin.tar.gz
mv apache-ant-1.8.0 /usr/local/

#將bin目錄加入到path中
export PATH=/usr/local/apache-ant-1.8.0/bin/:$PATH
echo export PATH=/usr/local/apache-ant-1.8.0/bin/:$PATH >> ~/bash_profile

#設置ANT_HOME環境變量
export ANT_HOME=/usr/local/apache-ant-1.8.0/
echo export ANT_HOME=/usr/local/apache-ant-1.8.0/ >> ~/bash_profile

ant -v

#下載jakarta-ant-1.4-optional.jar
cd /usr/local/apache-ant-1.8.0/lib
wget http://archive.apache.org/dist/ant/binaries/jakarta-ant-1.4-optional.jar
cd -
[/quote]

[quote="源碼安裝Ice-3.4.0"]
wget http://www.zeroc.com/download/Ice/3.4/Ice-3.4.0.tar.gz
wget http://www.zeroc.com/download/Ice/3.4/ThirdParty-Sources-3.4.0.tar.gz
wget http://www.zeroc.com/download/Ice/3.4/db48-4.8.24-1ice.src.rpm
wget http://www.zeroc.com/download/Ice/3.4/mcpp-devel-2.7.2-2ice.src.rpm

tar -zxvf ThirdParty-Sources-3.4.0.tar.gz
cd ThirdParty-Sources-3.4.0
tar -zxvf mcpp-2.7.2.tar.gz
cd mcpp-2.7.2
patch -p0 < ../mcpp/patch.mcpp.2.7.2
./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared
make && make install
cd ..
cd ..

rpm -ivh db48-4.8.24-1ice.src.rpm
rpm -ivh mcpp-devel-2.7.2-2ice.src.rpm

tar -zxvf Ice-3.4.0.tar.gz
cd Ice-3.4.0
make && make install
cd ..

[/quote]


[quote="安裝支持Ruby的Ice3.2.1 Linux4.6"]wget http://www.zeroc.com/download/Ice/3.2/Ice-3.2.1-bin-rhel-i386.tar.gz
tar -zxvf Ice-3.2.1-bin-rhel-i386.tar.gz
mv Ice-3.2.1 /usr/local/Ice-3.2.1

echo export ICE_HOME=/usr/local/Ice-3.2.1 >> ~/.bash_profile
export ICE_HOME=/usr/local/Ice-3.2.1
echo export PATH=$ICE_HOME/bin:$PATH >> ~/.bash_profile
export PATH=$ICE_HOME/bin:$PATH
echo export LD_LIBRARY_PATH=$ICE_HOME/lib >> ~/.bash_profile
export LD_LIBRARY_PATH=$ICE_HOME/lib
echo export RUBYLIB=$ICE_HOME/ruby/:$RUBYLIB >> ~/.bash_profile
export RUBYLIB=$ICE_HOME/ruby/:$RUBYLIB[/quote]


[quote="安裝memcached和libmemcached"]wget http://www.monkey.org/~provos/libevent-2.0.5-beta.tar.gz
wget http://memcached.googlecode.com/files/memcached-1.4.5.tar.gz
wget http://launchpad.net/libmemcached/1.0/0.40/+download/libmemcached-0.40.tar.gz

tar -zxvf libevent-2.0.5-beta.tar.gz
cd libevent-2.0.5-beta
./configure --prefix=/usr/local/libevent
make && make install
cd ..

tar -zxvf memcached-1.4.5.tar.gz
cd memcached-1.4.5
./configure --prefix=/usr/local/memchached --with-libevent=/usr/local/libevent
make && make install
ln -s /usr/local/libevent/lib/libevent.so.4.0.0 /usr/lib
cd ..

tar -zxvf libmemcached-0.40.tar.gz
cd libmemcached-0.40
./configure --prefix=/usr/local/libmemcached/ --with-memcached=/usr/local/memchached/bin/memcached
make && make install
cd ..[/quote]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章