Pan newsreader and multi-part images in Ubuntu 9.10 Karmic Koala
For years, I have been a big fan of the usenet newsgroups. I think it’s one of the best little niches left on the internet, and it has one of the best ranges in content… On usenet, you can have civilized, academic conversation, or unruly flame-wars between fanatics. You can also find some of the coolest binaries available on the net…hard-to-find music, out of print books in e-text, and pictures ranging from serene wallpapers to…well just about anything.
When Ubuntu’s newest version, Karmic Koala, came out, I was very dismayed to find that the distribution of the Pan newsreader available via the Synaptic package manager was broken. Basically, any image that was posted as multi-part refused to load in the default window.
With some help from the folks on the pan-users mailing list, I was finally able to compile the code from a source repository being kept up by K.Haley, pan’s volunteer coder. But I thought it might be nice to provide a step-by-step guide for newer linux users, as the whole process of downloading source from a github repository, the tracking down of the necessary development libraries, and the entire compilation process can be daunting. Therefore, I came up with the following list of commands to run to get a patched version of Pan running from a normal install of Ubuntu 9.10 (Karmic Koala).
$ sudo apt-get install pan git git-core gnome-common libgtk2.0-dev libpcre3-dev libgmime-2.4-dev
This command is meant to be typed on a single line. It will download quite a few libraries and a bunch of necessary programs & components. It also installs the version of Pan included in Koala’s distribution streams, so that you will have the Ubuntu menu items already in place to run it easily. When you’re done you should have everything you need to proceed. Continue with the following:
$ cd ~ $ mkdir src $ cd src $ git clone git://github.com/lostcoder/pan2.git $ cd pan2 $ sh ./autogen.sh --prefix=$HOME
You shouldn’t have any error messages during the autogen. If you do, they’re likely due to missing programs or libraries needed to build the application. Please post your error messages here! If you didn’t receive any errors, type:
$ make
This will take a while…so go treat yourself to a coffee, soda or your preferred method of caffeine distribution. (I might recommend a nice chai!) If the compile completes without incident, continue with:
$ make install $ cd /usr/bin $ ls pan
For safety’s sake, let’s back up pan so that we can restore the package maintainer’s version later…:
$ sudo mv pan pan.OLD
Now let’s keep on going:
$ sudo mv $HOME/bin/pan . $ sudo chown root: pan
And you’re done! You should now be able to use the Pan icon located in the “Internet” section of your main Ubuntu menus to run your newly-compiled application.
Have fun!




January 9th, 2010 at 2:07 pm
Well, I attempted your fix and everything seemed to be going well until the ‘make install’ command, when some error messages appeared and I got this final line:
‘0 upgraded, 0 newly installed, 0 to remove and 166 not upgraded.’ which was not encouraging. The last few commands didn’t work after this. Thoughts?
Thanks for your work on this.
January 9th, 2010 at 2:46 pm
Hrm…that looks an AWFUL lot like a “apt-get install” response instead of a “make install” response.
I have, out of pure muscle memory, made the same typo…. You might want to check what you typed.
January 9th, 2010 at 2:50 pm
For more details, check out this screenshot:
http://scottkuma.net/Media/ubuaptgetscreenshot.png
January 17th, 2010 at 12:38 am
Brilliant worked a charm.
Thank-you
Now to see what I did and how it worked….
eddie
January 23rd, 2010 at 8:51 am
thank you a million times…worked great!
ie: sudo mv /home/scottkuma/bin/pan .
is meant to be
sudo mv /home//bin/pan .
lol, i figured that much out, i didnt think you had a folder on my machine!
thanks again
January 29th, 2010 at 12:47 am
Excellent – I miss compiling code. Worked like a charm. Thanks for resolving all the dependency issues for the rest of us!
February 4th, 2010 at 4:59 pm
Tony – you’re exactly right, I did leave my username in there. That’s been fixed, and thanks for letting me know!
All – Thanks for the great feedback!
February 6th, 2010 at 4:28 pm
Based on some feedback from Olaf ‘Rhialto’ Seibert on the pan-users mailing list, I changed the references to your home directory in the code to the $HOME environment variable. This should be more portable, and require less changing around of the commands. Please let me know how it works!
February 7th, 2010 at 6:40 am
Thx a lot! Worked perfect even for newbie like me!
February 28th, 2010 at 5:10 am
Thanks a lot for making my Pan usage even more pleasant!
March 14th, 2010 at 8:58 pm
Huge thanks from France !
My pan is working again (broken with gmime 2.4).
I will propose your up-to-date version to Slackware developers.
Cheers