Archive for the ‘how to fix the error…’ Category

uninitialized constant MysqlCompat::MysqlRes

I just had the following problem when trying to start a Ruby on Rails application on a fresh installation of Mac OS X Snow Leopard after I installed the mysql gem via gem install mysql: uninitialized constant MysqlCompat::MysqlRes I searched a bit and found a solution here. It was a problem with a buggy version [...]

/usr/bin/ld: cannot find -lperl

I just compiled ImageMagick and got the following error when trying to run a make install /usr/bin/ld: cannot find -lperl To fix this, I had to install Perl libraries via sudo apt-get install libperl-dev

“???????????? no permissions” when running adb devices

I got ???????????? no permissions when running adb devices To fix this I needed to start the server under root privileges. # adb kill-server # adb start-server After that # adb devices returns the correct list of devices.

ImportError: No module named trac.web.modpython_frontend

I just updated my Debian Etch installation to Lenny. I am using Trac on this system and got the following error, when I tried to access it: ImportError: No module named trac.web.modpython_frontend I struggled around a lot and the easy solution was to update the Trac system via easy_install –upgrade Trac

Python.h: No such file or directory

I just tried to install some Python package with easy_install and got the following error: Python.h: No such file or directory Installing of the Python development headers solved the problem. I just executed: sudo apt-get install python2.6-dev To get the best version of the apt-package search for it using e.g. sudo apt-cache search python

The following signatures couldn’t be verified because the public key is not available

I wanted to update my Debian packages via sudo apt-get update and what I got was the following error: GPG error: ftp://mirror.hetzner.de etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE303B To fix this, I just had to add the keys via gpg –keyserver pgpkeys.mit.edu –recv-key 9AA38DCD55BE303B [...]

[warn] _default_ VirtualHost overlap on port 443, the first has precedence

I got this error after adding a new SSL site to my Apache configuration: [warn] _default_ VirtualHost overlap on port 443, the first has precedence To fix this I had to add NameVirtualHost *:443 to my Apache configuration file (apache2.conf).

Cannot set LC_* to default locale

I got the following errors when I ran locale on my Debian installation: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_COLLATE to default locale: No such file or directory To fix this I executed localedef [...]

no such file to load — mkmf

I got the following error when i wanted to install passenger via gem install passenger on my ubuntu machine: no such file to load — mkmf To fix this i had to install the ruby modules via sudo apt-get install ruby1.8-dev

apache2-ssl-certificate: command not found

I got the following error when trying to create a ssl-certificate on Ubuntu 8.04: apache2-ssl-certificate: command not found The problem was that there is a new command to create such a certificate: sudo apt-get install ssl-cert sudo mkdir /etc/apache2/ssl sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem