Posted June 06, 2015
Running Don't Starve on non-Ubuntu linux distributions yields errors like these (and the game does not start):
./dontstarve: error while loading shared libraries: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
That occurs for multiple different libraries. The problem is that the game does not bundle all the required libraries in its game folder, but relies on shared libraries being installed. That shouldn't be the case, at least for tarballs that GOG offers, but unfortunately it is the case for Don't Starve.
The solution is to copy the required libraries to <Dont Starve folder>/game/dontstarve64/bin/lib64 (I assume you have 64bit operating system, otherwise replace the "64" references with "32" paths).
For my Fedora 21, the following libraries were missing:
libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.2.0
libcurl-gnutls.so.4.2.0
libgcrypt.so.11 -> libgcrypt.so.11.7.0
libgcrypt.so.11.7.0
libgnutls.so.26 -> libgnutls.so.26.21.8
libgnutls.so.26.21.8
librtmp.so.0
libtasn1.so.3 -> libtasn1.so.3.1.12
libtasn1.so.3.1.12
(the shorter names are just symlinks to the longer names)
Where to find those libraries? You can find either find them in the Steam runtime folders, which usually are:
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/
Or, you can download them from Ubuntu package repository, version 12.04. Here are the download links:
http://packages.ubuntu.com/precise/libcurl3-gnutls
http://packages.ubuntu.com/precise/libgcrypt11
http://packages.ubuntu.com/precise/libgnutls26
http://packages.ubuntu.com/precise/librtmp0
http://packages.ubuntu.com/precise/libtasn1-3
You download and extract it, extract data.tar.gz and find the library.
Once you have located the libraries, just copy them to the game folder as mentioned above. Now the game should work. If you're missing another library, use the same approach to locate it in Steam runtime or search for it in the Ubuntu package repository and download it.
./dontstarve: error while loading shared libraries: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory
That occurs for multiple different libraries. The problem is that the game does not bundle all the required libraries in its game folder, but relies on shared libraries being installed. That shouldn't be the case, at least for tarballs that GOG offers, but unfortunately it is the case for Don't Starve.
The solution is to copy the required libraries to <Dont Starve folder>/game/dontstarve64/bin/lib64 (I assume you have 64bit operating system, otherwise replace the "64" references with "32" paths).
For my Fedora 21, the following libraries were missing:
libcurl-gnutls.so.4 -> libcurl-gnutls.so.4.2.0
libcurl-gnutls.so.4.2.0
libgcrypt.so.11 -> libgcrypt.so.11.7.0
libgcrypt.so.11.7.0
libgnutls.so.26 -> libgnutls.so.26.21.8
libgnutls.so.26.21.8
librtmp.so.0
libtasn1.so.3 -> libtasn1.so.3.1.12
libtasn1.so.3.1.12
(the shorter names are just symlinks to the longer names)
Where to find those libraries? You can find either find them in the Steam runtime folders, which usually are:
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/
~/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu/
Or, you can download them from Ubuntu package repository, version 12.04. Here are the download links:
http://packages.ubuntu.com/precise/libcurl3-gnutls
http://packages.ubuntu.com/precise/libgcrypt11
http://packages.ubuntu.com/precise/libgnutls26
http://packages.ubuntu.com/precise/librtmp0
http://packages.ubuntu.com/precise/libtasn1-3
You download and extract it, extract data.tar.gz and find the library.
Once you have located the libraries, just copy them to the game folder as mentioned above. Now the game should work. If you're missing another library, use the same approach to locate it in Steam runtime or search for it in the Ubuntu package repository and download it.
Post edited August 29, 2015 by kparal