RPM installation on Fedora: Difference between revisions

From diaspora* project wiki
No edit summary
(Redirected page to Installation/Fedora)
 
Line 1: Line 1:
= RPM installation on Fedora =
#REDIRECT [[Installation/Fedora]]
 
{{Out of date}}
 
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:
 
<pre>sudo yum install mongodb-server openssl ImageMagick git libxslt-devel libxml2-devel</pre>
== 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:
 
<pre>sudo yum remove ruby</pre>
(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:
 
<pre>    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</pre>
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:
 
<pre>  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</pre>
Rebuild rubygem in the same way:
 
<pre>  rpmbuild --rebuild rubygems-*src.rpm
  yum localinstall --nogpgcheck rpmbuild/rpms/noarch/rubygems-1.3.7-1.fc13.noarch.rpm</pre>
== Getting,running and testing diaspora ==
 
From this point, you should proceed from “Bundler” in README.md

Latest revision as of 23:20, 19 July 2013