logo       


Re: Premature end of script headers: viewvc.cgi: msg#00065

Subject: Re: Premature end of script headers: viewvc.cgi
On 3/28/07, C. Michael Pilato <cmpilato@xxxxxxxxxx> wrote:
Kylo Ginsberg wrote:
> I'm trying to install viewvc to access a subversion repository, and
> when accessed via apache I get:
>
> Premature end of script headers: viewvc.cgi
>
> However, a couple things work:
> 1) bin/standalone.py works fine against the subversion repository
> 2) viewvc.cgi works fine against a cvs repository

Have you tried just running viewvc.cgi from the command prompt?  You should
get sane output from it that begins with a Content-type header.

   $ /usr/local/viewvc-1.1-dev/bin/cgi/viewvc.cgi
   Content-Type: text/html; charset=UTF-8


Thanks, I resolved my problem.

For the record, I got my best clues by running "strace -etrace=file viewvc.cgi".

And the problem I was having was that I have two installations of
subversion (and specific to this problem, of the subversion python
bindings) on the machine in question.  I was specifying the
appropriate path for the subversion binaries themselves in
viewvc.conf, *but* the python bindings were getting pulled from the
wrong place.

Kind of interesting why: subversion recommends specifying the path to
the bindings like so:

echo /usr/local/lib/svn-python > /usr/lib/python2.x/site-packages/subversion.pth

Unfortunately, when python parses .pth files (at least python 2.4) it
tacks the new directories at the *end* of sys.path, rather than
inserting them in the position they were found.  So in my case
/usr/lib/python2.x/site-packages was at the head of sys.path, the
freshly installed subversion bindings were now to be found at the end
of sys.path, and somewhere in the middle was the older, unwanted
subversion bindings.  So I got the latter.

In my case, the recommendation to install python bindings using a .pth
file caused a bit of a detour.

Cheers,
Kylo


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe