0

I have a project at gitlab. I'm setting up Continious Integration for it. I need to install sphinx search engine and it requires sudo.

- http://sphinxsearch.com/files/sphinx-3.0.3-facc3fb-linux-amd64.tar.gz -O sphinx.tar.gz
- tar -zxvf sphinx.tar.gz
- cd sphinx-*/
- sudo ./configure --with-mysql # this fails
- sudo make && sudo make install  # this fails

How can I use "sudo" on gitlab?

Note that it's gitlab.com and not a copy of it running on my server.

  • The actual error message would be helpful – Gerald Schneider Sep 13 '18 at 4:39
  • In my experience, all commands are run as root and "sudo" is not installed. To confirm, you can add a command -v sudo and whoami to your script. Since you also specify a specific version of sphinx to install. I would simply add sphinx.tar.gz to your git repository. You may find sphinx.tar.gz in the /build/ directory in your created docker container. – Arlion Sep 13 '18 at 14:01

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.