OpenSUSE tumbleweed install problems? (libpcre problems...)

Author: dwawlynCreated Sep 29, 2026Updated Sep 30, 2026

Heya, I'm just trying out opensuse tumbleweed (tried it before, but been using Tuxedo_OS for a while...), and I had a really hard time getting ag installed...


The main page https://github.com/ggreer/the_silver_searcher says I should just be able to just $ sudo zypper install the_silver_searcher but #=>

'the_silver_searcher' not found in package names. Trying capabilities.
No provider of 'the_silver_searcher' found.

and this $ sudo zypper source-install --build-deps-only the_silver_searcher just gets #=>

Problem: 1: nothing provides the requested 'pkgconfig(libpcre)'
Have you enabled all the required repositories?

 Solution 1: do not ask to install a solvable providing pkgconfig(libpcre)

Choose the above solution using '1' or cancel using 'c' [1/c/d/?] (c): 1

and doing a git-clone then trying $ './build.sh' #=>

checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1000' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C23 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for grep that handles long lines and -e... /usr/bin/grep
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libpcre... no
configure: error: Package requirements (libpcre) were not met:

Package 'libpcre' not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PCRE_CFLAGS
and PCRE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

So I messed around adding and removing a bunch of repos and packages [ and at one point I tried looping through all the libpcre stuff under my /lib/ and /lib64/ and symlink-ing it, just in case it was some issue with something just having the wrong name or being in the wrong path... ]

and I did eventually find https://software.opensuse.org/download/package?package=libpcre1&project=Base%3ASystem

and it seems to all work now?

[ current setup

$ zypper info --provides the_silver_searcher #=>

Loading repository data...
Reading installed packages...


Information for package the_silver_searcher:
--------------------------------------------
Repository     : all the small tools for the shell (openSUSE_Factory)
Name           : the_silver_searcher
Version        : 2.2.0-32.35
Arch           : x86_64
Vendor         : obs://build.opensuse.org/utilities
Installed Size : 122.6 KiB
Installed      : Yes
Status         : up-to-date
Source package : the_silver_searcher-2.2.0-32.35.src
Upstream URL   : https://github.com/ggreer/the_silver_searcher
Summary        : A code-searching tool similar to ack, but faster
Description    : 
    A code searching tool similar to ack, with a focus on speed.
Provides       : [2]
    the_silver_searcher = 2.2.0-32.35
    the_silver_searcher(x86-64) = 2.2.0-32.35

$ zypper info --provides libpcre1 #=>

Loading repository data...
Reading installed packages...


Information for package libpcre1:
---------------------------------
Repository     : Base:System Factory Devel Project (openSUSE_Tumbleweed)
Name           : libpcre1
Version        : 8.45-119.39
Arch           : x86_64
Vendor         : obs://build.opensuse.org/Base:System
Installed Size : 924.4 KiB
Installed      : Yes
Status         : up-to-date
Source package : pcre-8.45-119.39.src
Upstream URL   : http://www.pcre.org/
Summary        : A library for Perl-compatible regular expressions
Description    : 
    The PCRE library is a set of functions that implement regular
    expression pattern matching using the same syntax and semantics
    as Perl 5.

    This PCRE library variant supports 8-bit and UTF-8 strings.
    (See also libpcre16.)
Provides       : [4]
    libpcre.so.1()(64bit)
    libpcre1 = 8.45-119.39
    pcre = 8.45
    libpcre1(x86-64) = 8.45-119.39

$ zypper repos --show-enabled-only --uri --priority #=>

#  | Alias                            | Name                                                    | Enabled | GPG Check | Refresh | Priority | URI
---+----------------------------------+---------------------------------------------------------+---------+-----------+---------+----------+-------------------------------------------------------------------------------
 1 | Base_System                      | Base:System Factory Devel Project (openSUSE_Tumbleweed) | Yes     | (r ) Yes  | No      |   99     | https://download.opensuse.org/repositories/Base:/System/openSUSE_Tumbleweed/
 2 | NVIDIA:repo-non-free             | repo-non-free                                           | Yes     | (r ) Yes  | Yes     |   99     | https://download.nvidia.com/opensuse/tumbleweed
 3 | X11_Utilities                    | X11 Utilities (openSUSE_Tumbleweed)                     | Yes     | (r ) Yes  | No      |   99     | https://download.opensuse.org/repositories/X11:/Utilities/openSUSE_Tumbleweed/
 4 | download.opensuse.org-non-oss    | Main Repository (NON-OSS)                               | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/non-oss/
 5 | download.opensuse.org-oss        | Main Repository (OSS)                                   | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/tumbleweed/repo/oss/
 6 | download.opensuse.org-tumbleweed | Main Update Repository                                  | Yes     | (r ) Yes  | Yes     |   99     | http://download.opensuse.org/update/tumbleweed/
 8 | openSUSE:repo-non-oss            | repo-non-oss                                            | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/tumbleweed/repo/non-oss
 9 | openSUSE:repo-openh264           | repo-openh264                                           | Yes     | (r ) Yes  | Yes     |   99     | https://codecs.opensuse.org/openh264/openSUSE_Tumbleweed
10 | openSUSE:repo-oss                | repo-oss                                                | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/tumbleweed/repo/oss
13 | openSUSE:update-tumbleweed       | update-tumbleweed                                       | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/update/tumbleweed
14 | packman                          | packman                                                 | Yes     | (r ) Yes  | Yes     |  999     | https://ftp.fau.de/packman/suse/openSUSE_Tumbleweed/
16 | repo-openh264                    | Open H.264 Codec (openSUSE Tumbleweed)                  | Yes     | (r ) Yes  | Yes     |   99     | http://codecs.opensuse.org/openh264/openSUSE_Tumbleweed
18 | utilities                        | all the small tools for the shell (openSUSE_Factory)    | Yes     | (r ) Yes  | No      |   99     | https://download.opensuse.org/repositories/utilities/openSUSE_Factory/

]



But like, obviously it should NOT have been that complicated to set up...

Should I try bugging the opensuse people about this...?

Source: ggreer/the_silver_searcher