Forum

> > CS2D > General > [Linux] Missing libsteam_api.so
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch [Linux] Missing libsteam_api.so

14 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt [Linux] Missing libsteam_api.so

mismas
User Off Offline

Zitieren
After the update I keep getting the following error as I try to execute the game:
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!

alt Re: [Linux] Missing libsteam_api.so

uaiek
User Off Offline

Zitieren
user mismas 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.

alt Re: [Linux] Missing libsteam_api.so

mismas
User Off Offline

Zitieren
@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

alt Re: [Linux] Missing libsteam_api.so

GeoB99
Moderator Off Offline

Zitieren
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.
LD_LIBRARY_PATH=./:$LD_LIBRARY_PATH ./CS2D


Obviously you must run it when you are already within CS2D root directory. See if that works.

alt Re: [Linux] Missing libsteam_api.so

mismas
User Off Offline

Zitieren
@user GeoB99:
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)

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

alt Re: [Linux] Missing libsteam_api.so

Hajt
User Off Offline

Zitieren
I have the same problem.

ernest@toshiba:~/Desktop/cs2d$ ./CS2D
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
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

alt Re: [Linux] Missing libsteam_api.so

fermaper
User Off Offline

Zitieren
@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
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht