Upgrade Subversion 1.4.3 to 1.5.2 on Debian (hosted account)

和自甴很熟 提交于 2019-12-06 03:37:12

If you're using openssl with SVN then you need to configure SVN with

./configure .... --with-openssl=/path/to/openssl

When I've done this in the past I've had issues building other binaries that use this lib if I don't specify the -fPIC flag. So it's best to run make with that parameter (if you have that issue). You may also have to point make at your build binary as well.. so your make call will look something like this:

make CC="gcc -fPIC" LDFLAGS="/path/to/openssl/lib"

Don't forget to build openssl with CC="gcc -fPIC" too!

Good luck!

You'll need to build your own copy under your own account.

mkdir ~/src
cd ~/src
wget http://subversion.tigris.org/downloads/subversion-1.5.2.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.5.2.tar.bz2
tar -xjf subversion-1.5.2.tar.bz2
tar -xjf subversion-deps-1.5.2.tar.bz2
cd subversion-1.5.2
./configure --prefix=/home/$USER --with-ssl
make
make install

You'll also need to alter your path for this to work if you haven't already.

When using

./configure --prefix=/usr/bin --with-libs=/usr/bin/openssl --with-ssl

then you can see in neon/config.log that it searches the includes in /usr/bin/openssl/include ... while this is ofcourse only a binary. So, skip this "--with-libs" option, and just make sure that the ssl development package is installed using

apt-get install libssl-dev

This might be a security measure, if the system is compromised it will theoretically be harder for the malicious user to build more attack code on the system to get more access.

The solution to this is to cross compile the code on a local machine, then transfer it to the server. If you can't install to the system as Aupajo suggests, put the executable in your $HOME/bin directory. Keep in mind though that this probably means that you won't have permission to run the svn server, just the client application.

Here's a link on using debian to do cross compiling, some google searches should provide more information for you though.

I was stuck with this error too:

configure: error: C compiler cannot create executables

Turns out in my case I had a clean installation of Debian Etch, without a C compiler. I had installed it (wrongly, I suppose) via apt-get install gcc . A few google searches led me to install g++ instead via

apt-get install g++

Afterwards it worked. Not sure if this helps you, but did help me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!