Skip to content

Installing on Fedora

dmorley edited this page Mar 21, 2012 · 27 revisions

Versions

These instructions are for the current version of Fedora 15. If you are using a older version you may need to use things like remi repo for up to date packages.

Build Tools

To install build tools, run the following:

    su -c 'yum install make automake gcc gcc-c++ libxslt libxslt-devel libxml2 libxml2-devel libffi libffi-devel libcurl libcurl-devel openssl-devel sqlite-devel'

Ruby

RVM

You can install Ruby on a clean per user basis via RVM. This is currently recommended to get the latest Rubygems version.

You still need a system Ruby so run:

sudo apt-get install ruby-devel

To install RVM and Ruby 1.9.2, as your normal user (the one which Diaspora should run under), run (I was getting an error so I had to run curl -k which told me to "echo insecure >> ~/.curlrc")

bash <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) stable
echo "[[ -s '$rvm_path/scripts/rvm' ]] && . '$rvm_path/scripts/rvm' # Load RVM function" >> ~/.bashrc
source ~/.bashrc
rvm install ruby-1.9.2-p290
rvm use ruby-1.9.2-p290@global

MySQL

This installs MySQL, you also need the mysql-devel package:

    su -c 'yum install mysql-server mysql-devel'

To start MySQL run

    su -c 'service mysqld start'

PostGres

This installs Postgres also if you prefer to use this over MySQL (requires some postgres setup knowledge):

    su -c 'yum install postgresql-server postgresql-devel'

To start Postgres see: http://wiki.postgresql.org/wiki/YUM_Installation

ImageMagick

To install ImageMagick, run the following:

    su -c 'yum install ImageMagick'

Git

To install Git, run the following:

    su -c 'yum install git'

Redis

To install Redis, run the following:

    su -c 'yum install redis'

Make a directory for redis logs

   su -c 'mkdir /var/log/diaspora'

RubyGems

To install RubyGems, run the following:

    su -c 'yum install rubygems'

Rubygems tends to be a little old, you can update it by:

   su -c 'gem update --system'

Bundler

To install Bundler, run the following:

    su -c  'gem install bundler'

Congrats! You have all your dependencies installed. Go back to Installing and Running Diaspora.

Clone this wiki locally