The sqlitestudio binary does not have the correct rpath set
chenri2006 opened this issue · comments
Details
The linux binary distribution does not work on rhel9 platform. So I tried to install it from the source. I notice that this part of create_portable.sh failed:
root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# chrpath -r '$ORIGIN/lib' sqlitestudio
sqlitestudio: RPATH=.:./lib
new rpath '$ORIGIN/lib' too large; maximum length 7
The reason is that chrpath is limited and can't change the 7-character string into something larger. It is best to use patchelf command instead:
root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# patchelf --set-rpath '$ORIGIN/lib' sqlitestudio
root@aval9-ks01:~/sqlitestudio/output/portable/SQLiteStudio# readelf -d sqlitestudio | grep -i path
0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/lib]
Steps to reproduce
It should show up every time.
Operating system
I only tried this on almalinux 9.3 and I don't know if it shows up in other platforms.
SQLiteStudio version
This shows up on the 'master' branch.