
vpaziran at gmail
Feb 3, 2007, 7:27 PM
Post #28 of 33
(1399 views)
Permalink
|
|
Re: Unsupported version control system "svn"
[In reply to]
|
|
Are you getting: TracError: Unsupported version control system "svn" ??? Or how about: ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context ? If you are getting the first error mentioned, go to the command prompt and type: python -c 'from svn import fs' Well, it took me several hours of pain to figure out a solution. So I've decided to reply to every thread in the Trac mailing list so that others will be sure to stumble upon a (possible) answer. I installed Trac 0.10.3 on RHEL4. Here's the site that cured my pain: http://www.liucougar.net/blog/ archives/53/ Basically, recompile subversion but edit the Makefile so that neon will explicitly link against gssapi lib: vi subversion-1.4.2/Makefile old: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm - lcrypt -lnsl -lpthread -ldl new: SVN_APR_LIBS = .../subversion-1.4.2/apr/libapr-0.la -lrt -lm - lcrypt -lnsl -lpthread -ldl -lgssapi then compile + install again. You can always not compile neon, but don't you want to browse your code online? ;-) Btw, if you apply the above solution but get the new error: ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No such file or directory Then just reboot your box. Something is cached and needs to be restarted. keywords: red hat enterprise linux 4, rhel4, rhel, trac, subversion, rpm, source code, more keywords: see also: http://trac.edgewall.org/ticket/3706?format=rss http://trac.edgewall.org/ticket/3706 http://pacopablo.com/irclogs/2007/01/28 2007-02-02 18:29:45,878 Trac[main] ERROR: Unsupported version control system "svn" Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 191, in dispatch chosen_handler = self._pre_process_request(req, chosen_handler) File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 263, in _pre_process_request chosen_handler = f.pre_process_request(req, chosen_handler) File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 73, in pre_process_request self.get_repository(req.authname) # triggers a sync if applicable File "/usr/lib/python2.4/site-packages/trac/versioncontrol/api.py", line 91, in get_repository raise TracError('Unsupported version control system "%s"' TracError: Unsupported version control system "svn" Python 2.4.4 (#1, Feb 2 2007, 16:33:34) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import svn >>> from svn import fs Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/svn-python/svn/fs.py", line 19, in ? from libsvn.fs import * File "/usr/local/lib/svn-python/libsvn/fs.py", line 5, in ? import _fs ImportError: /usr/local/lib/libsvn_ra_dav-1.so.0: undefined symbol: gss_delete_sec_context >>> ------------------------------------------------------------ Quick-and-dirty notes on installing Trac from source code... ------------------------------------------------------------ [installed on RHEL4 - Nahant] wget http://mirror.x10.com/mirror/apache/httpd/httpd-2.0.59.tar.gz ./configure --enable-dav --enable-so --enable-maintainer-mode -- prefix=/usr/local/apache2 && make && make install wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz ./configure --prefix=/usr && make && make install # no need to get swig - subversion-1.4 have the wrappers in its own code #wget 'http://downloads.sourceforge.net/swig/swig-1.3.25.tar.gz? modtime=1118577644&big_mirror=0' #./configure --prefix=/usr/local && make && make install wget http://subversion.tigris.org/downloads/subversion-1.4.2.tar.gz wget http://subversion.tigris.org/downloads/subversion- deps-1.4.2.tar.gz sh autogen.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs --prefix=/usr/ local && make && make install make swig-py && make install-swig-py ls /usr/local/lib/svn-python # you should see "svn" and "libsvn" dirs here echo /usr/local/lib/svn-python > /usr/lib/python2.4/site-packages/ subversion.pth wget http://www.clearsilver.net/downloads/clearsilver-0.10.4.tar.gz ./configure && make && make install wget http://peak.telecommunity.com/dist/ez_setup.py python2.4 ez_setup.py wget http://docutils.sourceforge.net/docutils-snapshot.tgz python2.4 setup.py build python2.4 setup.py install wget http://www.iki.fi/mtr/genscript/enscript-1.6.4.tar.gz ./configure --prefix=/usr/local && make && make install wget http://mirror.olnevhost.net/pub/apache/httpd/modpython/ mod_python-3.2.10.tgz ./configure --with-apxs=/usr/local/apache2/bin/apxs && make && make install wget http://www.sqlite.org/sqlite-3.3.11.tar.gz ./configure --prefix=/usr/local && make && make install wget http://initd.org/pub/software/pysqlite/releases/2.3/2.3.3/ pysqlite-2.3.3.tar.gz python2.4 setup.py build python2.4 setup.py install wget http://ftp.edgewall.com/pub/trac/trac-0.10.3.tar.gz python2.4 setup.py build python2.4 setup.py install On Feb 3, 1:07 pm, "Adam Griffis" <adam.grif...@gmail.com> wrote: > I submitted a similar message a bit ago, but it didn't seem to show up > in the list. Forgive me if this ends up being a duplicate... > > I just finished installing TRAC on Dreamhost (my hosting provider), > but it doesn't seem to be connecting to SVN properly. I've seen > similar problems searching around with solutions referencing SWIG > stuff, but all of that seems to be working for me as when I run python > -c "from svn import core" from the command line I don't get any > errors. However, when I load up trac, this is what I get: > > Traceback (most recent call last): > File "/home/adgriffi/packages/lib/python2.3/site-packages/trac/web/ > main.py", line 387, in dispatch_request > dispatcher.dispatch(req) > File "/home/adgriffi/packages/lib/python2.3/site-packages/trac/web/ > main.py", line 191, in dispatch > chosen_handler = self._pre_process_request(req, chosen_handler) > File "/home/adgriffi/packages/lib/python2.3/site-packages/trac/web/ > main.py", line 263, in _pre_process_request > chosen_handler = f.pre_process_request(req, chosen_handler) > File "/home/adgriffi/packages/lib/python2.3/site-packages/trac/ > versioncontrol/api.py", line 73, in pre_process_request > self.get_repository(req.authname) # triggers a sync if applicable > File "/home/adgriffi/packages/lib/python2.3/site-packages/trac/ > versioncontrol/api.py", line 91, in get_repository > raise TracError('Unsupported version control system "%s"' > TracError: Unsupported version control system "svn" > > Any help will be greatly appreciated... > > -- > :wq --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users[at]googlegroups.com To unsubscribe from this group, send email to trac-users-unsubscribe[at]googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
|