Mastodon on Gentoo

Aus WIKI
Version vom 27. August 2018, 13:08 Uhr von Signux (Diskussion | Beiträge) (→‎Installation)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Notwendige packages

dev-lang/ruby
net-libs/nodejs
sys-apps/yarn
media-gfx/imagemagick
media-video/ffmpeg
dev-libs/protobuf
dev-db/redis
dev-db/postgresql

Installation

create new user adduser mastodon

login as this user sudo su - mastodon

git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && src/configure && make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc

# Restart shell
exec bash

# Check if rbenv is correctly installed
type rbenv

# Install ruby-build as rbenv plugin
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 2.5.1