Linux build throwing steamworks errors



  • This seems to be resolved, but I have new errors now. I will start a new thread.



  • Just updated screeps in steam and I still receive the same error, but elsewhere.

    ELECTRON_ASAR.js:178
            return old.apply(this, arguments)
                       ^

    Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/kalvis/.local/share/Steam/steamapps/common/Screeps/server/modules/driver/native/build/Release/native.node)
        at Error (native)
        at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:178:20)
        at Object.Module._extensions..node (module.js:583:18)
        at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:178:20)
        at Module.load (module.js:473:32)
        at tryModuleLoad (module.js:432:12)
        at Function.Module._load (module.js:424:3)
        at Module.require (module.js:483:17)
        at require (internal/module.js:20:19)
        at Object.<anonymous> (/home/kalvis/.local/share/Steam/steamapps/common/Screeps/server/modules/driver/lib/index.js:876:18)
    ELECTRON_ASAR.js:178
            return old.apply(this, arguments)

  • Dev Team

    Please try this:

    sudo apt-get install libstdc++6


  • Seems that I already have it.

    libstdc++6 is already the newest version.


  • The problem is yours is a different version then was built against. 

    There are "ways" around this but the best for screeps is to rebuild 



  • I too already have libstdc++6 and am getting said error. How do I rebuild to fix it?



  • It's not that the library can't be found it's that a different version of the library is found. Probably because it was compiled with a different version of GCC. Remember that if you launch through steam you are launching in a static environment based on Ubuntu 12.04. If your launching via command line your using your (usually newer) version of libraries.

     

    Ahem G++



  • I'm right-clicking and launching through steam. Do I need to use the CLI?



  • Well, I tried the CLI, and got an entirely different error. Yay?

    Error: Module version mismatch. Expected 46, got 50.
        at Error (native)
        at Object.Module._extensions..node (module.js:435:18)
        at Module.load (module.js:344:32)
        at Function.Module._load (module.js:301:12)
        at Module.require (module.js:354:17)
        at require (internal/module.js:12:17)
        at Object.<anonymous> (/home/angle/.steam/steamapps/common/Screeps/server/modules/backend/greenworks/greenworks.js:22:18)
        at Module._compile (module.js:410:26)
        at Object.Module._extensions..js (module.js:417:10)
        at Module.load (module.js:344:32)



  • All i can tell you Angle is that I got these exact same errors too, and you need to rebuild the project. 

     

    http://screeps.com/forum/topic/523/Dedicated-Server

     

    That's what I did to get  up and running. ags131 helped alot