2

I just bought the Humble Double Fine Bundle and downloaded the .bin file, and it says it uses the mojo installer.

When I'm trying to open the installer I get this error:

jeggy@jeggy-XPS:~/Niðurtøkur$ sudo ./CostumeQuest-Linux-2013-05-07-setup.bin
./CostumeQuest-Linux-2013-05-07-setup.bin: error while loading shared libraries: libbz2.so.1: cannot open shared object file: No such file or directory

I googled and I found this: enter image description here
And that looks just like my problem, but the link is dead now :/

I am running Ubuntu 13.04 64bit

EDIT:

It says I have libbz2-1.0 installed

jeggy@jeggy-XPS:~/Niðurtøkur$ sudo apt-get install libbz2-1.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libbz2-1.0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

ldd:

jeggy@jeggy-XPS:~/Niðurtøkur$ ldd ./CostumeQuest-Linux-2013-05-07-setup.bin
linux-gate.so.1 =>  (0xf77a9000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf7769000)
libbz2.so.1 => not found
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7763000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf7720000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf756d000)
/lib/ld-linux.so.2 (0xf77aa000)




jeggy@jeggy-XPS:~$  sudo find / -name libbz2.so.1
[sudo] password for jeggy: 
/home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libbz2.so.1
/lib/x86_64-linux-gnu/libbz2.so.1

It took very long until I got response from that command.

Seth
  • 58,122
Jeggy
  • 3,062

5 Answers5

4

Simple Way To Fix The Error

 sudo find / -name libbz2.so.1

The Output is

 /var/cache/lxc/centos/x86_64/6/rootfs/lib64/libbz2.so.1
 /var/cache/lxc/raring/rootfs-amd64/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/centos/rootfs/lib64/libbz2.so.1
 /var/lib/lxc/container/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/juju/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /var/lib/lxc/client/rootfs/lib/x86_64-linux-gnu/libbz2.so.1
 /lib/x86_64-linux-gnu/libbz2.so.1
 /lib/i386-linux-gnu/libbz2.so.1

Then Simply You Need To Load This Lib libbz2.so.1 Before Executing

For 32 bit app

 LD_PRELOAD=/lib/i386-linux-gnu/libbz2.so.1 ./CostumeQuest-Linux-2013-05-07-setup.bin

If that work Then simple Check the this answer Skype Crashes with a Segmentation fault

OR

  sudo ln -s /lib/i386-linux-gnu/libbz2.so.1 /usr/lib32/
  sudo ldconfig -v

Then Run The Setup


Update

Make a file

 sudo gedit /etc/ld.so.conf.d/hib.conf

Copy paste the following line in it

 /home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/
 /lib/x86_64-linux-gnu/
 /lib/i386-linux-gnu/

Save & exit & then run the following command

  sudo ldconfig -v

Lastly run the setup

 sudo ./CostumeQuest-Linux-2013-05-07-setup.bin

Solved With Google + Screen Sharing

 sudo cp /home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libbz2.so.1.0.4 /usr/lib/libbz2.so.1

sudo ldconfig -v

Lastly run the setup

 sudo ./CostumeQuest-Linux-2013-05-07-setup.bin
Qasim
  • 22,092
  • the second one didn't work, and i updated the question with the output of the first one, it looks like it has something to do with Steam. – Jeggy May 09 '13 at 13:47
  • @Jeggy please check the update ........ – Qasim May 09 '13 at 14:23
  • I followed your update and got the same error :/ hib.conf was empty, don't know if it was supposed to be empty. – Jeggy May 09 '13 at 15:47
  • have you copy pasted /home/jeggy/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/ /lib/x86_64-linux-gnu/ /lib/i386-linux-gnu/ these line init ? – Qasim May 09 '13 at 15:49
  • @Jeggy do you have skype ? so i can figure out what you are doing – Qasim May 09 '13 at 15:54
  • @Jeggy So it works now? – Seth May 09 '13 at 17:34
  • 2
    @Seth yes its working ...last screen was start up menu of the game ..google screen sharing – Qasim May 09 '13 at 17:37
  • Yes it's working, just followed the "Solved With Google + Screen Sharing" by Qasim and it will work, if anyone else gets this problem also – Jeggy May 09 '13 at 23:00
0

You can install libbz2 like this

sudo apt-get install libbz2-1.0
Seth
  • 58,122
thefourtheye
  • 4,924
0

Try finding where the libbz2.so are installed to and make a symlink/copy to libbz2.so.1. It's usually in /usr/lib/ if I recall correctly.

IMPORTANT: To anyone trying this, make sure to remove the library afterwards. This kind of fiddling is supposed to be only for debugging/workaround, not a permanent solution.

Lie Ryan
  • 652
  • I believe they ll be picked up automatically if they are in /usr/lib. – thefourtheye May 08 '13 at 14:26
  • I looked in /usr/lib and it isn't there :/ – Jeggy May 08 '13 at 23:18
  • I just looked at my Ubuntu machine, and found the libraries in these location: /lib/i386-linux-gnu/libbz2.so.1, /lib/i386-linux-gnu/libbz2.so.1.0.4, /lib/i386-linux-gnu/libbz2.so.1.0, /lib/x86_64-linux-gnu/libbz2.so.1, /lib/x86_64-linux-gnu/libbz2.so.1.0.4, /lib/x86_64-linux-gnu/libbz2.so.1.0. – Lie Ryan May 09 '13 at 01:04
  • However, check out the other suggestions about installing the 32-bit version of the library since it seems the installer is a 32-bit only binary. Those seems like a better solution. – Lie Ryan May 09 '13 at 01:12
0

Make sure you look in the /usr/lib*32* folder to create the symlink (and of the library in that folder, not from the lib folder as that is 64bit).

The installer seems to be 32 bit (obvious when you look at the output of ldd). After creating an extra symlink to libbz2.so.1 in the lib32 folder it installed fine. (although it did spam some more exception messages)

  • Hohum, 32bit is actually not installed by default so you'll have to install it... (sudo apt-get install lib32bz2-1.0) (I'm still on 10.04, but I rechecked with a newer version) – Highway May 09 '13 at 00:09
0

Open a terminal, use cd to navigate to download directory. Type:

chmod u+x *filename*

Hit enter then type:

./*filename*

Additional details: this works on Ubuntu 13.04 x64, and I simply typed the file names WITH NO EXTENSIONS (i.e. no .bin etc.)

This should open the installation prompt in the terminal.

Seth
  • 58,122
AJD0652
  • 1
  • 1
  • i tried that, but it didn't work for me. see the accepted answer to see what i needed to do to fix the problem – Jeggy May 11 '13 at 22:51