You are not logged in.
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
pacman -Syu
Moving to NC...
Offline
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
Offline
> Moving to NC...
Seems appropriate. ^^
Thanks!
Offline
$ 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
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
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
pacman -Syu
This did the trick. I only saw jasonwryan's comment when I posted my last post. Thought it was clear. Thanks anyways
Offline