Building qwebirc
Thaoh — Sat, 01/23/2010 - 04:56
I recently procured the source code for qwebirc, which is one of the fastest and cleanest web-IRC clients I've come across. You can test it here: http://i.armed.us:81/?channels=Lounge
How does one go about setting up something like that? First you get the source code. Then provided that you have all the requirements, you compile it. Even then you might get some errors.
I got two errors after making sure I had everyrhing.
Firstly there's mercurial. You have it, now what?
You need to initialize the qwebirc directory as a mercurial repository...
cd
hg init
Secondly there's Java. Wait a minute, I have Java, why are you complaining?
Apparently the 2.3.5 release of yui-compressor doesn't like my debian-Java. What did I do?
I went to yui-compressor's site and downloaded a fresh copy. I then extracted this to some directory, after that I copied the "yuicompressor-2.4.2.jar" found in the build directory to the bin-directory of my qwebirc. Wait a minute, we're not completely done yet. You still need to visit the file: "bin/compile.py" and update the line that contains the old yui-compressor file...
p = subprocess.Popen(["java", "-jar", "bin/yuicompressor-2.4.2.jar", src], stdout=subprocess.PIPE)
After that you should be able to run ./compile.py
then at long last; ./run.py
Requirements:
- Python
- I did 'apt-get install python'
- Twisted
- Went to their site, downloaded twisted, extracted, entered the folder, went chmod 755 setup.py, then entered ./setup.py and hit enter.
- Java
- Already had, but to get it I went 'apt-get install openjdk-6*'
- Mercurial
- Yet again I relied on Debian's apt-get command; I typed 'apt-get install mercurial' and the magic was alive!