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
  • 1
    Newcomers often use the nano editor. Does sudo -u git -H nano config/gitlab.yml work for you?
    – John1024
    Apr 23, 2014 at 7:47

1 Answer 1

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.

3
  • Doesn't it? which editor shows me /usr/bin/editor... That should exist for all users.
    – Oli
    Apr 23, 2014 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, 2014 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). Apr 23, 2014 at 7:52

You must log in to answer this question.

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