Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
zsh: command not found: svn

Can you tell me why?

share|improve this question

migrated from 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
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. – TTM Jun 10 '11 at 20:03

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

/workspace/project1/svn co

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .