View Full Version : Problem with SVN
CoolRock
15-12-2008, 09:40
I've just installed SVN on linux but it's not working right. Tried using it for a wordpress installation but there's an error coming out.
root@coolrock [/home/coolrock/public_html]# svn co http://svn.automattic.com/wordpress/tags/2.7
svn: Unrecognized URL scheme for 'http://svn.automattic.com/wordpress/tags/2.7'
From the faq below....
I just built the distribution binary, and when I try to check out Subversion, I get an error about an "Unrecognized URL scheme." What's up with that?
Subversion uses a plugin system to allow access to repositories. Currently there are three of these plugins: ra_local allows access to a local repository, ra_dav which allows access to a repository via WebDAV, and ra_svn allows local or remote access via the svnserve server. When you attempt to perform an operation in Subversion, the program tries to dynamically load a plugin based on the URL scheme. A `file://' URL will try to load ra_local, and an `http://' URL will try to load ra_dav.
The error you are seeing means that the dynamic linker/loader can't find the plugins to load. This normally happens when you build Subversion with shared libraries, then attempt to run it without first running 'make install'. Another possible cause is that you ran make install, but the libraries were installed in a location that the dynamic linker/loader doesn't recognize. Under Linux, you can allow the linker/loader to find the libraries by adding the library directory to /etc/ld.so.conf and running ldconfig. If you don't wish to do this, or you don't have root access, you can also specify the library directory in the LD_LIBRARY_PATH environment variable.
So how do I know where is the correct library directory? Please assist if possible
How did you install SVN?
30 chr
CoolRock
15-12-2008, 17:48
wget apr-1.3.3.tar.gz
wget apr-util-1.3.4.tar.gz
wget db-4.7.25.tar.gz
tar zxvf apr-1.3.3.tar.gz
tar zxvf apr-util-1.3.4.tar.gz
tar zxvf db-4.7.25.tar.gz
did the usual..
cd <dir>
./configure -parameters-
make
make install
then...
wget subversion-1.5.4.tar.gz
tar zxvf subversion-1.5.4.tar.gz
./configure --with-apr --with-apr-utils --with-db
make
make install
this was roughly what i did.
I would suggest you install via yum since you are not familiar via souce compilation.
CoolRock
15-12-2008, 23:40
right... so i'll have to uninstall all those and install via yum?
CoolRock
16-12-2008, 00:08
Update #1
Uninstall all those.
Ran all these instead...
wget http://mirror.centos.org/centos/5.2/os/x86_64/CentOS/perl-URI-1.35-3.noarch.rpm
rpm -Uvh perl-URI-1.35-3.noarch.rpm
yum install subversion
Update #2
Installed: subversion.x86_64 0:1.4.2-2.el5 subversion.i386 0:1.4.2-2.el5
Dependency Installed: apr.i386 0:1.2.7-11 apr-util.i386 0:1.2.7-7.el5 cyrus-sasl-lib.i386 0:2.1.22-4 neon.i386 0:0.25.5-5.1 neon.x86_64 0:0.25.5-5.1 openldap.i386 0:2.3.27-8.el5_2.4 postgresql-libs.i386 0:8.1.11-1.el5_1.1
Complete!
root@coolrock [/usr/local/src]# svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.5.4.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.
However.....
root@coolrock [/home/coolrock/public_html]# svn co http://svn.automattic.com/wordpress/tags/2.7
svn: Unrecognized URL scheme for 'http://svn.automattic.com/wordpress/tags/2.7'
Ideas?
I install on my development machine using yum packages. I can checked out WordPress :)
...
A 2.7/wp-admin/admin-footer.php
A 2.7/wp-admin/categories.php
A 2.7/wp-admin/themes.php
A 2.7/wp-feed.php
Fetching external item into '2.7/wp-content/plugins/akismet'
A 2.7/wp-content/plugins/akismet/akismet.gif
A 2.7/wp-content/plugins/akismet/akismet.php
A 2.7/wp-content/plugins/akismet/readme.txt
Checked out external at revision 80345.
Checked out revision 10204.
CoolRock
16-12-2008, 17:50
weird. any specific commands u ran that i didn't state?
weird. any specific commands u ran that i didn't state?
I just install subversion.
yum install subversion
yum will take care of the other packages :)
CoolRock
17-12-2008, 21:47
alamak. what a pain.
root@coolrock [~]# yum install subversion
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: centosw.centos.org
* updates: centosl.centos.org
* addons: centosh.centos.org
* extras: centosw.centos.org
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 395 kB 00:01
updates : ################################################## 861/861
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package subversion - 1.4.2-2.el5.i386 is already installed.
Package subversion - 1.4.2-2.el5.x86_64 is already installed.
Nothing to do
Seems installed to me and yet.. cannot work..
then I doubt yours is not just installing now :) You need to debug.
can you confirm that you have the relevant linker/libraries?
# ld config -v
# svn --version
seems to me that you don't have NEON and hence no http:// support.
CoolRock
01-01-2009, 14:04
root@coolrock [~]# ld config -v
GNU ld version 2.17.50.0.6-6.el5 20061020
ld: config: No such file: No such file or directory
root@coolrock [~]# svn --version
svn, version 1.4.2 (r22196)
compiled Mar 14 2007, 20:43:24
Latest update: I managed to fully uninstall subversion then yum install subversion. Now wordpress svn works for me but apache couldn't load the modules in httpd.conf for the svn. So I had to comment them out. Any ideas?
Originally...
root@coolrock [/home/coolrock/public_html]# service httpd restart
Syntax error on line 35 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/mod_dav_svn.so into server: /usr/local/apache/modules/mod_dav_svn.so: undefined symbol: dav_register_provider
After making changes in httpd.conf by commenting out the svn..
LoadModule auth_passthrough_module modules/mod_auth_passthrough.so
LoadModule bwlimited_module modules/mod_bwlimited.so
LoadModule frontpage_module modules/mod_frontpage.so
#LoadModule dav_svn_module modules/mod_dav_svn.so
#LoadModule authz_svn_module modules/mod_authz_svn.so
root@coolrock [~]# service httpd restart
[Thu Jan 01 13:54:23 2009] [error] VirtualHost 120.50.34.25:0 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
httpd works now but I'm also unsure of the above mentioned errors tho.
vBulletin® v3.5.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.