PDA

View Full Version : Launching Lich in Ubuntu



jonas
02-18-2011, 11:41 AM
So I've managed to follow all the directions for installing lich within Ubuntu. I can launch stormfront and the SGE with wine - but I cant seem to launch the lich program.

This is the error I get (in bold):

jonasa@WAR-C6:~/lich$ whoami
jonasa
jonasa@WAR-C6:~/lich$ sudo bash
root@WAR-C6:~/lich# whoami
root
root@WAR-C6:~/lich# lich
libpng.so.3: cannot open shared object file: No such file or directory - gui/fox16.so
IP:port = gs3.simutronics.net:4900
Pretending to be the game host, and waiting for game client to connect to us...
^Clich: caught SIGINT, exiting.
lich: caught SIGINT, exiting.
root@WAR-C6:~/lich# ls -l
total 2436
-rw-r--r-- 1 root root 998 2010-06-10 03:46 api.css
-rw-r--r-- 1 root root 218985 2010-06-10 03:46 ChangeLog.txt
-rw-r--r-- 1 root root 44547 2010-06-10 03:46 Command Info (API List).xml
-rw-r--r-- 1 root root 13499 2010-06-10 03:46 Command_Quicklist.txt
drwxr-xr-x 2 root root 4096 2010-06-10 03:46 data
-rw-r--r-- 1 root root 10765 2010-06-10 03:46 DIRECTIONS.txt
drwxr-xr-x 3 root root 4096 2010-06-10 03:46 gui
-rw-r--r-- 1 root jonasa 357 2011-02-18 10:31 hosts.sav
-rw-r--r-- 1 root root 7096 2010-06-10 03:46 How It Works.txt
-rwxr-xr-x 1 root root 3053 2010-06-10 03:46 install.sh
-rw-r--r-- 1 root root 1688 2010-06-10 03:46 License.txt
-rwsr-xr-x 1 root root 1031544 2010-06-10 03:46 lich
-rw-r--r-- 1 root root 609 2010-06-10 03:46 lich.1.gz
-rwxr-xr-x 1 root root 22584 2010-06-10 03:46 lichconfig
-rwxr-xr-x 1 root root 642148 2010-06-10 03:46 lichlauncher.exe
-rwxr--r-x 1 root root 348810 2010-12-14 18:36 lich.rb
drwxr-xr-x 2 root root 4096 2011-02-14 12:24 scripts
-rw-r--r-- 1 root root 11491 2010-06-10 03:46 Script_Tutorial-new.txt
-rw-r--r-- 1 root root 36363 2010-06-10 03:46 Script_Tutorial-old.txt
-rw-r--r-- 1 root root 5179 2010-06-10 03:46 Settings Information.txt
-rw-r--r-- 1 root jonasa 1468 2010-06-10 04:18 settings.txt
drwxr-xr-x 2 root root 4096 2011-02-16 11:02 temp
-rw-r--r-- 1 root root 8310 2010-06-10 03:46 Tidbits.txt
-rw-r--r-- 1 root root 5427 2010-06-10 03:46 Troubleshooting.txt
-rw-r--r-- 1 root root 3062 2010-06-10 03:46 Wrapping a Script.txt
root@WAR-C6:~/lich# ^C
root@WAR-C6:~/lich#



I have no idea if its permissions, FXRuby/FOX bindings or dependencies... or im just retarded.

Tillmen
02-18-2011, 12:51 PM
That's the wrong version of Lich. Download it from lichproject.org.

phantasm
02-18-2011, 01:59 PM
Why are you in the terminal trying to launch it?

jonas
02-18-2011, 02:55 PM
Oh wow, I forgot I even installed (or at least attempted to) the older version of lich.

So I deleted the symbolic link for lich (old one im guessing) in usr/bin/local

Re-ran through the steps on lichproject.org


root@WAR-C6:~# cd lich
root@WAR-C6:~/lich# mv lich.rb{w,}
root@WAR-C6:~/lich# chmod u+x lich.rb
root@WAR-C6:~/lich# ./lich.rb
info: creating directory: /home/jonasa/lich/data/
info: creating directory: /home/jonasa/lich/temp/
root@WAR-C6:~/lich# lich
No command 'lich' found, did you mean:
Command 'loch' from package 'therion-viewer' (universe)
Command 'licq' from package 'licq' (universe)
lich: command not found
root@WAR-C6:~/lich# lich.rb
lich.rb: command not found
root@WAR-C6:~/lich# ruby lich.rb
root@WAR-C6:~/lich#


Nothing happens after entering the command

From the debug file


nfo: Fri Feb 18 13:31:39 -0600 2011
info: Lich 4.2.7
info: Ruby 1.8.7
info: i686-linux
info: $lich_dir: /home/jonasa/lich/
info: $script_dir: /home/jonasa/lich/scripts/
info: $data_dir: /home/jonasa/lich/data/
info: $temp_dir: /home/jonasa/lich/temp/
./lich.rb:252:in `require': no such file to load -- zlib (LoadError)
from ./lich.rb:252

I noticed its missing zlib.. so after some googling I found out how to check what zlib I have installed, from some rails forums...


root@WAR-C6:~/lich# dpkg-query -l | grep zlib
ii libcompress-raw-zlib-perl 2.026-1 low-level interface to zlib compression library
ii libcompress-zlib-perl 2.024-1 Transitional dummy package for Compress::Zlib
ii libio-compress-zlib-perl 2.024-1 Transitional dummy package for IO::Compress::Zlib
ii zlib1g 1:1.2.3.4.dfsg-3ubuntu1 compression library - runtime
ii zlib1g-dev 1:1.2.3.4.dfsg-3ubuntu1 compression library - development
root@WAR-C6:~/lich#

Sorry for all these logs, but I have little idea what to do, though i feel like im gettin closer!

edit: closer to formatting...

jonas
02-18-2011, 02:57 PM
Why are you in the terminal trying to launch it?

Well when I double click the icon and select run, nothing happens. I have an idea of whats supposed to happen from running it in windows... but I REALLY want this to work on ubuntu :P

Tillmen
02-18-2011, 03:10 PM
Try this:

sudo apt-get install libruby-extras

Or possibly this, depending on what version of ruby you're using:

sudo apt-get install libruby-extras1.8

And if you haven't installed any ruby-gtk stuff yet:

sudo apt-get install ruby-gnome2

jonas
02-18-2011, 03:24 PM
the extras file installed some new stuff but still no dice when I tried to launch it

jonas
02-18-2011, 03:26 PM
Ok I opened lich.rb and commented out line 252 require('zlib')... and the gui launches now.. hurray! im guessing i just broke something else though ;]

Tillmen
02-18-2011, 03:31 PM
zlib will be needed for downloading the map database, and probably a couple other things.

Try one of these:
sudo apt-get install libzip-ruby1.8
sudo apt-get install libzip-ruby1.9.1

jonas
02-18-2011, 03:35 PM
Ok, uncommented the line and installed libzip for 1.8 (im using 1.8.7) but same issue - same error in debug log :[

Really appreciate the help btw

Tillmen
02-18-2011, 03:50 PM
Well, I'm stumped.

jonas
02-18-2011, 03:53 PM
I win!

pabstblueribbon
02-18-2011, 03:54 PM
Ok, uncommented the line and installed libzip for 1.8 (im using 1.8.7) but same issue - same error in debug log :[

Really appreciate the help btw

Why would you not use 1.9.1 in Ubuntu? IIRC 1.9.1's performance is only degraded in Windows.

Tillmen
02-18-2011, 03:55 PM
Nonsense! Just open synaptic package manager and uninstall anything that says Ruby. Then reinstall Ruby. That's sure to probably do something.

jonas
02-18-2011, 05:29 PM
Why would you not use 1.9.1 in Ubuntu? IIRC 1.9.1's performance is only degraded in Windows.

Well I was using 1.9.2 but just for compatibilities sake I went with the recommended version in lichproject.org. Gives me a reason to learn how to use RVM too

pabstblueribbon
02-18-2011, 06:33 PM
Well I was using 1.9.2 but just for compatibilities sake I went with the recommended version in lichproject.org. Gives me a reason to learn how to use RVM too

Learning never taught nobody nothin, and books is the worst. Last time I read a book, I was raped. In Egypt.

Glavenfyre
02-18-2011, 06:45 PM
Lara Logan, is that you? You have my vote for hottest piece of raped-gemstone player ass.