RPM installation on Fedora: Difference between revisions
(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...") |
No edit summary |
||
Line 1: | Line 1: | ||
= RPM installation on Fedora = | |||
This documents describes how to install diaspora on Fedora 13. It supplements the ordinary README.md in the application base directory. | 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 | |||
Preparing your system | * 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: | 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 | <pre>sudo yum install mongodb-server openssl ImageMagick git libxslt-devel libxml2-devel</pre> | ||
== Ruby 1.8.7 installation. == | |||
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: | 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 | <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. == | |||
Rebuilding rawhide ruby and rybygem. | |||
From now, | 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). | 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: | Now, download and rebuild ruby: | ||
<pre> sudo yum install yum-utils fedora-release-rawhide | |||
yumdownloader --enablerepo=rawhide --source ruby rubygems | yumdownloader --enablerepo=rawhide --source ruby rubygems | ||
sudo yum install $( rpm -qRp ruby-*src.rpm | grep -v rpmlib) | sudo yum install $( rpm -qRp ruby-*src.rpm | grep -v rpmlib) | ||
rpmbuild --rebuild ruby-*src.rpm | 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: | 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 \ | yum localinstall --nogpgcheck \ | ||
rpmbuild/rpms/i686/ruby-1.8.7.302-1.fc13.i686.rpm \ | rpmbuild/rpms/i686/ruby-1.8.7.302-1.fc13.i686.rpm \ | ||
Line 47: | Line 48: | ||
rpmbuild/rpms/i686/ruby-devel-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-irb-1.8.7.302-1.fc13.noarch.rpm \ | ||
rpmbuild/rpms/noarch/ruby-rdoc-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: | 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 | yum localinstall --nogpgcheck rpmbuild/rpms/noarch/rubygems-1.3.7-1.fc13.noarch.rpm</pre> | ||
== Getting,running and testing diaspora == | |||
Getting,running and testing diaspora | |||
From this point, you should proceed from | From this point, you should proceed from “Bundler” in README.md |
Revision as of 20:57, 23 December 2012
RPM installation on Fedora
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 [[1]]
- 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 [[2]] (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