Difficults installing / using different packages / libraries

Hello,

I have problems with using some libraries, some of them are related to Latex, others are dependencies for some other stuff.
The connecting element of the problems is, that if I try to install them via pacman or something else, they cannot be installed, since they already are installed, but I cannot use them.

E.g.:
1 Latex package svg:

sudo tlmgr install svg                                                                                                                                                                          
tlmgr: package repository /usr/share (not verified: unknown)
tlmgr install: package already present: svg

Latex Code:

\usepackage{svg}
\begin{document}
	\includegraphics[height=1cm]{[i]File-Path to svg-grafic without endingin[/i]}
\end{document}

Error after compiling:

Filename.tex: Error: 5: File `svg.sty' not found. \usepackage

2 Library libexempi:

nemo
nemo: error while loading shared libraries: /usr/lib/libexempi.so.8: file too short
sudo pacman -S libexempi 
error: target not found: libexempi

3 Library libsycl:

blender
blender: error while loading shared libraries: libsycl.so.7: cannot open shared object file: No such file or directory
sudo pacman -S libsycl
error: target not found: libsycl

Just like pip and npm you probably should not be using sudo to install these things.

https://wiki.archlinux.org/title/TeX_Live#tlmgr

This just means the package does not exist and/or you got the name wrong.

There is package exempi though.

Again with the possible wrong name.

There are a few intel-oneapi* packages that provide libsyscl.so files.

No examples of this. Simply incorrect targets.

1 Like
pacman -F /usr/lib/libexempi.so
usr/lib/libexempi.so is owned by extra/exempi 2.6.5-1

you would install exempi - not libexempi

How did you install latex?
If not via pacman.

blender in Arch is currently out of date
https://archlinux.org/packages/extra/x86_64/blender/
so it is likely the same in Manjaro stable - but that is speculation, not knowledge

tlmgr install svg
You don't have permission to change the installation in any way, specifically, the directory /usr/share/tlpkg/ is not writable. Please run this program as administrator, or contact your local admin.
tlmgr: An error has occurred. See above messages. Exiting.
sudo pacman -S exempi
warning: exempi-2.6.5-1 is up to date -- reinstalling
resolving dependencies...
error: could not open file /var/lib/pacman/local/llvm-18.1.8-4/desc: No such file or directory
looking for conflicting packages...

Packages (1) exempi-2.6.5-1

Total Installed Size:  1,44 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring                                [##################################] 100%
(1/1) checking package integrity                              [##################################] 100%
(1/1) loading package files                                   [##################################] 100%
(1/1) checking for file conflicts                             [##################################] 100%
error: failed to commit transaction (conflicting files)
exempi: /usr/bin/exempi exists in filesystem
exempi: /usr/include/exempi-2.0/exempi/xmp++.hpp exists in filesystem
exempi: /usr/include/exempi-2.0/exempi/xmp.h exists in filesystem
exempi: /usr/include/exempi-2.0/exempi/xmpconsts.h exists in filesystem
exempi: /usr/include/exempi-2.0/exempi/xmperrors.h exists in filesystem
exempi: /usr/lib/libexempi.so exists in filesystem
exempi: /usr/lib/libexempi.so.8 exists in filesystem
exempi: /usr/lib/libexempi.so.8.1.5 exists in filesystem
exempi: /usr/lib/pkgconfig/exempi-2.0.pc exists in filesystem
exempi: /usr/share/licenses/exempi/LICENSE exists in filesystem
exempi: /usr/share/man/man1/exempi.1.gz exists in filesystem
Errors occurred, no packages were upgraded.

If you read the Arch wiki link that cscs provided, you should see that tlmgr should be used in usermode so that it will install packages locally in your own ~/texmf directory.

But it should not be necessary in this case. The TeX Live svg package is provided as part of texlive-latexextra.

But I think these errors suggest that you may have a more fundamental, underlying problem.

This usually happens when you place files in system paths while working outside of the package manager.
Like sudo $sometool install or similar ā€¦

We can overcome this particular conflict using

sudo pacman -Syu exempi --overwrite '/usr/*'

But there is no telling, as yet, what other examples of the same problems may already be present.

1 Like

Without any prior knowledge of tex - Iā€™d assume you need to provide it with a switch e.g. --user to install in user mode.

That is true for npm (default to local, --global can be used) and was true for python (now python requires venv for installing outside the system foldertree).

Manjaro (inherited Arch) provides a lot of extensions as regular packages so if you are in need of a given tex package - one should search for the package in the repo using a reasonable keyword.

1 Like