I had the need to set up irssi on my University shell account with minimal user access, so I took some notes on what I did. I have found out that a lot of people encounter the missing glib dependency, which is absolutely necessary for irssi to execute properly. Due to the problem's popularity, I included installing glib in this guide.
Prepare Shell to Include Custom pkgconfig/library Directories
We need to prepare our (bash) shell to include our custom directories in the search path for executables and libraries.
- $ echo 'export PATH=$PATH:$HOME/.user_inst/bin' >> ~/.bash_profile
- $ echo 'export PKG_CONFIG_PATH=$HOME/.user_inst/lib/pkgconfig' >> ~/.bash_profile
- $ echo 'export LD_LIBRARY_PATH=$HOME/.user_inst/lib:$LD_LIBRARY_PATH' >> ~/.bash_profile
- $ source ~/.bash_profile
Download Program Archives
The following may change a bit, depending on your specific setup. The test shell that I used for this guide, as well as many other shell providers, only have a few necessary apps installed. irssi requires the glib2 library to be installed... which usually is not included with a shell! For this reason, I included it in the guide.
You might be able to check what version of glib you have:
Note that glib2 version 2.6.0 or above is needed to satisfy the irssi dependencies.
- $ dpkg -l | grep glib2
- $ rpm -q glib2
- $ pkg_info | grep glib2
I like to create a single directory to store the filesystem for all of my manually installed packages and hide it so I don't have to see it. In the guide, I use $HOME/.user_inst as the base directory, but note that you may use any path you would like.
First, create a temporary work directory we can store and compile files in. Then we just download and extract the file that we need.
If wget does not work for you, try using fetch in its place.
- $ mkdir ~/tmp_files
- $ wget ftp://ftp.gtk.org/pub21/glib-2.21.6.tar.gz
- $ tar xvzf glib-2.21.6.tar.gz
- $ wget http://irssi.org/files/irssi-0.8.14.tar.bz2
- $ tar xjvf irssi-0.8.14.tar.bz2
Also, I had to do a fresh install of zlib because I was on a 64 bit Linux box. If you are in the same boat, download the following file as well.
- $ wget http://www.zlib.net/zlib-1.2.3.tar.gz
- $ tar xvzf zlib-1.2.3.tar.gz
Compile and Install Programs
Now, all that is left is to install the new programs! If something that we compile happens to fail due to unsatisfied dependencies, mimic the above instructions, but include what ever program is in question.
If you happened to need the zlib step from above, do the following
- $ cd ~/tmp_files/zlib-1.2.3
- $ ./configure --prefix=$HOME/.user_inst
- $ make && make install
- $ cd ~/tmp_files/glib-2.21.6
- $ ./configure --prefix=$HOME/.user_inst
- $ make
- $ make install
- $ cd ~/tmp_files/irssi-0.8.14
- $ ./configure --prefix=$HOME/.user_inst
- $ make
- $ make install
If everything went ok, we should be all set! Try launching irssi in the terminal!
- Tags
- AI (1)
- ALIX (1)
- digitalfoo.net (2)
- embedded (6)
- FreeBSD (30)
- Java (1)
- Linux (26)
- misc (7)
- my projects (1)
- MySQL (2)
- NanoBSD (3)
- opensource (7)
- perl (1)
- PHP (3)
- programming (11)
- Python (1)
- security (4)
- Archives
- 2011
- February (1)
- March (1)
- June (1)
- July (1)
- August (1)
- 2010
- June (5)
- July (2)
- December (4)
- April (6)
- March (2)
- May (1)
- August (2)
- October (1)
- November (1)
- 2009
- August (7)
- July (8)
- April (4)
- May (4)
- December (2)
- June (1)
- September (1)
- November (4)
- October (1)
- Web Tools
- Index
- dig-shovel Live
- SQL Injection Encoder
- Links
-

