centos 安装version

作者: print("") 分类: linux 发布时间: 2017-07-06 15:56

centos 安装version

yum install -y autoconf automake jemalloc-devel libedit-devel libtool ncurses-devel pcre-devel pkgconfig python-docutils python-sphinx readline readline-devel erase pcre-devel automake
首先需要安装pcre
tar zxf pcre-8.3.tar.gz
cd pcre-8.31
./configure –prefix=/usr/local/pcre
make
make install
cd ..
安装varnish
tar zxf varnish-4.0.4.tar.gz
cd varnish-4.0.4
export PKG_CONFIG_PATH=/usr/local/pcre/lib/pkgconfig
./configure –prefix=/usr/local/varnish-4.0.4 \
–enable-dependency-tracking \
–enable-developer-warnings \
–enable-debugging-symbols
make
make install
#########如果make 时候遇到这个问题 找这个文档 http://ganpeng.blog.51cto.com/6650362/1598682
Making all in bin
make[2]: Entering directory `/root/varnish-4.0.4/bin’
Making all in varnishadm
make[3]: Entering directory `/root/varnish-4.0.4/bin/varnishadm’
CCLD varnishadm
../../lib/libvarnishapi/.libs/libvarnishapi.so: undefined reference to `pcre_free_study’
collect2: ld returned 1 exit status
make[3]: *** [varnishadm] 错误 1
make[3]: Leaving directory `/root/varnish-4.0.4/bin/varnishadm’
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/root/varnish-4.0.4/bin’
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/root/varnish-4.0.4′
make: *** [all] 错误 2
这个解决方式是 #
yum -y install readline readline-devel
然后继续:
make clean
./configure –prefix=/usr/local/varnish –enable-dependency-tracking
–enable-developer-warnings –enable-debugging-symbols
make ; make install
cat >>/etc/profile <<EOF
export PATH=”/usr/local/varnish/sbin:/usr/local/varnish/bin:$PATH”
EOF
安装完成

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

说点什么

avatar
  Subscribe  
提醒