Compiling FiSH for irssi to Debian 64-bit

on Tuesday, July 17, 2012
Done compiling a FiSH module for irssi, which runs on Debian 6.0.5 64-bit. As some of the guides out there are somewhat broken, because links have changed and so on, I decided to post a newer version here.

First verify what system you are running on.

lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze
uname -mrs
Linux 2.6.32-5-amd64 x86_64
view raw verify.sh hosted with ❤ by GitHub

Alright, so we are on Debian x86_64. Lets install some prerequisites.

sudo apt-get install irssi irssi-dev libglib2.0-0 libglib2.0-dev build-essential unzip
view raw apt.sh hosted with ❤ by GitHub

This will install you irssi and some irssi sources in the same version (0.8.15 on Debian 6.0.5). Now run the following commands line by line. This is basically following this or this guide, but some of the links have changed.

wget http://alpine.nethq.org/clandmeter/src/FiSH-irssi.v1.00-RC5-source.zip
unzip FiSH-irssi.v1.00-RC5-source.zip
cd FiSH-irssi.v1.00-RC5-source
mkdir MIRACL;cd MIRACL;cp ../mir_amd64 amd64
wget http://www.certivox.com/wp-content/themes/certivox/res/miracl.zip
unzip -j -aa -L miracl.zip
bash amd64
cp miracl.a ../;cd ..
view raw miracl.sh hosted with ❤ by GitHub

Now it's time to update the Makefile. Change the first 3 lines to the following values.

glib_inc = /usr/include/glib-2.0
glib_dir = /usr/lib/glib-2.0
irssi_dir = /usr/include/irssi
view raw makefile.sh hosted with ❤ by GitHub

Make sure these directories exist. They should have been created earlier when installing the packages above. Double check that glib_inc contains glib.h and gmodule.h. Finally run:

make amd64
view raw amd64.sh hosted with ❤ by GitHub

This might give you some warnings but if you didn't get any errors, you should now have a libfish.so file. If you get error messages, start reading the make output from the top. The first time I tried, it couldn't include glib.h and gmodule.h because I had the wrong directory configured in Makefile.

To use you new fish module, copy it to the proper location.

sudo cp libfish.so /usr/lib/irssi/modules/
view raw cp.sh hosted with ❤ by GitHub

To autoload the fish module during irssi startup add a line to you startup file.

echo "load fish" >> ~/.irssi/startup
view raw autoload.sh hosted with ❤ by GitHub

Voila enjoy encrypted irc chat.

0 comments:

Post a Comment