Install WinRAR on Fedora

Simply put, to install WinRar on Fedora:

rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm
yum install unrar

The first command adds rpmfusion into your yum repository. Then, the yum command installs unrar from rpmfusion. Now you can extract rar files by ‘unrar e filename’. During the installation of unrar, yum may prompt you if it is OK to import GPG key from RPM Fusion nonfree repository? Type y to add it.

WinRAR is provided by RARLAB. Its download page points to rpm.livna.org for Linux version unrar. However, livna has been merged to rpmfusion. Thus, you should add rpmfusion into your yum repository instead. To do that, either follow the section “command line setup using rpm” on its config page or only add the nonfree repository (WinRAR is not open sourced) as I did above.

Install Ruby On Rails and Django on Fedora

Some notes about installing ruby on rails and django on fedora 11.

To install ROR on Fedora:

yum install mysql
yum install mysql-devel
yum install ruby
yum install rubygems
gem install rails
gem install mysql

Later, I found the gem installed by yum is 1.3.1, which is lower than required by rake. So I downloaded rubygems-1.3.5.tgz from http://rubyforge.org/frs/?group_id=126, and installed it by

> ruby setup.rb

To test the installation of mysql, write a ruby script with

require "mysql"

But I got this error,

mysqltestst.rb:1:in `require': no such file to load -- mysql (LoadError)

To fix it, add environment variable RUBYOPT=rubygems

Another way is as follows

require "rubygems"
require "mysql"

To install Django on Fedora:

yum install Django
yum install MySQL-python.i586