centos6.4 裸机装环境

yum -y install subversion.x86_64
yum -y install gcc.x86_64
yum -y install gcc-c++.x86_64
yum -y install wget
yum -y install man.x86_64
yum -y install openssl-devel.x86_64 
yum -y install vim        ;echo "alias vi='vim'" >> /etc/bashrc; source /etc/bashrc
yum -y install mysql
yum -y install mysql-server
yum -y install mysql-devel
yum -y install gdb.x86_64 
yum -y install python-devel.x86_64 
yum -y install python.x86_64 

wget http://sourceforge.net/projects/boost/files/boost/1.50.0/boost_1_50_0.tar.gz
tar xzvf boost_1_50_0.tar.gz && cd boost_1_50_0 
sh ./bootstrap.sh  #生成./bjam
./bjam --with-date_time --with-system --with-regex --with-thread --with-filesystem --with-serialization --with-iostreams --with-math --with-mpi --with-program_options --with-python --with-math --with-signals --layout=tagged install variant=debug,release link=static --runtime-link=static threading=multi stage 

boost和protobuf都装到了/usr/local/include/, 库文件在/usr/local/lib/下
mysql 相应的在/usr/bin/mysql   /usr/lib64/mysql  /usr/include/mysql

rpm -ql package 查询软件安装位置

echo "/usr/local/lib" /etc/ld.so.conf
ldconfig

ldd binary 查看so依赖。

主要就是yum list | grep package;   yum -y install package;  rmp -ql package 

你可能感兴趣的:(centos6.4 裸机装环境)