RPM installation on Fedora

From diaspora* project wiki
Revision as of 20:54, 23 December 2012 by Teslas moustache (talk | contribs) (Created page with "This documents describes how to install diaspora on Fedora 13. It supplements the ordinary README.md in the application base directory. General I have opted for using rpm pac...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This documents describes how to install diaspora on Fedora 13. It supplements the ordinary README.md in the application base directory. General

I have opted for using rpm packages where it's feasible. The overall situation is

   Ruby 1.8.7. As of now, available in rawhide (see below).
   Rubygems. In repo, but needs to be rebuilt to use ruby-1.8.7.
   Everything else: available.

Preparing your system

In order to run Diaspora, you will need to install the following dependencies:

sudo yum install mongodb-server openssl ImageMagick git libxslt-devel libxml2-devel

Ruby 1.8.7 installation.

In order to update ruby to 1.8.7, you need to know the packages currently using ruby on your box:

sudo yum remove ruby

(don't worry, nothing will be removed unless you approve it). You will presented a list of packages that yum will remove if ruby is removed. If this acceptable, answer 'yes' and proceed. Otherwise, you have two options:

   Wait until ruby-1.8.7 is available in Fedora-13. See https://bugzilla.redhat.com/show_bug.cgi?id=602435
   Use the instructions in README.md to install Ruby 1.8.7 in /usr/local, using it in parallell with rpm package 1.8.6.

Keep a note of the packages removed, it's possible to restore the system by reinstalling them. Rebuilding rawhide ruby and rybygem.

From now, let's assume that ruby is removed. The ruby-1.8.7 package in rawhide is not really what we want to install, it will pull in all the rawhide dependencies and make the system unstable. Instead, lets download the and rebuild the packages for Fedora 13.

Before doing this, setup a personal build environment so you can build the packages as ordinary user as described in http://sipx-wiki.calivia.com/index.php/Building_RPMs (or several other places).

Now, download and rebuild ruby:

   sudo yum install yum-utils fedora-release-rawhide
   yumdownloader --enablerepo=rawhide --source ruby rubygems
   sudo yum install $( rpm -qRp ruby-*src.rpm | grep -v rpmlib)
   rpmbuild --rebuild ruby-*src.rpm

rpmbuild will create ruby, ruby-libs, ruby-devel, ruby-rdoc and ruby-irb packages. Look for the last lines of output, which will show the exact location. For me, installation boils own to:

  cd ~
  yum localinstall --nogpgcheck   \
                   rpmbuild/rpms/i686/ruby-1.8.7.302-1.fc13.i686.rpm         \
                   rpmbuild/rpms/i686/ruby-libs-1.8.7.302-1.fc13.i686.rpm    \
                   rpmbuild/rpms/i686/ruby-devel-1.8.7.302-1.fc13.i686.rpm   \
                   rpmbuild/rpms/noarch/ruby-irb-1.8.7.302-1.fc13.noarch.rpm \
                   rpmbuild/rpms/noarch/ruby-rdoc-1.8.7.302-1.fc13.noarch.rpm

Rebuild rubygem in the same way:

  rpmbuild --rebuild rubygems-*src.rpm
  yum localinstall --nogpgcheck rpmbuild/rpms/noarch/rubygems-1.3.7-1.fc13.noarch.rpm

Getting,running and testing diaspora

From this point, you should proceed from "Bundler" in README.md