(一)$_path/*: cannot restore segment prot after reloc: Permission denied.
chcon -t texrel_shlib_t $_path/*
(二)configure: error: libtermcap, libcurses or libncurses are required!
安装 libtermcap, ncurses-devel这个软件包
yum install libtermcap
yum install ncurses-devel
一般缺少x_name,就安装x_name:yum install x_name(联网)
(三) 安装Nginx时报错
./configure: error: the HTTP rewrite module requires the PCRE library.
安装pcre-devel解决问题
yum -y install pcre-devel
错误提示:./configure: error: the HTTP cache module requires md5 functions
from OpenSSL library. You can either disable the module by using
--without-http-cache option, or install the OpenSSL library into the system,
or build the OpenSSL library statically from the source with nginx by using
--with-http_ssl_module --with-openssl=<path> options.
解决办法:
yum -y install openssl openssl-devel
(四)安装jsoncpp linux
- #tar -zxf scons-2.1.0.tar.gz
- #cd scons-2.1.0
- #python setup.py install
- #tar -zxf jsoncpp-src-0.5.0.tar.gz
- #cd jsoncpp-src-0.5.0
- #scons platform=linux-gcc
- #mv libs/linux-gcc-4.1.2/libjson_linux-gcc-4.1.2_libmt.so /lib (gcc版本可能不同)
- #mv include/json/ /usr/include/
- #ldconfig
- #./bin/linux-gcc-4.1.2/test_lib_json
4、安装软件
6、 在 /etc/yum.repo.d/ 解压CentOS-Base.repo.zip, 得到CentOS-Base.repo
#rpm –import http://ftp.sjtu.edu.cn/centos/5/os/i386/RPM-GPG-KEY-CentOS-5
8. 运行,测试
#yum update
git.i386 1.7.3-1.el5.rf dag
git-all.i386 1.7.3-1.el5.rf dag
git-arch.i386 1.7.3-1.el5.rf dag
git-cvs.i386 1.7.3-1.el5.rf dag
git-daemon.i386 1.7.3-1.el5.rf dag
git-email.i386 1.7.3-1.el5.rf dag
git-gui.i386 1.7.3-1.el5.rf dag
git-svn.i386 1.7.3-1.el5.rf dag
gitk.i386 1.7.3-1.el5.rf dag
gitweb.i386 1.7.3-1.el5.rf dag
解决方法:
1、关闭验证:打开CentOS-Base.repo,设置gpgcheck=0,默认为1;
2、导入以下
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm –import http://quattor.web.lal.in2p3.fr/packages/os/sl520-x86_64/base/RPM-GPG-KEYs/RPM- GPG-KEY-CentOS-5