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
LANG=”en_GB.UTF-8″PATH=”/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”
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