How to Revert to a Specific SVN Version of Code::Blocks

I had set up my apt-get source to use latest SVN build of Code::Blocks. Everything has been running pretty smoothly until a couple of days ago when Code::Blocks was updated to SVN 5534. It seemed that for whatever reason, this particular build is extremely unstable on my Ubuntu 8.04 box and it would refuse to open any projects created prior to SVN 5534.

So naturally, I wanted to revert back to my previous working version (SVN 5489). There are some instructions on lgp203.free.fr that in theory should work to install any revisions of Code::Blocks from SVN. But the script provided there did not work for me as it was complaining about not able to find certain packages. So I decided to do it manually, and here are the steps I took to get SVN 5489 installed.

First, you will need to remove the installed version of Code::Blocks.

sudo apt-get remove codeblocks
sudo apt-get remove codeblocks-common

Then you will need to install the Debian packages one by one from lgp203.free.fr. using

wget http://lgp203.free.fr/pool/codeblocks/wxsmith-headers_8.02svn5489_all.deb
wget http://lgp203.free.fr/pool/codeblocks/libwxsmithlib0_8.02svn5489_amd64.deb
wget http://lgp203.free.fr/pool/codeblocks/codeblocks-headers_8.02svn5489_all.deb
wget http://lgp203.free.fr/pool/codeblocks/libcodeblocks0_8.02svn5489_amd64.deb
wget http://lgp203.free.fr/pool/codeblocks/codeblocks_8.02svn5489_amd64.deb
wget http://lgp203.free.fr/pool/codeblocks/codeblocks-common_8.02svn5489_all.deb
wget http://lgp203.free.fr/pool/codeblocks/codeblocks-contrib_8.02svn5489_amd64.deb
wget http://lgp203.free.fr/pool/codeblocks/codeblocks-contrib-common_8.02svn5489_all.deb

sudo dpkg -i wxsmith-headers_8.02svn5489_all.deb
sudo dpkg -i libwxsmithlib0_8.02svn5489_amd64.deb
sudo dpkg -i codeblocks-headers_8.02svn5489_all.deb
sudo dpkg -i libcodeblocks0_8.02svn5489_amd64.deb
sudo dpkg -i codeblocks_8.02svn5489_amd64.deb
sudo dpkg -i codeblocks-common_8.02svn5489_all.deb
sudo dpkg -i codeblocks-contrib_8.02svn5489_amd64.deb
sudo dpkg -i codeblocks-contrib-common_8.02svn5489_all.deb

You can find a full list of all the available Code::Blocks’ SVN versions here. Now, I am running version 5489 and everything is working again.

Be Sociable, Share!

Leave a Reply