Template:Installation/Preparation/Ubuntu: Difference between revisions

From diaspora* project wiki
(→‎Install packages: cmake is require for rugged gem)
(5 intermediate revisions by 3 users not shown)
Line 5: Line 5:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
sudo apt-get update
sudo apt-get update
sudo apt-get install build-essential git curl imagemagick libmagickwand-dev nodejs redis-server libcurl4-openssl-dev libxml2-dev libxslt1-dev {{#ifeq: {{#var:version}}|Precise||libgmp-dev <nowiki/>}}{{#switch: {{#var:DB}}|mysql=libmysqlclient-dev|postgres=libpq-dev}}{{#ifeq: {{#var:mode}}|development|<nowiki/> libmagickwand-dev cmake|}}
sudo apt-get install build-essential git cmake curl imagemagick libmagickwand-dev nodejs redis-server libssl-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev {{#ifeq: {{#var:version}}|Precise||libgmp-dev <nowiki/>}}{{#ifeq: {{#var:mode}}|development|libidn11-dev <nowiki/>|}}{{#switch: {{#var:DB}}|mysql=libmysqlclient-dev|postgres=libpq-dev|mariadb=libmysqlclient-dev}}{{#ifeq: {{#var:mode}}|development|<nowiki/> cmake|}}
|lang=bash}}
|lang=bash}}
{{#ifeq: {{#var:version}}|Precise|
{{#ifeq: {{#var:version}}|Precise|
Line 11: Line 11:
{{Template:Installation/Ubuntu/RedisPPA}}
{{Template:Installation/Ubuntu/RedisPPA}}
}}
}}
If you receive errors about packages that could not be found, make sure that <tt>universe</tt> is enabled in <tt>/etc/apt/sources.list</tt> after the entry for <tt>trusty-updates</tt>.


=== Install the database ===
=== Install the database ===
Line 24: Line 26:
|lang="bash"}}
|lang="bash"}}


The rest of the guide should happen under this user!
The rest of the guide, except for sudo commands, should be performed as the diaspora user.
}}
}}
=== Removing packaged version of RVM ===
=== Removing packaged version of RVM ===



Revision as of 21:16, 8 October 2018

Install packages

Run:

sudo apt-get update
sudo apt-get install build-essential git cmake curl imagemagick libmagickwand-dev nodejs redis-server libssl-dev libcurl4-openssl-dev libxml2-dev libxslt1-dev libgmp-dev


If you receive errors about packages that could not be found, make sure that universe is enabled in /etc/apt/sources.list after the entry for trusty-updates.

Install the database

Skip this step if you already have one.

See the Ubuntu server guide.


Removing packaged version of RVM

If you installed RVM via the package manager, we recommend to remove it. See this StackOverflow answer for some tips on how to do that and then continue with the installation instructions below.