Archive for August, 2010

Solution for error: /usr/bin/mandb: can’t set the locale; make sure $LC_* and $LANG are correct

Cron sends an email every day with the errors that were in the jobs processed. I got this one:

/etc/cron.daily/man-db:
/usr/bin/mandb: can’t set the locale; make sure $LC_* and $LANG are correct
Here is the solution. You need to generate locales for your $LANG defined in this file: /etc/environment. Here is how mine looks:
LANG=”en_GB.UTF-8″
PATH=”/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
The locale generated for the system is in this file: /etc/default/locale.
So, run dpkg-reconfigure locales and choose en_GB.UTF-8, disable all others, in the next screen choose en_GB.UTF-8 as default, and this should solve the problem.

27/08/2010 at 10:54 2 comments

Error when installing gem on debian lenny

Got this eror when trying to install a ruby gem?

ERROR:  could not find gem “your_gem” locally or in a repository

Then your rubygems most probably is outdated. I spent couple of hours searching the internet for a solution regarding this problem and found anything then what I needed. Finally I found the solution: update rubygems.

Dowload rubygems and rubygems1.8 packages from debian backports:

cd /tmp

wget http://backports.mithril-linux.org/pool/main/libg/libgems-ruby/rubygems1.8_1.3.4-1~bpo50+1_all.deb

wget http://backports.mithril-linux.org/pool/main/libg/libgems-ruby/rubygems_1.3.4-1~bpo50+1_all.deb

dpkg -i /tmp/rubygems1.8_1.3.4-1~bpo50+1_all.deb

dpkg -i /tmp/rubygems_1.3.4-1~bpo50+1_all.deb
After this you can go on installing your gem.

26/08/2010 at 17:31 Leave a comment


 

August 2010
M T W T F S S
« Jun   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Follow

Get every new post delivered to your Inbox.

Join 31 other followers