You are not logged in.
Hello!
I suppose my question is really stupid but nevetheless. I installed package from AUR, but program can not be started and throws:
klayout: error while loading shared libraries: libklayout_tl.so.0: cannot open shared object file: No such file or directory
To my mind something in PKGBUILD is incorrect but unfortunately I can't realize what. The reason I think so because
pacman -Qi klayout
Name : klayout
Version : 0.25-1
Description : High Performance Layout Viewer And Editor. Support of GDS and OASIS files.
Architecture : x86_64
URL : http://www.klayout.org/
Licenses : GPL
Groups : None
Provides : None
Depends On : qt4 ruby
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 127.00 KiB
and package size seems to be incorrect.
Any help is appreciated.
Last edited by bubka (2017-12-07 07:40:57)
Offline
Post -Ql <thepackage> and the full build log etc.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
pacman -Ql klayout
klayout /usr/
klayout /usr/bin/
klayout /usr/bin/klayout
klayout /usr/share/
klayout /usr/share/applications/
klayout /usr/share/applications/klayoutEditor.desktop
klayout /usr/share/applications/klayoutViewer.desktop
klayout /usr/share/icons/
klayout /usr/share/icons/hicolor/
klayout /usr/share/icons/hicolor/32x32/
klayout /usr/share/icons/hicolor/32x32/apps/
klayout /usr/share/icons/hicolor/32x32/apps/klayout.png
Some lines are missed in build log, If necessary I can rebuild, but it takes about an hour.
Offline
The PKGBUILD is incorrect, it installs only the binary but not the necessary shared libraries.
Offline
So could you explain what should be changed there?
Offline
Try changing the package function to
package() {
cd "$srcdir"
install -D -m 644 klayout-${pkgver}/etc/logo.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/klayout.png
install -D -m 755 klayout-${pkgver}/build-release/klayout ${pkgdir}/usr/bin/klayout
install -d -m 755 ${pkgdir}/usr/lib
install -D -m 644 klayout-${pkgver}/build-release/lib*.so ${pkgdir}/usr/lib
install -D -m 644 klayoutEditor.desktop ${pkgdir}/usr/share/applications/klayoutEditor.desktop
install -D -m 644 klayoutViewer.desktop ${pkgdir}/usr/share/applications/klayoutViewer.desktop
}
which adds the two lines
install -d -m 755 ${pkgdir}/usr/lib
install -D -m 644 klayout-${pkgver}/build-release/lib*.so ${pkgdir}/usr/lib
Use at your own risk.
Offline
Many thanks, that worked! Solved.
Offline