Docs Navigation

How to install a dependency?

The Semaphore platform has most of the popular programming languages and databases preinstalled. To learn more about installed dependencies check our Supported stack article.

If the dependency you need is not already installed, you can install it with the Ubuntu package manager or using an alternative method such as compiling it from the source, or manually downloading binaries.

To install dependecies using the package manager (apt-get) you can use the template command below and add it to your build settings:

sudo apt-get install -y your-dependency

At the start of your build settings you should have the following:

sudo apt-get update

Caching installations

An improvement over the steps above, is to use install-package instead. It's main purpose is to cache installations from APT. Currently, it supports package versions, but no apt-get options. It can be used as described below, without using sudo or running apt-get update. If you're using a third party PPA, make sure that it's added beforehand.

install-package dependency-1 dependency-2=0.11.2-1

If you need help, just email us with your needs. If not, we’d still love to hear from you – knowing that many people are using a particular dependency generally encourages us to add it to the platform.

Semaphore Docs are open source — Edit on GitHub

Newsletter

Occasional lightweight product and blog updates. Unsubscribe at any time.

2009-2017 © Rendered Text. All rights reserved. Terms of Service, Privacy policy, Security.