Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I used SVN to check out the code of an open source project. When I typed the following command:

[user1@smallfox]~/workspace/project1% svn co http://svn.apache.org/repos/asf/mahout/trunk

It worked just fine.

However, when I typed the SVN command in the root directory, it did not work and gave me an error message:

[user1@smallfox]~% svn co http://svn.apache.org/repos/asf/mahout/trunk
zsh: command not found: svn

Can you tell me why?

share|improve this question

migrated from stackoverflow.com Jun 10 '11 at 20:36

This question came from our site for professional and enthusiast programmers.

    
one for the sysadmin forum but it appears the 'svn' tool is not available in your home folder. what does 'whereis svn' tell you? –  emeraldjava Jun 10 '11 at 17:14
    
After typing "whereis SVN" under the root directory, the system returns "svn: ". What does that mean? –  bit-question Jun 10 '11 at 17:33
    
how did you install svn? It's saying svn is installed in your home dir. what does 'echo $PATH' show you. And what does 'whereis svn' when its run in the './workspace/project1' dir say? –  emeraldjava Jun 10 '11 at 17:48
2  
A question regarding svn could be on-topic for SO, but it sounds like this one will achieve escape-velocity and head toward the sysadmin site, so I'd recommend moving it over there. –  Greg Jun 10 '11 at 20:03

1 Answer 1

Try from your home directory the following and see if it works

/workspace/project1/svn co http://svn.apache.org/repos/asf/mahout/trunk

Your path is messed up. svn is probably not in path and also your path was setup with something like

export PATH=.:$PATH

and svn is present in /workspace/project1/

Much of the above is guess work, since I would need more details, but I would recommend you to revisit the way you installed SVN.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.