Code: Select all
tmw: error while loading shared libraries: libphysfs-1.0.so.1: cannot open shared object file: No such file or directory
O btw it looks great I look forward to trying and playing the game![/code]
Code: Select all
tmw: error while loading shared libraries: libphysfs-1.0.so.1: cannot open shared object file: No such file or directory
Code: Select all
tmw: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Depending on your Linux system, you probably have a file called ld.so.conf in the /etc directory. It should have the default location of installed libraries already (usr/local/lib) although if you changed this location it might not. Simple add the path you need to this file. If this file has the correct path then all you need to do is restart or as root run ldconfig.millionknives wrote:Ok so I've got guichan and physfs 1.0 installed and the tmw slackware package however I try to start the game (both as normal user and root) and I recieve this error:
Any ideas on whats up?Code: Select all
tmw: error while loading shared libraries: libphysfs-1.0.so.1: cannot open shared object file: No such file or directory
O btw it looks great I look forward to trying and playing the game![/code]
Hmm, note that /usr/local might be the default prefix, but it's not common for it to be in ld.so.conf by default. At least this is not the case in Debian, Ubuntu or Arch Linux.scoswriter wrote:Depending on your Linux system, you probably have a file called ld.so.conf in the /etc directory. It should have the default location of installed libraries already (usr/local/lib) although if you changed this location it might not. Simple add the path you need to this file. If this file has the correct path then all you need to do is restart or as root run ldconfig.
Code: Select all
platinum:/home/platyna$ cat /sbin/installpkg | grep ldconfig
if [ -x /sbin/ldconfig ]; then
/sbin/ldconfig
I think you're underestimating the other distributions, as really all the ones I mentioned handle /etc/ld.so.conf with care and order too, and they don't use LD_LIBRARY_PATH. I agree it is not a good idea to edit /etc/ld.so.conf manually, and to prefer using the distribution specific package management instead of installing manually. It is installing manually to /usr/local where most people get into trouble, in almost any distribution.Platyna wrote:Installpkg does ldconfig, so there is no need to do it. In Slackware if lib is not found it is not found. In Slackware there is no need to mess with LD stuff, because it is done with great care and order.