I followed the third option of installing litesync "Set the rpath in the wrapper library" on Ubuntu 18.04
Everything worked for me except for the last two commands where I have to execute "make" and "sudo make install"
When I execute them I get the following messages:
$ make
Making all in src
make[1]: Entering directory '/home/selghaza/patchelf/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/selghaza/patchelf/src'
Making all in tests
make[1]: Entering directory '/home/selghaza/patchelf/tests'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/selghaza/patchelf/tests'
make[1]: Entering directory '/home/selghaza/patchelf'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/selghaza/patchelf'
$ sudo make install
Making install in src
make[1]: Entering directory '/home/selghaza/patchelf/src'
make[2]: Entering directory '/home/selghaza/patchelf/src'
/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c patchelf '/usr/local/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/selghaza/patchelf/src'
make[1]: Leaving directory '/home/selghaza/patchelf/src'
Making install in tests
make[1]: Entering directory '/home/selghaza/patchelf/tests'
make[2]: Entering directory '/home/selghaza/patchelf/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/selghaza/patchelf/tests'
make[1]: Leaving directory '/home/selghaza/patchelf/tests'
make[1]: Entering directory '/home/selghaza/patchelf'
make[2]: Entering directory '/home/selghaza/patchelf'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/local/share/doc/patchelf'
/usr/bin/install -c -m 644 README '/usr/local/share/doc/patchelf'
/bin/mkdir -p '/usr/local/share/man/man1'
/usr/bin/install -c -m 644 patchelf.1 '/usr/local/share/man/man1'
make[2]: Leaving directory '/home/selghaza/patchelf'
make[1]: Leaving directory '/home/selghaza/patchelf'
$ patchelf --set-rpath /usr/lib /usr/lib/python2.7/lib-dynload/sqlite3.so
patchelf: getting info about '/usr/lib/python2.7/lib-dynload/sqlite3.so': No such file or directory
$ objdump -p /usr/lib/python2.7/lib-dynload/sqlite3.so | grep RPATH
objdump: '/usr/lib/python2.7/lib-dynload/sqlite3.so': No such file
What am I missing to have it properly installed and how can I make it compatible with the latest version of python (python3)?