Skip to content

Instantly share code, notes, and snippets.

@xploshioOn
Last active June 7, 2016 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xploshioOn/7fcab2b1619a0c02e568047a96744bb8 to your computer and use it in GitHub Desktop.
Save xploshioOn/7fcab2b1619a0c02e568047a96744bb8 to your computer and use it in GitHub Desktop.
root@mas:~/Velneo-vServer# sudo sh ./vServer.sh -i
./vServer: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
root@mas:~/Velneo-vServer# ldd `which pulseaudio`
linux-vdso.so.1 => (0x00007ffe903d8000)
libpulsecore-4.0.so => /usr/lib/libpulsecore-4.0.so (0x00007f2304ae1000)
libpulsecommon-4.0.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-4.0.so (0x00007f230487a000)
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f2304630000)
libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f2304426000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f23041e1000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f2303fdb000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2303dbd000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2303bb5000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f23039b0000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f23036aa000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f23032e5000)
libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f23030e2000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f2302dad000)
libsamplerate.so.0 => /usr/lib/x86_64-linux-gnu/libsamplerate.so.0 (0x00007f2302a41000)
libspeexdsp.so.1 => /usr/lib/x86_64-linux-gnu/libspeexdsp.so.1 (0x00007f230282d000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f23025c5000)
liborc-0.4.so.0 => /usr/lib/x86_64-linux-gnu/liborc-0.4.so.0 (0x00007f2302343000)
libtdb.so.1 => /usr/lib/x86_64-linux-gnu/libtdb.so.1 (0x00007f2302130000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2304d7b000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f2301f11000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f2301d07000)
libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f2301b00000)
libjson-c.so.2 => /lib/x86_64-linux-gnu/libjson-c.so.2 (0x00007f23018f5000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f23016c3000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f23011f4000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f2300fc7000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f2300dbd000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2300bb9000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f23009b3000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f2300798000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f230057d000)
root@mas:~/Velneo-vServer#
I installed lib32z1 lib32ncurses5 lib32bz2-1.0 but still have the message, as you can see,
the libpulse.so.0 is there, but in another folder, I created a symlink but gives me another error,
any idea of how can I solve this
#!/bin/sh
#
# Startup script
#
# Function to find the real directory a program resides in.
# Feb. 17, 2000 - Sam Lantinga, Loki Entertainment Software
FindPath()
{
fullpath="`echo $1 | grep /`"
if [ "$fullpath" = "" ]; then
oIFS="$IFS"
IFS=:
for path in $PATH
do if [ -x "$path/$1" ]; then
if [ "$path" = "" ]; then
path="."
fi
fullpath="$path/$1"
break
fi
done
IFS="$oIFS"
fi
if [ "$fullpath" = "" ]; then
fullpath="$1"
fi
# Is the sed/ls magic portable?
if [ -L "$fullpath" ]; then
#fullpath="`ls -l "$fullpath" | awk '{print $11}'`"
fullpath=`ls -l "$fullpath" |sed -e 's/.* -> //' |sed -e 's/\*//'`
fi
dirname $fullpath
}
# Set the home if not already set.
if [ "${VELNEO_PATH}" = "" ]; then
VELNEO_PATH="`FindPath $0`"
fi
# Require absolute path
case ${VELNEO_PATH} in
/*) ABSOLUTE_VELNEO_PATH=${VELNEO_PATH};;
*) ABSOLUTE_VELNEO_PATH=$PWD/${VELNEO_PATH};;
esac
LD_LIBRARY_PATH=.:${ABSOLUTE_VELNEO_PATH}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# Let's boogie!
if [ -x "${VELNEO_PATH}/vServer" ]
then
cd "${VELNEO_PATH}/"
exec "./vServer" "$@"
fi
echo "Couldn't run Velneo vServer V7"
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment