Error Installing pip & easy_install for Python 2.7 on Win 64

I’ve been doing some messing around with Python, boto and AWS api’s recently (blog article to follow). To allow me to get the boto library installed on Win I took the pip & easy_install route.

At this point in time just ignore the fact that even though pip was meant to replace easy_install. The easiest way to install pip is still through the use of easy_install! confused? you’re not the only one.

Unfortunately there is a small bug in the install routines for the setuptools.msi. As you can imagine theres not much in the way of docs and I also struck a blank on the community forums (queue the inevitable ‘why use windows?’ replies)

If you try to run the setuptools.msi routine on Win 64 you’ll get the following error “Python version 2.7 is required, which was not found in the registry” all thats happening is that it’s actually looking in the wrong reg key location:

copy the registry entry value for InstallPath from:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath

to

HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath

It should now work. [Read more…]

Compiling subversion 1.7.1 from source with SSL


If you need to install Subversion 1.7.1 to a server with SSL support, here’s a quick routine to get that done.

Download the latest version
cd /usr/local/src
wget http://apache.mirror.aussiehq.net.au/subversion/subversion-1.7.1.tar.gz
tar -zxvf subversion-1.7.1.tar.gz
cd subversion-1.7.1

Use the in-built script to download the required dependencies, and configure neon for SSL
./get-deps.sh
cd /neon/
./configure --with-ssl
make
make install
cd ..

Download and install the required sqlite3.c
wget http://www.sqlite.org/sqlite-amalgamation-3.7.0.1.tar.gz
tar xvzf sqlite-amalgamation-3.7.0.1.tar.gz
mkdir /sqlite-amalgamation/
cp sqlite-3.7.0.1/sqlite3.c /usr/local/src/subversion-1.7.1/sqlite-amalgamation/

Configure & make Subversion
./configure --with-neon=/usr/lib64/
make
make install

if you’ve used default install locations, add to path
export PATH=$PATH:/usr/local/bin

Find the 10 largest files

Useful command, if you ever need to, and if you admin Linux you might have to more often than you want to, find the 10 largest files on disk!

$find / -type f -exec du {} \; 2>/dev/null | sort -n | tail -n 10 | xargs -n 1 du -h 2>/dev/null

and thats it!