0

I am trying to install gitlab on my server but when I run this command:

sudo -u git -H editor config/gitlab.yml

then I get:

sudo: editor: command not found

cn you guys tell me what is the wrong with this command, I am following this instruction for installing GitLab:

https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md

I am not much familiar to Linux and SSH commands, so be gentle with me. Thanks

  • 1
    Newcomers often use the nano editor. Does sudo -u git -H nano config/gitlab.yml work for you? – John1024 Apr 23 '14 at 7:47
3

The editor command doesn't exist by default. In the tutorial you are using they are making editor as an alias for vim earlier.

You can just use vim (advanced) or nano (easy) instead of editor.

  • Doesn't it? which editor shows me /usr/bin/editor... That should exist for all users. – Oli Apr 23 '14 at 7:48
  • @Oli I agree. /usr/bin/editor links to /etc/alternatives/editor, which links to /bin/nano on both of my systems. – Jos Apr 23 '14 at 7:51
  • @Oli Yeah you're right, my bad. But it is a symlink which he may have accidentally removed (if he just executed all commands in the tutorial). – Louis Matthijssen Apr 23 '14 at 7:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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