Results 1 to 8 of 8

Thread: program can't find shared library

  1. #1
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    program can't find shared library

    Hi


    I purchased the latest humble bundle and I tried to get Thomas was alone working. I downloaded the .tar file, extracted it to my Desktop. I then made it executable (for sake of ease I just used
    Code:
    chmod 777 thomasWasAlone

    When I try to run it from the terminal, with
    Code:
    ./thomasWasAlone
    I get the following output

    Code:
    joe@Daisy:~$ Desktop/thomasLinuxStandalone/thomasWasAlone
    Desktop/thomasLinuxStandalone/thomasWasAlone: error while loading shared libraries: libXcursor.so.1: cannot open shared object file: No such file or directory

    I have installed libxcursor1 and libxcursor1-dbg though, so I am not sure why it can't find them. If anyone has any insight it would be much appreciated


    Thanks in advance


    Joe


    Edit - I have checked the checksum too btwH
    Last edited by joetait; June 2nd, 2013 at 08:32 PM.

  2. #2
    Join Date
    Oct 2010
    Beans
    110
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: program can't find shared library

    If it's a shared file maybe it requires root? Did you try typing sudo at the beginning of the command?
    Code:
    sudo Desktop/thomasLinuxStandalone/thomasWasAlone

  3. #3
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: program can't find shared library

    Hi there

    Yeah, I did try that, but I got exactly the same error.

    Thanks for the suggestion though

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: program can't find shared library

    I don't know anything about Humble Bundles but based on the dir name 'thomasLinuxStandalone' I'm guessing this ships with its own .so libraries rather than using the system supplied ones?

    Although your post says your are executing ./thomasWasAlone, you actually appear to be in your home directory ~ and are executing with a relative path from there i.e. as Desktop/thomasLinuxStandalone/thomasWasAlone - that's not quite the same thing, if the bundle has hardwired relative paths for libraries (for instance, it may be expecting to find libXcursor.so.1 at ../lib relative to the current directory)

    My guess would be to try changing to the actual thomasLinuxStandalone dir and trying from there - unless there's a README file that tells you otherwise

    Code:
    cd Desktop/thomasLinuxStandalone
    ./thomasWasAlone
    OTOH if it is looking for a system-supplied libXcursor.so.1 library, you can check if it's installed with

    Code:
    apt-cache policy libxcursor1

  5. #5
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: program can't find shared library

    Hi Steeldriver


    I have tried starting in the directory too, but unfortunately to no avail. I get exactly the same error. And the libraries are certainly installed. Thanks anyway though

  6. #6
    Join Date
    Apr 2008
    Location
    LOCATION=/dev/random
    Beans
    5,767
    Distro
    Ubuntu Development Release

    Re: program can't find shared library

    Are you running a 64-bit install by any chance?

    If you are then the game is probably looking for the 32-bit versions of the libraries, which you may not have installed.
    If this is the case then try installing them...
    Code:
    sudo apt-get install libxcursor1:i386 libxcursor1-dbg:i386
    Cheesemill

  7. #7
    Join Date
    Aug 2011
    Location
    Southampton
    Beans
    96
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: program can't find shared library

    Cheesemill, that is superb. Works perfectly now, thank you very much!

  8. #8
    Join Date
    Jan 2008
    Beans
    49

    Re: program can't find shared library

    Thanks Cheesemill, helped me as well.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •