Category: Linux Installation Issues

installing fxruby on ubuntu

Did you get the following error on your ubuntu 5.10 when installing fxruby (or probably any other gem) via rubygems:

Building native extensions. This could take a while...
extconf.rb:4:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:4

then you probably need to install the ruby1.8-dev package.

Installing scons on Fedora Core 3

I downloaded the rpm scons-0.96.1-2.1.fc3.rf.noarch.rpm from http://dag.wieers.com/packages/scons/

If scons (I needed it for the kdissert mind mapping tool), gives the following error:

Checking for uic : uic was not found - set QTDIR put it in your PATH ?


You probably need to install the Qt gui toolkit headers with ‘yum install qt-devel’

If you get:

Checking for the kde includes : The kde includes were NOT found

You need a ‘yum install kdebase-devel’ (or at least something else this is dependent on)

Hope this help someone some minutes googling or maybe prevents some hairpulling. In any case, kdissert is a nice tool though. I was just evaluating a commercial mindmapper on windows (Visual Mind) when it caught my eye. It’s got basically the same features so I guess I can stop evaluating it. I must admit Visual Mind looks real nice, but my wallet can’t see the difference.

I just wonder… why is it you can’t have 2 branches arrive at the same node… say, you’ve got 2 possible paths giving the same result and you haven’t made up your mind yet about which one you’ll be using. This doesn’t seem to be possible in either kdissert or Visual Mind.

Problem booting copied Fedora partition with Grub

Situation:
After copying a Fedora Core 3 partition to a new harddrive (using Knoppix) I was at first unable to boot the new partition (using Grub).
I got the following error:

switchroot: mount failed: 22
umount /initrd/dev failed: 2
Kernel panic - no syncing: Attemped to kill init!

I vaguely remembered having this situation before, but really couldn’t remember how I dealt with it.
Googling around didn’t really produce much results at first (only more people having the same issue, but no real answers), but I was able to puzzle a solution together.

Problem:
It turned out that both my grub.conf and /etc/fstab files contained a reference to a ‘LABEL’ that seemed to be missing. Relevant entry of grub.conf:

title Fedora Core (2.6.9-1.667)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img

entry of fstab:

LABEL=/ / ext3 defaults 1 1

Solution:
For as far as I understand you’d normally put a device here (in my case I would have been able use /dev/hda6 in both files), but the ‘LABEL=/’ here means as much as ‘use the partition with label /’.
Putting a label on a partition is possible using ‘e2label’. I labelled my /dev/hda6 as follows (using Knoppix):

su
mount -o dev,rw /mnt/hda6
(to mount my new partition writable)
e2label /mnt/hda6 /

Apparently it’s also possible to set the partition label/volume name using ‘tune2fs’, but since the above worked for me I didn’t really look into this.