Thursday, March 25, 2010

yum problems


upgrading after a while I encountered these problems:

[...]
Trying other mirror.
http://ftp.crc.dk/fedora/linux/releases/12/Everything/x86_64/os/Packages/privoxy-3.0.13-beta.1.fc12.1.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
http://fedora.uni-oldenburg.de/releases/12/Everything/x86_64/os/Packages/privoxy-3.0.13-beta.1.fc12.1.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - ""
Trying other mirror.
ftp://ftp.pbone.net/pub/fedora/linux/releases/12/Everything/x86_64/os/Packages/privoxy-3.0.13-beta.1.fc12.1.x86_64.rpm: [Errno 14] PYCURL ERROR 6 - ""
[...]


these 2 commands solved my night:

# yum clean all

# yum check-update

Tuesday, February 23, 2010

DBD::mysql on Leopard


I've encountered this problem

dyld: lazy symbol binding failed: Symbol not found: _mysql_init Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle Expected in: dynamic lookup

dyld: Symbol not found: _mysql_init Referenced from: /Library/Perl/5.8.8/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle Expected in: dynamic lookup


I always have problems due to multiple installation of mysql my hand, 32 and 64 bit, and 2 different installations of perl (one coming from Leopard, the other from port).

To solve this (due to 64bit mysql libraries and missing 32bit libs) I decided to recompile DBD::mysql on my box in CPAN

CPAN> force install DBD::mysql

and apparently this solved the problem

sudo: sorry, you must have a tty to run sudo

running a rather complex command through ssh :

# ssh user@remotebox "sudo su - user2 -c remotecommand"


gives me the following error:

sudo: sorry, you must have a tty to run sudo


fortunately sudo offers the option -t for a pseudo terminal allocation
and the instruction

# ssh -t user@remotebox "sudo su - user2 -c remotecommand"



now works perfectly

Monday, January 04, 2010

spamassassin 2010 bug


I understand it's a pretty stable program,
but this error is really gross!

https://secure.grepular.com/blog/index.php/2010/01/01/spamassassin-2010-bug/

changed local.cf and added:

score FH_DATE_PAST_20XX 0.0