1. When making a thread, please tag your thread accordingly using the menu to the left of the textfield where you name your thread where applicable. Server Advertisements and Mod Releases should be contained to their respective subforums.

Tutorial How-to install/fix missing libraries for starbound_server (32/64bit)

Discussion in 'Multiplayer' started by Jansen, Dec 6, 2013.

  1. froGHead

    froGHead Void-Bound Voyager

    @Jansen : my server is up and running. Good work!
    @vulpineblazeyt : i got that before when using the default (old or broken) libraries. I'm no expert, but maybe your LD_LIBRARY_PATH points to a wrong directory and the OS uses your default ones (in /etc/lib/ ?) as fallback. Maybe Jansen can help...
     
  2. Jansen

    Jansen Aquatic Astronaut

    Nice! :)

    Hi vulpineblazeyt, did you untar my provided next to starbound_server? If so, move the one library from the folder "linux-loader_dont_know_if_you_need_this" next to starbound_server, too. Then try starting it like this
    Code:
    chmod a+x ld-linux-x86-64.so.2
    ./ld-linux-x86-64.so.2 --library-path . ./starbound_server
    
    If you are on 32bit, replace ld-linux-x86-64.so.2 with ./ld-linux.so.2
     
    froGHead likes this.
  3. Nukencio

    Nukencio Intergalactic Tourist

    How can i use screens with this command?
    Code:
    ./ld-linux-x86-64.so.2 --library-path ./ ./starbound_server
    Code:
    ./ld-linux-x86-64.so.2 --library-path ./ screen -S starbound -d -m ./starbound_server
    
    i try and then:
    screen: error while loading shared libraries: screen: cannot open shared object file: No such file or directory

    The first code work perfectly.
     
    Last edited: Feb 5, 2014
  4. Jansen

    Jansen Aquatic Astronaut

    Hi, i would create a file with this content
    Code:
    #!/bin/bash
    ./ld-linux-x86-64.so.2 --library-path ./ ./starbound_server
    
    make it executable
    Code:
    chmod a+x myfile.sh
    and run it like this
    Code:
    screen -a -dmS starbound_server ./myfile.sh
     
  5. Nukencio

    Nukencio Intergalactic Tourist

    Thx!! i will try.
     
  6. vulpineblazeyt

    vulpineblazeyt Intergalactic Tourist

    "Segmentation fault"

    I do know what I did but I got it working... Then a had a system crash. Here I am trying to reverse engineer whatever it is I did.
     
  7. vulpineblazeyt

    vulpineblazeyt Intergalactic Tourist

    So I fixed it again, no clue what I did. Fiddling about... It's kinda bs this keeps happening though.
     
  8. vulpineblazeyt

    vulpineblazeyt Intergalactic Tourist

    Ok so it happens specifically when my VM crashes, which leads me to believe its one of the libraries.. but I cant figure out which / why ?
     
  9. geokhentix

    geokhentix Scruffy Nerf-Herder

    I know this is a necro but...I'm new to CentOS and Upstart.

    Code:
    ./ld-linux-x86-64.so.2 --library-path ./ ./starbound_server
    How would one exec this in an Upstart script from an underpriviledged user?
     
  10. Jansen

    Jansen Aquatic Astronaut

    What do you mean with underpriviledged user? Do you run upstart as an underpriviledged user? Or do you want to run starbound as an underpriviledged user?

    For the latter perhaps something like this? Untested...
    Code:
    start on (filesystem
               and runlevel [!06])
    
    stop on runlevel [016]
    
    respawn
    exec /usr/bin/sudo -H -u youruser ./ld-linux-x86-64.so.2 --library-path ./ ./starbound_server
    
    pre-start script
      cd /your/star/bound/server/dir
    end script
    
    Edit: You could also use setuid if you have at least upstart v1.4
     

Share This Page