Require: No Such File to Load — Mkmf (LoadError)

While attempting to install a ruby gem you may get this error:

Building native extensions.  This could take a while...
ERROR:  Error installing rails:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.8 extconf.rb
extconf.rb:36:in `require': no such file to load -- mkmf (LoadError)
    from extconf.rb:36

To resvole this:

apt-get install ruby1.9.1-dev

Dovecot /usr/lib/dovecot/imap: No Such File or Directory

After installing and configuring Dovecot for:

protocols = imap imaps

And restarting Dovecot this error is seen:

Error: mail_executable: Can't use /usr/lib/dovecot/imap: No such file or directory Fatal: Invalid configuration in /etc/dovecot/dovecot.conf

This can be caused by installing the dovecot-common package but not the dovecot-imapd packages

To resolve just run on debian:

apt-get install dovecot-imapd
/etc/init.d/dovecot restart

Undefined Macro: AC_PROG_LIBTOOL

This error: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1

Occurs on Debian when attempting to automake a source program, to fix this we need to install libtool by running:

apt-get install libtool

Now re-run that automake or and it should work fine

FreeBSD – [Create-users-groups] Error Code 67

After attempting to make install clean for net/netatalk

This error is observed:

[create-users-groups] Error code 67

and the make fails.

This is due to the fact that user database being out of sync. To correct this we need to issue the following command:

pwd_mkdb -p /etc/master.passwd

Now try to re-make the program and it should proceed successfully.

Docker and Aufs on Gentoo/funtoo

and then try to emerge docker again

When attempting to install docker on gentoo or funtoo and you used a genkernel or debian kernel aufs will typically fail emerging.

To fix this all we have to do is emerge:

sudo emerge sys-kernel/aufs-sources

and then try to emerge docker again

sudo emerge -av app-emulation/docker

Webmin on EC2

Amazon’s EC2 instances run ubuntu cloud edition which has one user named ubuntu with no password.

This makes logging into webmin impossible as the user has know known password.

To correct this we run:

/usr/share/webmin/ /etc/webmin root YOUR_PASSWORD

now you can login to webmin with root and the password you chose

Frozen Mouse and Keyboard FreeBSD Xorg

After recently installing FreeBSD and porting Xorg I ran into an issue after running startx where Xorg would start but the keyboard and mouse would be unresponsive.

In order to fix this, we just have to add the following to /etc/rc.conf:


And reboot the machine