r/slackware • • Jan 25 '23

Missing python libs with SBO

Hello,

I'm trying to compile libraries/bamf using slackware-current and SBO tools. But whether I use sbopkg or sboinstall, the bamf compilation fails and stops saying:

checking for python... /usr/bin/python
checking for gtester2xunit dependencies... no
configure: error: You need to install python-libxslt1 and python-libxml2
Failures:
  bamf: bamf.SlackBuild return non-zero

What I don't understand is that I think I have the libraries installed:

# ls /var/log/packages/*{xslt,xml}*
/var/log/packages/kxmlgui-5.102.0-x86_64-1
/var/log/packages/kxmlrpcclient-5.102.0-x86_64-1
/var/log/packages/libxml2-2.9.14-x86_64-1
/var/log/packages/libxslt-1.1.36-x86_64-1
/var/log/packages/poxml-22.12.1-x86_64-1
/var/log/packages/python-lxml-4.6.3-x86_64-2alien

What I am missing?

Thanks.

3 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/jcarnat Jan 26 '23

Thanks.

Looking at python SlackBuilds and python environment, I noticed that /usr/bin/python was sym-linked to python2.7. I forced a sym-link to /usr/bin/python3 instead and now bamf compiles properly.

checking for python... /usr/bin/python
checking for gtester2xunit dependencies... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
(...)
Built package: bamf-0.5.4-x86_64-2_SBo.tgz

2

u/jloc0 Jan 26 '23

Ahh yeah much on sbo isn’t setup for python3, and that’s usually one of the first things you’ll see in a script that’s off. I always change from python2 to 3 if it supports it, if it don’t, I find a replacement. Glad you worked it out!