Closed Toni500github closed 1 year ago
The following is the answer given by GPT 4, hoping to be useful to you `It seems like the problem is related to not being able to find the shared libraries at runtime. You can try the following solutions:
Set the environment variable LD_LIBRARY_PATH
to include the path to the bin/
directory that contains the missing libraries:
export LD_LIBRARY_PATH="/home/toni/.local/share/Steam/steamapps/common/Half-Life 2/bin/:$LD_LIBRARY_PATH"
After setting the variable, try running the dedicated_launcher
again.
Alternatively, you can use the ldconfig
utility to permanently include the path to the shared libraries. To do this, follow the steps below:
a. Create or edit the file /etc/ld.so.conf.d/half-life2.conf
using a text editor with root privileges. For example:
sudo nano /etc/ld.so.conf.d/half-life2.conf
b. Add the following line to the file:
/home/toni/.local/share/Steam/steamapps/common/Half-Life 2/bin/
c. Save and close the file.
d. Run sudo ldconfig
to update the library cache.
e. Now try running the dedicated_launcher
again.
If neither of these solutions works, ensure that the libvstdlib.so
file is the correct version for your system (64-bit or 32-bit) and that it is not corrupted. You may want to verify the libvstdlib.so
dependencies using the ldd
command:
ldd /home/toni/.local/share/Steam/steamapps/common/Half-Life 2/bin/libvstdlib.so
If there are any missing dependencies, ensure they are installed and available on your system.`
ye i worked at the 1st solution. thanks
so i have built the engine with
./waf configure -T release --64bits -d --prefix "/home/toni/.local/share/Steam/steamapps/common/Half-Life 2/"
then run./waf install
and installed the libraries to the prefix folder. everytime i try to launchdedicated_launcher
it saysFailed to open bin/dedicated.so (libvstdlib.so: cannot open shared object file: No such file or directory)
even tho the libvstdlib.so files it's in the bin/ folder