Hi,
I'm not that newbie (10+ years using GNU/linux) but i am having a problem where i clearly don't understand the basic functioning of this OS.
Basically, man-db doesn't work.
Code:
$ man
man: error while loading shared libraries: libpipeline.so.1: cannot open shared object file: No such file or directory
A few months ago i installed something that messed with man-db or with libpipeline. I cannot remember what exactly or when.
Since then i tried to fix it by creating links where it is most probable that "man" will search for that particular library. I created links everywhere so man-db can find it. It didn't work (even if that library is there, see next):
Code:
$ ldd /usr/bin/man
linux-vdso.so.1 (0x7ed95000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f12000)
libmandb-2.7.5.so => /usr/lib/man-db/libmandb-2.7.5.so (0x76efd000)
libman-2.7.5.so => /usr/lib/man-db/libman-2.7.5.so (0x76ed2000)
libgdbm.so.3 => /usr/lib/arm-linux-gnueabihf/libgdbm.so.3 (0x76ea7000)
libpipeline.so.1 => not found
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76d66000)
/lib/ld-linux-armhf.so.3 (0x54aaa000)
libpipeline.so.1 => not found
libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0x76d3e000)
Here are some files i have and their places:
Code:
$ file /usr/lib/arm-linux-gnueabihf/libpipeline.so.1.4.0
/usr/lib/arm-linux-gnueabihf/libpipeline.so.1.4.0: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, BuildID[sha1]=de8498c94615d03b59ab869fe63a42fe393d3078, stripped
Code:
$ file /usr/local/lib/libpipeline.so.1
/usr/local/lib/libpipeline.so.1: symbolic link to /usr/lib/arm-linux-gnueabihf/libpipeline.so.1.4.0
Code:
$ file /usr/bin/man
/usr/bin/man: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=ea79af99200c724c1f21e38ed98d5133f8d39308, stripped
Hardware: Raspberry pi 3 Model B (rev.: a02082)
OS: Raspbian
Code:
$ uname -a
Linux NOMBREDELDISP 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Environment variables:
Code:
$ env
XDG_SESSION_ID=c67
TERM=xterm
SHELL=/bin/bash
SSH_CLIENT=192.168.0.102 50780 22
SSH_TTY=/dev/pts/0
USER=pi
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAIL=/var/mail/pi
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
PWD=/home/pi
LANG=en_GB.UTF-8
SHLVL=1
HOME=/home/pi
LOGNAME=pi
SSH_CONNECTION=192.168.0.102 50780 192.168.0.3 22
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=localhost:10.0
_=/usr/bin/env
I noticed LD_LIBRARY_PATH was not set. I tried setting it manually with no luck.
I also tried to compile man from source.
It does autogen and configure without errors, but fails at "make" instance.
"./configure" works OK
Last line of configure:
Code:
config.status: creating po/Makefile
"make" fails with the following arguments:
Code:
Making all in lib
make[2]: Entering directory '/home/pi/tmp/man-db-compilar/man-db/lib'
CC libman_la-appendstr.lo
CC libman_la-cleanup.lo
CC libman_la-debug.lo
CC libman_la-decompress.lo
CC libman_la-encodings.lo
CC libman_la-hashtable.lo
CC libman_la-linelength.lo
CC libman_la-lower.lo
CC libman_la-orderfiles.lo
CC libman_la-pathsearch.lo
CC libman_la-security.lo
CC libman_la-tempfile.lo
CC libman_la-util.lo
CC libman_la-wordfnmatch.lo
CC libman_la-xchown.lo
CC libman_la-xregcomp.lo
CCLD libman.la
/usr/bin/ld: cannot find -lpipeline
collect2: error: ld returned 1 exit status
Makefile:1520: recipe for target 'libman.la' failed
make[2]: *** [libman.la] Error 1
make[2]: Leaving directory '/home/pi/tmp/man-db-compilar/man-db/lib'
Makefile:1516: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/tmp/man-db-compilar/man-db'
Makefile:1443: recipe for target 'all' failed
make: *** [all] Error 2
I thought maybe to link the "man" binary with the libpipepline library manually. I don't know how to do that, or if it is even possible.
At this point, i have run out of ideas. Any idea how to solve this?