[PLUGIN] SVN Plugin

On my post #55 there are all needed command.

From there you can check how is set ./configure command:

Code:
.configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

Regards
 
Thanks. Previous I installed with this configure:

Code:
./configure --with-ssl --with-apr=/usr/bin/apr-config

Now I am trying again with this instead:

Code:
./configure --prefix=/usr --with-ssl --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

If it does not work, I will read your post 55 closer. I will update with how it goes.
 
Wow. Thanks, you are correct! When I used this configure instead:

Code:
./configure --prefix=/usr --with-ssl --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

Then it works! Still the path is:

Code:
[root@server]# which svn
/usr/local/bin/svn

But it works, and cron job is creating the repositories without errors! So it is finding it in the path. :)

I do get a error on "make" when I try to install Apache Subversion 1.7.6 instead of 1.6.19. I don't remember the error message any longer, so I will upgrade/insteall 1.7.6 so I can get the errror again, and then post it here. Hopefully someone knows how to fix that to, so that I can upgrade to 1.7.x :)
 
Ok. Here is the error I get when doing "make" when I try to install Apache Subversion 1.7.6:

Code:
/etc/httpd/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1
[root@server subversion-1.7.6]#

Tonight I tried to search for some hours after solution, but did not find out what was wrong about this. Let me know if you want more of my commands I did during install, I can post them all if you like.

Edit: I am running CentOS 6.3 64bit and Apache 2.2.23 - I have previous upgraded to LibXML2 2.9.0 and libxslt 1.1.27 as mentioned here http://www.directadmin.com/forum/showthread.php?t=44626 (could it be related?)
 
Last edited:
Regarding my installation of Apache Subversion 1.7.6 with error as in post #66, here is the steps I did until error:

Code:
yum remove subversion
yum install expat-devel
yum install neon-devel
cd /root
wget http://apache.uib.no/subversion/subversion-1.7.6.tar.gz
tar xzf subversion-1.7.6.tar.gz
cd subversion-1.7.6
mkdir sqlite-amalgamation
cd sqlite-amalgamation
wget http://www.sqlite.org/sqlite-amalgamation-3.7.0.1.tar.gz
tar xzf sqlite-amalgamation-3.7.0.1.tar.gz
mv sqlite-3.7.0.1/sqlite3.c .
rm -rf sqlite-*
cd ..
./configure --prefix=/usr --with-ssl --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config
make

Then I get this error at end of "make":
Code:
/etc/httpd/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1
[root@server subversion-1.7.6]#
 
Thanks, but it is already installed:

Code:
[root@server subversion-1.7.6]# yum install expat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * extras: mirrors.coreix.net
 * rpmforge: www.mirrorservice.org
 * updates: mirrors.coreix.net
Setting up Install Process
Package expat-2.0.1-11.el6_2.x86_64 already installed and latest version
Nothing to do
[root@server subversion-1.7.6]#

Please note that the same steps on the same server, I get no errors when installing Apache Subversion 1.6.19, only I get the error when installing Apache Subversion 1.7.6
 
Does you have installed expat-devel aswell?

I did search on google for the error and some apache forum report this as expat missing

Regards
 
Yes, I do have expat-devel. Please see my commands in post #67:

Code:
yum install expat-devel
yum install neon-devel
 
No, I did not try that. I will try it now. But I know my customers need neon, because when they have Drupal sites, they use the Drush command line tool, wich I think need neon. But if I can compile without neon, then I can add neon back afterwords? I will try ... Edit: Should I remove both neon and neon-devel?
 
Well on another forum i did read that neon-devel fix that error... is kinda weird that you have it and got the error... Maybe he need a different version or architecture?

Have you tryed to get them both installed i386 and x64?

Regards
 
I have them both installed using yum:

Code:
[root@server /]# yum install neon
...
Package neon-0.29.3-2.el6.x86_64 already installed and latest version
Nothing to do
[root@server /]# yum install neon-devel
...
Package neon-devel-0.29.3-2.el6.x86_64 already installed and latest version
Nothing to do
[root@server /]#

I am afraid to install 32bit version, maybe it could break something else. This is over my head. I think I will install Subversion 1.6.19 and hope the problem with 1.7.x is solved in the future instead.
 
I use to try with both architecture when i got errors, should not have dipendencies, so, would be easy to remove once tested

Regards
 
Ok. Thanks. But it is over my head. I will install Apache subversion 1.6.19 instead. Later this year, after I have upgraded to Apache 2.4.x, then I will try Apache Subversion 1.7.x again, and see if the problem is automatically solved. :)
 
Then I get this error at end of "make":
Code:
/etc/httpd/lib/libaprutil-1.so: undefined reference to `XML_StopParser'
collect2: ld returned 1 exit status
make: *** [subversion/svnadmin/svnadmin] Error 1
[root@server subversion-1.7.6]#

I have managed to fix this so that I can install Apache subversion 1.7.x, but there is two ways to fix it, please help advice:

The first way to fix it is to include: --with-expat=includes:lib_search_dirs:libs in the ./configure command like this:
Code:
./configure --prefix=/usr --with-ssl [B]--with-expat=includes:lib_search_dirs:libs[/B] --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

It works, but it gives this warning:
Code:
configure: WARNING: Expat found amongst libraries used by APR-Util, but Subversion libraries might be needlessly linked against additional unused libraries. It can be avoided by specifying exact location of Expat in argument of --with-expat option.

So I am trying to specify the path, but don't understand how. I am running CentOS 6.3 64bit. However I found this comment from a user running FreeBSD http://subversion.tigris.org/issues/show_bug.cgi?id=3997

Building Subversion 1.7.x on FreeBSD currently requires a configure flag:

--with-expat=/usr/local/include:/usr/local/lib:expat

As that is the default location of expat on that platform, it would be nice if
configure detected it automatically.

And I tested on my CentOS 6.3 64bit server with same command as the FreeBSD user, and it works. I did with this: --with-expat=/usr/local/include:/usr/local/lib:expat like this:

Code:
./configure --prefix=/usr --with-ssl [B]--with-expat=/usr/local/include:/usr/local/lib:expat[/B] --with-apxs=/usr/sbin/apxs --with-apr=/usr/bin/apr-config

The big question is if --with-expat=/usr/local/include:/usr/local/lib:expat also is correct paths on CentOS 6.3 64bit? Because it does not give errors. So it seems to work. Is it correct path, same as FreeBSD path also on CentOS?
 
also i see everybody using: http://dasvn.googlecode.com/svn/trunk/Files/sqlite-amalgamation-3.6.13.tar.gz
could i use the newest version from sqlite-amalgamation site: http://www.sqlite.org/download.html (not sure which one to use)

In newer versions they have moved the sqlite3.c file into the packages called "sqlite-autoconf". Go to http://www.sqlite.org/download.html and download the packages called "sqlite-autoconf-3071401.tar.gz", in that package you will find the file "sqlite3.c".

When I have solved my last questions about installing Apache Subversion 1.7.x as posted in reply #78 here http://www.directadmin.com/forum/showthread.php?t=38010&p=228992#post228992 - then I will post all needed commands to install 1.7.x on CentOS 6.x
 
Back
Top