• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XCode SVN+SSH - broken Subversion install? [Solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode SVN+SSH - broken Subversion install? [Solved]


  • Subject: Re: XCode SVN+SSH - broken Subversion install? [Solved]
  • From: Craig Phillips <email@hidden>
  • Date: Fri, 12 Aug 2005 11:47:01 +1000


On 11/08/2005, at 22:31, Karan, Cem (Civ, ARL/CISD) wrote:

I tried setting up Subversion as described in Ben Syverson's very
helpful web page (http://bensyverson.com/geek/svnssh/) but alas my
basic Unix knowledge is stopping me dead.

I've had no problem installing Subersion via DarwinPorts as described
nor in setting SSH between my main computer and my Tiger Server.
However, I've come unstuck in two places...

First of all installing Subversion does not install the wrapper file
"svnserve.wrapper" - at least I can't find it.  To clarify in my
enthusiasm I've installed Subversion on my main desktop (G4), my
laptop and my Tiger Server but non of these installs have provided a
wrapper file.  So, I've manually created one and chmod'd it (again)
as per instructions.

At this point I can SSH into the server with a simple
"email@hidden" or "craig@10.0.0.1" and I'm logged straight in -
meaning that I've configured SSH properly.

Once logged into the server I have tested that the svnserve is
accessible and got back the expected reply - meaning that bash has a
path to svnserve. Further to my way of thinking it means that there
is nothing wrong with the wrapper...

I've created the repository using svnadmin and confirmed it exists
and has the right perm's.

Where I stop is the step importing the project files... the following
is what happens:

svn import /Users/craig/myProject svn+ssh://10.0.0.1/SVNRepository/
myProject -m "Initial import of myProject files"
bash: line 1: svnserve: command not found
svn: Connection closed unexpectedly


Of course have previously checked that my SSH login could find the command "svnserve" this error doesn't really help me and I've no idea where to start looking...

Has anyone else experienced this? Or possibly have a solution ?


Have you made sure that you put the path updates in the correct bash configuration file? I ran into similar problems when I put my $PATH changes in .bashrc rather than .profile (or maybe thats backwards, I don't remember which). Read the man pages on bash, they will tell you which file you need to put it all into, but if you put it into the wrong file, then it will all work from the local machine, but fail from the remote machine with exactly the same problems as you described...


Good luck,
Cem Karan

Thanks for the clue Cem, I should've been able to figure this one out myself.

There were 2 changes I had to make that weren't covered in Ben's webpage (http://bensyverson.com/geek/svnssh/) the first was setting up the .bashrc file as you mentioned.

From the bash man pages:
Bash attempts to determine when it is being run by the remote shell
daemon, usually rshd. If bash determines it is being run by rshd, it
reads and executes commands from ~/.bashrc, if that file exists and is
readable.


The second was the wrapper example Ben provided need a -t option added.

#!/bin/sh
umask 002
svnserve.bin -t

Thanks for the tip-off

Regards
Craig
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: XCode SVN+SSH - broken Subversion install? (From: "Karan, Cem (Civ, ARL/CISD)" <email@hidden>)

  • Prev by Date: Strange error in Run Script build phases
  • Next by Date: Re: August 2005 documentation update still remove Perl 5.86 and wxWidgets docs
  • Previous by thread: Re: XCode SVN+SSH - broken Subversion install?
  • Next by thread: our makefile used to work, but...
  • Index(es):
    • Date
    • Thread