SUSE Linux Enterprise Server 11 SP3 (x86_64) svn服务器搭建遇到问题

yulewo123 发布于 2017/04/16 17:21
阅读 124
收藏 0
SVN

我根据http://www.iyunv.com/thread-133708-1-1.html搭建svn服务器FSFS方式

我搭建部署如下

1.创建svn用户,目录为/home/svn

2.tar -xzvf subversion-1.6.17.tar.gz,tar -xzvf subversion-deps-1.6.17.tar.gz ,都解压到了/home/svn/subversion-1.6.17

3.cd /home/svn/subversion-1.6.17

cd /home/svn/subversion-1.6.17

./configure --prefix=/home/svn/subversion --without-berkeley-db > /home/svn/111

提示错误:

configure: WARNING: unrecognized options: --without-berkeley-db
configure: WARNING: unrecognized options: --without-berkeley-db
configure: error: no XML parser was found: expat or libxml 2.x required

1>.解决configure: error: no XML parser was found: expat or libxml 2.x required

切换到root用户

expat-2.0.1.tar.gz放/usr/local

cd /usr/local

tar -xzvf expat-2.0.1.tar.gz 生成目录/usr/local/expat-2.0.1

cd /usr/local/expat-2.0.1

./configure
make
make install

 

切换到svn用户

执行 ./configure --prefix=/home/svn/subversion --without-berkeley-db > /home/svn/111

提示错误:configure: error: We require OpenSSL; try --with-openssl

2>.解决configure: error: We require OpenSSL; try --with-openssl

切换到root用户

openssl-1.0.0a.tar.gz放/usr/local

cd /usr/local

tar -xzvf openssl-1.0.0a.tar.gz 生成目录/usr/local/openssl-1.0.0a/

cd /usr/local/openssl-1.0.0a/

./config
./config -t
make depend
make
make test
make install
安装之后会在/usr/local下生成一个ssl目录,配置SVN时加上openssl路径

 

切换到svn用户

执行 ./configure --prefix=/home/svn/subversion --without-berkeley-db --with-openssl=/usr/local/ssl > /home/svn/111

提示错误:configure: error: subversion requires zlib

3>.解决configure: error: subversion requires zlib

切换到root用户

zlib-1.2.5.tar.gz 放/usr/local

tar -xzvf zlib-1.2.5.tar.gz 生成目录/usr/local/zlib-1.2.5/

./configure

make

make install

cd /usr/local

ln -s zlib-1.2.5 zlib  即生成目录/usr/local/zlib 指向/usr/local/zlib-1.2.5/

 

切换到svn用户

执行 ./configure --prefix=/home/svn/subversion --without-berkeley-db --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib > /home/svn/111

然后接着在/home/svn/subversion-1.6.17

执行make

报错:/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lssl
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status

根据http://www.iyunv.com/thread-133708-1-1.html上面遇到该问题重新编译openssl,我解决办法如下:

切换到root登录

重新编译openssl 

/usr/local/openssl-1.0.0a

./config shared zlib-dynamic
make
sudo make install

在执行make的时候 报错如下

/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: libcrypto.a(cbc128.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
libcrypto.a(cbc128.o): could not read symbols: Bad value
collect2: ld returned 1 exit status

请问如何解决?

加载中
返回顶部
顶部