You are not logged in.

#1 2018-01-04 21:48:37

feluxe
Member
Registered: 2017-12-21
Posts: 14

[SOLVED] ag: error while loading shared libraries: libpcre.so.3

Hi there!

I just tried to install ag (silver searcher). I installed it like suggested:

pacman -S the_silver_searcher

Now if I run `ag`, I get this error:

> ag: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory

I tried to fix this by installing `pcre` and `pcre2` package, without luck.

Does anyone know why libcre is missing and where I could get it from?

Last edited by feluxe (2018-01-04 22:28:06)

Offline

#2 2018-01-04 22:04:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

pacman -Syu

Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-01-04 22:16:28

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

Could be a packaging bug, the current pcre package doesn't contain that file...

slithery@red:~$ pacman -Ql pcre | grep so
pcre /usr/lib/libpcre.so
pcre /usr/lib/libpcre.so.1
pcre /usr/lib/libpcre.so.1.2.9
pcre /usr/lib/libpcre16.so
pcre /usr/lib/libpcre16.so.0
pcre /usr/lib/libpcre16.so.0.2.9
pcre /usr/lib/libpcre32.so
pcre /usr/lib/libpcre32.so.0
pcre /usr/lib/libpcre32.so.0.0.9
pcre /usr/lib/libpcrecpp.so
pcre /usr/lib/libpcrecpp.so.0
pcre /usr/lib/libpcrecpp.so.0.0.1
pcre /usr/lib/libpcreposix.so
pcre /usr/lib/libpcreposix.so.0
pcre /usr/lib/libpcreposix.so.0.0.5

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2018-01-04 22:20:33

feluxe
Member
Registered: 2017-12-21
Posts: 14

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

> Moving to NC...

Seems appropriate. ^^

Thanks!

Offline

#5 2018-01-04 22:24:39

loqs
Member
Registered: 2014-03-06
Posts: 17,908

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

$ ldd usr/bin/ag 
	linux-vdso.so.1 (0x00007fff0cdac000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f49bd68c000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f49bd466000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f49bd24f000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f49bd031000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f49bcc79000)
	/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f49bdb26000)

@slithery as ag from the arch package the_silver_searcher-2.1.0-1-x86_64.pkg.tar.xz does not appear to be linked to libpcre.so.3 third party library or binary

Offline

#6 2018-01-04 22:26:06

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,327
Website

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

It's not missing, libpcre.so.3 is a the debian version of libpcre.so.0 (yeah, I don't get it either), nothing on Arch should depend on it.

feluxe, please install pax-utils and use lddtree to identify where this dependency is coming from.

# pacman -S pax-utils
$ lddtree /usr/bin/ag

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2018-01-04 22:26:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,237
Website

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

Slithery, you are right, that file is not in the current pcre package.  It is also not linked to by the current the_silver_searcher package.

feluxe, don't be a smart-ass.  Implement the correct solution provided and say thank you. (edit: after the follow up I realize I may have interpreted sacasm in feluxe's post where it wasn't intended.  If so, sorry feluxe.)

(EDIT: whoa, double snaked on that one)

Last edited by Trilby (2018-01-04 22:48:36)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2018-01-04 22:30:12

feluxe
Member
Registered: 2017-12-21
Posts: 14

Re: [SOLVED] ag: error while loading shared libraries: libpcre.so.3

pacman -Syu

This did the trick. I only saw jasonwryan's comment when I posted my last post. Thought it was clear. Thanks anyways smile

Offline

Board footer

Powered by FluxBB