Tuesday, October 29, 2013

PostgeSQL does not start with "FATAL: too many private dirs demanded" in postmaster.log

There is a bug in recent Gentoo-installations, which prevents start of PostgreSQL-server. I don't know exactly where does it come from, but i encounter this bug several times on different maschines: there is a link named "posix" under /usr/share/zoneinfo, which targets to ".", so scanning this directory will end in an infinite directory depth (this is what postgres prevents from starting). You can also locate this directory by searching for it with:

$ find -L /usr/share/zoneinfo/

"find" will stop, if it has found a loop.

Solution:

Simply remove the link and postgres will start again.

Wednesday, April 24, 2013

Making Android SDK work with Debian Wheezy 64-bit (amd64)

The main issue with the Android SDK and a linux 64-bit platform is that the platform-tools provided by Google are 32-bit binaries. Of course you can build all the tools by yourself. Google provides the sources and the howto at the Android-Tools. But this can be a bit painfull.
Another way is to make the provided tools make work at your 64-bit environment. In former times we had the ia32-libs package; now we have multiarch :

$dpkg --add-architecture i386 

Add the "new" platform to your /etc/apt/sources.list :

deb [arch=amd64,i386] http://ftp.de.debian.org/debian/ wheezy main non-free contrib

Make an update ....

$apt-get update


... install the neccessary packages ....

$apt-get install libstdc++6:i386 libncurses5:i386 libz1:i386

and finally all the platform-tools (adb,aapt, ...) will suddenly work ;-)