You are not logged in.

#1 2012-10-15 10:21:20

herrflockig
Member
Registered: 2012-10-15
Posts: 8

[Solved] overall shared library issues

Hey, I'm having some trouble. I recently borked my system and did a reinstall. I made a list of packages before I reinstalled and after reinstalling, I intalled everything from that list. However, When I did so, I forgot to enable multilib first. Now I constantly get "libXYZ.so.I was not found, no such file or directory." Is there an easy way to fix this?

Last edited by herrflockig (2012-10-16 01:35:38)

Offline

#2 2012-10-15 10:34:37

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: [Solved] overall shared library issues

Install pkgfile from community and test which package contains the missing .so file.
Apart from that please explain why you do not enable multilib now, although you seem to need it?

// Installiere das Programm pkgfile , und suche nach den fehlenden .so Dateien.
Ausserdem musst du bitte noch erklären warum du das multilib repository nicht einfach jetzt verwendest.

Last edited by teateawhy (2012-10-15 10:36:44)

Offline

#3 2012-10-15 10:46:49

herrflockig
Member
Registered: 2012-10-15
Posts: 8

Re: [Solved] overall shared library issues

Sorry for now clarifying, I do currently have multilib enabled. I did so as soon as I realized my mistake. After I enabled it, I followed this tutorial https://wiki.archlinux.org/index.php/Pa … d_packages. Also, how can I use pkgfile to quickly find missing stuffs from all packages?

Offline

#4 2012-10-15 11:15:32

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: [Solved] overall shared library issues

for loop


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2012-10-15 12:11:44

herrflockig
Member
Registered: 2012-10-15
Posts: 8

Re: [Solved] overall shared library issues

Alright so I wrote this little script to check for missing files in all of my packages, and nothing shows up.

#!/bin/bash

pacman -Qdq |
while read package
do
    for file in $(pkgfile -l $package | cut -f2)
    do
        if [ ! -f $file ] && [ ! -d $file ] && [ ! -L $file ]
        then
            echo $file
        fi
    done
done

So none of these shared libraries are actually missing. Here's a specific example: winetricks throws this error at me when I try to install vcrun2010:

err:module:load_builtin_dll failed to load .so lib for builtin L"msxml3.dll": libxml2.so.2: cannot open shared object file: No such file or directory

But I know for a fact the libxml2.so.2 exists in /usr/lib/ and libxml2 is installed and up to date.

This is just one example this happens with several programs and with different shared object files each time. Any suggestions? Should I just reinstall again but properly this time?

Last edited by herrflockig (2012-10-15 12:13:38)

Offline

#6 2012-10-15 12:25:41

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: [Solved] overall shared library issues

Btw: Instead of using your script, just run "pacman -Qqk"

Offline

#7 2012-10-16 00:07:28

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [Solved] overall shared library issues

You can use ldd to see what exactly it is trying to link to.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#8 2012-10-16 01:35:21

herrflockig
Member
Registered: 2012-10-15
Posts: 8

Re: [Solved] overall shared library issues

Thanks guys! Using ldd I was able to find out that the programs that are having troubles require 32bit versions of the libraries as well. To fix winetricks I had to install lib32-libxml2. Again, thanks for all your help!

[Solved]

Offline

Board footer

Powered by FluxBB