Englisch [Linux] Missing libsteam_api.so

14 Antworten
Gehe zu Seite
Zum Anfang Vorherige 1 Nächste Zum Anfang
Hoch
konec
User
Offline Off
After the update I keep getting the following error as I try to execute the game:
Code:
1
2
./CS2D
./CS2D: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory


I am not a Linux expert, any help will be greatly appreciated!
11.05.18 06:11:05
Hoch
SQ
Moderator
Offline Off
Did you used auto-update?
you can find steam lib.so in cs2d linux download:
http://cs2d.com/
1× editiert, zuletzt 11.05.18 07:30:13
11.05.18 17:45:28
Hoch
uaiek
User
Offline Off
I've encountered this and managed to come up with a workaround.
You could see this thread as a reference.
It seems to be good.
11.05.18 21:53:55
Hoch
konec
User
Offline Off
@user SQ: What do you mean? I can't find anything?
@user uaiek: Doesn't work, I tried it
12.05.18 01:55:54
Hoch
Cure Pikachu
User
Offline Off
@user konec: What user SQ means is go here and download the CS2D client archive. There should be a libsteam_api.so file inside the archive, which you'll transfer to your existing CS2D root folder.
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
12.05.18 10:20:13
Hoch
uaiek
User
Offline Off
user konec hat geschrieben:
@user SQ: What do you mean? I can't find anything?
@user uaiek: Doesn't work, I tried it

It won't work if you don't have libsteam_api.so in the game's root directory. As @user SQ: has said, the file is available in the archive which can be downloaded from cs2d.com.
It seems to be good.
13.05.18 10:48:49
Hoch
konec
User
Offline Off
@user uaiek: and where is cs2d root directory
13.05.18 10:58:05
Hoch
Cure Pikachu
User
Offline Off
@user konec: How do you run CS2D? Via Steam?
IMG:https://i.imgur.com/5UWPaft.png
IMG:https://i.imgur.com/xpsyQRX.png
13.05.18 11:04:58
Hoch
konec
User
Offline Off
@user Cure Pikachu: I've been trying running it from steam, from desktop, from game directory, everything lol and i just figured out theres a libsteam_api.so in root directory but it wont load anyway.. it feels like its a steam thing
13.05.18 11:36:36
Hoch
Fraizeraust
Moderator
Offline Off
No such file or directory
could be caused by various things (like the dynamic loader or a component from the executable itself being missing), it does not necessarily mean the file in question does not exist (as the kernel can see the file and even read it). The message can be tricky at times.

I've already reported this bug (see post) and user ohaz came up with a temporary solution by running the following command line.
Code:
LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./CS2D


Obviously you must run it when you are already within CS2D root directory. See if that works.
13.05.18 14:44:04
Hoch
konec
User
Offline Off
@user Fraizeraust: I got this output:
Code:
1
2
LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./CS2D
Segmentation fault (core dumped)


And it didn't work
13.05.18 15:09:14
Hoch
Fraizeraust
Moderator
Offline Off
Interesting... Can you take a debug backtrace so that I can understand the cause of this SIGSEGV? You can read this on how to do so.
13.05.18 15:56:53
Hoch
konec
User
Offline Off
@user Fraizeraust:
Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
linux-gate.so.1 (0xf7ed6000)
     libX11.so.6 => /usr/lib/i386-linux-gnu/libX11.so.6 (0xf7d6d000)
     libXxf86vm.so.1 => /usr/lib/i386-linux-gnu/libXxf86vm.so.1 (0xf7d66000)
     libGL.so.1 => /usr/lib/i386-linux-gnu/libGL.so.1 (0xf7d05000)
     libfreetype.so.6 => /usr/lib/i386-linux-gnu/libfreetype.so.6 (0xf7c48000)
     libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7c43000)
     libsteam_api.so => not found
     libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7abd000)
     libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf79bb000)
     libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf799d000)
     libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf797e000)
     libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf77a0000)
     libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xf7774000)
     libXext.so.6 => /usr/lib/i386-linux-gnu/libXext.so.6 (0xf775f000)
     libGLX.so.0 => /usr/lib/i386-linux-gnu/libGLX.so.0 (0xf773c000)
     libGLdispatch.so.0 => /usr/lib/i386-linux-gnu/libGLdispatch.so.0 (0xf76dd000)
     libpng16.so.16 => /usr/lib/i386-linux-gnu/libpng16.so.16 (0xf76a3000)
     libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7684000)
     /lib/ld-linux.so.2 (0xf7ed8000)
     libXau.so.6 => /usr/lib/i386-linux-gnu/libXau.so.6 (0xf7680000)
     libXdmcp.so.6 => /usr/lib/i386-linux-gnu/libXdmcp.so.6 (0xf7679000)
     libbsd.so.0 => /lib/i386-linux-gnu/libbsd.so.0 (0xf765e000)
     librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xf7652000)


Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
GNU gdb (Ubuntu 8.1-0ubuntu3) 8.1.0.20180409-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./CS2D...(no debugging symbols found)...done.
(gdb) handle SIG33 pass nostop noprint
Signal        Stop     Print     Pass to program     Description
SIG33         No     No     Yes          Real-time event 33
(gdb) set pagination 0
(gdb) run
Starting program: /home/jakob/.steam/steam/steamapps/common/CS2D/CS2D 
/home/jakob/.steam/steam/steamapps/common/CS2D/CS2D: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory
[Inferior 1 (process 19540) exited with code 0177]
(gdb) sbacktrace full
No stack.
(gdb) info registers
The program has no registers now.
(gdb) x/16i $pc
No registers.
(gdb) thread apply all backtrace
(gdb) quit
09.08.18 16:29:01
Hoch
Hajt
User
Offline Off
I have the same problem.

ernest@toshiba:~/Desktop/cs2d$ ./CS2D
Code:
1
./CS2D: error while loading shared libraries: libsteam_api.so: cannot open shared object file: No such file or directory


ernest@toshiba:~/Desktop/cs2d$ LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./CS2D
Code:
1
Segmentation fault (core dumped)


ernest@toshiba:~/Desktop/cs2d$ LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH strace -o log.txt ./CS2D
https://pastebin.com/raw/tDUYrypy
1× editiert, zuletzt 09.08.18 16:49:59
30.08.18 04:34:08
Hoch
@user Hajt:
Hi. You have to copy the file "libsteam_api.so" to the folder "/usr/lib/":
> cd /yourCs2dPath/CounterStrike2D/
> cp ./libsteam_api.so /usr/lib/

Then you execute it:
> chmod 775 CS2D
> ./CS2D
Zum Anfang Vorherige 1 Nächste Zum Anfang