Errors trying to install any-dl

Hello World,

I’ve been trying to install the any-dl package/app/program, whatever you call it over here, for a couple of days and every time I keep getting errors. Here is todays terminal output, everything went fine until I got to this part with conflicts, I enter Y to remove, but still…

resolving dependencies...
looking for conflicting packages...
:: ocaml4-4.14.2-1 and ocaml-5.2.0-1 are in conflict. Remove ocaml? [y/N] y
:: ocaml4-4.14.2-1 and ocaml-compiler-libs-5.2.0-1 are in conflict. Remove ocaml-compiler-libs? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'ocaml>=4.03.0' required by ocaml-uutf
:: unable to satisfy dependency 'ocaml>=4.08.0' required by ocaml-lwt
:: removing ocaml breaks dependency 'ocaml' required by camlp-streams
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by camlp-streams
:: removing ocaml breaks dependency 'ocaml>=4.14.0' required by ocaml-base
:: removing ocaml breaks dependency 'ocaml' required by ocaml-biniou
:: removing ocaml breaks dependency 'ocaml' required by ocaml-cmdliner
:: removing ocaml breaks dependency 'ocaml>=5.2.0' required by ocaml-compiler-libs-repackaged
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by ocaml-compiler-libs-repackaged
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by ocaml-findlib
:: removing ocaml breaks dependency 'ocaml' required by ocaml-intrinsics-kernel
:: removing ocaml breaks dependency 'ocaml>=4.03.0' required by ocaml-ocplib-endian
:: removing ocaml breaks dependency 'ocaml' required by ocaml-ppx_derivers
:: removing ocaml breaks dependency 'ocaml>=5.1.0' required by ocaml-ppx_here
:: removing ocaml breaks dependency 'ocaml>=5.1.0' required by ocaml-ppx_let
:: removing ocaml breaks dependency 'ocaml>=4.08.0' required by ocaml-ppxlib
:: removing ocaml breaks dependency 'ocaml>=4.08.0' required by ocaml-react
:: removing ocaml breaks dependency 'ocaml' required by ocaml-result
:: removing ocaml breaks dependency 'ocaml' required by ocaml-sexplib0
:: removing ocaml breaks dependency 'ocaml' required by ocaml-topkg
:: removing ocaml breaks dependency 'ocaml' required by ocaml-yojson
:: removing ocaml breaks dependency 'ocaml' required by ocamlbuild
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by opam
 -> Failed to install layer, rolling up to next layer.error:error installing: [/home/vikings/.cache/yay/ocaml4/ocaml4-4.14.2-1-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-uutf/ocaml-uutf-1.0.3-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-pcre/ocaml-pcre-7.5.0-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-lwt/ocaml-lwt-5.7.0-2-x86_64.pkg.tar.zst] - exit status 1
==> Making package: ocamlnet 4.1.9-3 (Sb 10 aug 2024 17:26:50 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> ocaml4
  -> ocaml-pcre
==> ERROR: Could not resolve all dependencies.
 -> Failed to install layer, rolling up to next layer.error:error making: ocamlnet - exit status 8
==> Making package: ocaml4 4.14.2-1 (Sb 10 aug 2024 17:26:51 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ocaml-4.14.2.tar.xz
==> Validating source files with sha512sums...
    ocaml-4.14.2.tar.xz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ocaml-4.14.2.tar.xz with bsdtar
==> Sources are ready.
 -> ocaml4-4.14.2-1 already made -- skipping build
==> Making package: ocaml4 4.14.2-1 (Sb 10 aug 2024 17:26:54 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
==> Making package: ocaml-csv 2.4-1 (Sb 10 aug 2024 17:26:55 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> ocaml-lwt
  -> ocaml-uutf
==> ERROR: Could not resolve all dependencies.
 -> error making: ocaml-csv-exit status 8
==> Making package: ocamlnet 4.1.9-3 (Sb 10 aug 2024 17:26:55 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> ocaml4
  -> ocaml-pcre
==> ERROR: Could not resolve all dependencies.
 -> error making: ocamlnet-exit status 8
==> Making package: ocaml-xmlm 1.4.0-4 (Sb 10 aug 2024 17:26:56 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ocaml-xmlm-1.4.0.tar.gz
==> Validating source files with b2sums...
    ocaml-xmlm-1.4.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ocaml-xmlm-1.4.0.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
==> Making package: ocaml-xmlm 1.4.0-4 (Sb 10 aug 2024 17:26:58 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
ocamlfind ocamldep -modules src/xmlm.ml > src/xmlm.ml.depends
ocamlfind ocamldep -modules src/xmlm.mli > src/xmlm.mli.depends
ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -o src/xmlm.cmi src/xmlm.mli
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -o src/xmlm.cmx src/xmlm.ml
ocamlfind ocamlopt -a -I src src/xmlm.cmx -o src/xmlm.cmxa
ocamlfind ocamlopt -shared -linkall -I src src/xmlm.cmxa -o src/xmlm.cmxs
ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -o src/xmlm.cmo src/xmlm.ml
ocamlfind ocamlc -a -I src src/xmlm.cmo -o src/xmlm.cma
ocamlfind ocamldep -modules test/xmltrip.ml > test/xmltrip.ml.depends
ocamlfind ocamldep -modules test/xhtml.ml > test/xhtml.ml.depends
ocamlfind ocamlc -c -g -bin-annot -safe-string -I test -I src -o test/xhtml.cmo test/xhtml.ml
ocamlfind ocamlc -c -g -bin-annot -safe-string -I test -I src -o test/xmltrip.cmo test/xmltrip.ml
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I test -I src -o test/xhtml.cmx test/xhtml.ml
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I test -I src -o test/xmltrip.cmx test/xmltrip.ml
ocamlfind ocamlopt -linkpkg -g -I src -I test src/xmlm.cmx test/xhtml.cmx test/xmltrip.cmx -o test/xmltrip.native
# No parallelism done
==> Entering fakeroot environment...
==> Starting package()...
Creating directory /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/bin
_build/test/xmltrip.native       => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/bin/xmltrip
Creating directory /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm
_build/opam                      => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/opam
_build/pkg/META                  => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/META
_build/src/xmlm.a                => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.a
_build/src/xmlm.cma              => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cma
_build/src/xmlm.cmi              => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cmi
_build/src/xmlm.cmti             => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cmti
_build/src/xmlm.cmx              => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cmx
_build/src/xmlm.cmxa             => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cmxa
_build/src/xmlm.cmxs             => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.cmxs
_build/src/xmlm.mli              => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/lib/ocaml/xmlm/xmlm.mli
Creating directory /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm
_build/CHANGES.md                => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/CHANGES.md
_build/LICENSE.md                => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/LICENSE.md
_build/README.md                 => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/README.md
Creating directory /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/odoc-pages
_build/doc/index.mld             => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/odoc-pages/index.mld
_build/test/examples.ml          => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/examples.ml
_build/test/xhtml.ml             => /home/vikings/.cache/yay/ocaml-xmlm/pkg/ocaml-xmlm/usr/share/doc/xmlm/xhtml.ml
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> WARNING: Package contains reference to $srcdir
usr/lib/ocaml/xmlm/xmlm.cma
usr/lib/ocaml/xmlm/xmlm.cmxs
usr/bin/xmltrip
==> Creating package "ocaml-xmlm"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ocaml-xmlm 1.4.0-4 (Sb 10 aug 2024 17:27:01 +0300)
==> Cleaning up...
==> Making package: ocaml-uutf 1.0.3-3 (Sb 10 aug 2024 17:27:02 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ocaml-uutf-1.0.3.tar.gz
==> Validating source files with b2sums...
    ocaml-uutf-1.0.3.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ocaml-uutf-1.0.3.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
 -> ocaml-uutf-1.0.3-3 already made -- skipping build
==> Making package: ocaml-uutf 1.0.3-3 (Sb 10 aug 2024 17:27:04 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
==> Making package: ocaml-pcre 7.5.0-3 (Sb 10 aug 2024 17:27:05 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found pcre-7.5.0.tbz
==> Validating source files with sha256sums...
    pcre-7.5.0.tbz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting pcre-7.5.0.tbz with bsdtar
==> Sources are ready.
 -> ocaml-pcre-7.5.0-3 already made -- skipping build
==> Making package: ocaml-pcre 7.5.0-3 (Sb 10 aug 2024 17:27:06 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
==> Making package: ocaml-lwt 5.7.0-2 (Sb 10 aug 2024 17:27:07 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ocaml-lwt-5.7.0.tar.gz
==> Validating source files with b2sums...
    ocaml-lwt-5.7.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting ocaml-lwt-5.7.0.tar.gz with bsdtar
==> Starting prepare()...
==> Sources are ready.
 -> ocaml-lwt-5.7.0-2 already made -- skipping build
==> Making package: ocaml-lwt 5.7.0-2 (Sb 10 aug 2024 17:27:09 +0300)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Sources are ready.
==> Making package: any-dl 0.22.0-1 (Sb 10 aug 2024 17:27:10 +0300)
==> Checking runtime dependencies...
==> Missing dependencies:
  -> ocaml4
  -> ocaml-pcre
  -> ocaml-xmlm
  -> ocamlnet
  -> ocaml-csv
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
 -> error making: any-dl-exit status 8
loading packages...
resolving dependencies...
looking for conflicting packages...
:: ocaml4-4.14.2-1 and ocaml-5.2.0-1 are in conflict. Remove ocaml? [y/N] y
:: ocaml4-4.14.2-1 and ocaml-compiler-libs-5.2.0-1 are in conflict. Remove ocaml-compiler-libs? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: unable to satisfy dependency 'ocaml>=4.05.0' required by ocaml-xmlm
:: unable to satisfy dependency 'ocaml>=4.03.0' required by ocaml-uutf
:: unable to satisfy dependency 'ocaml>=4.08.0' required by ocaml-lwt
:: removing ocaml breaks dependency 'ocaml' required by camlp-streams
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by camlp-streams
:: removing ocaml breaks dependency 'ocaml>=4.14.0' required by ocaml-base
:: removing ocaml breaks dependency 'ocaml' required by ocaml-biniou
:: removing ocaml breaks dependency 'ocaml' required by ocaml-cmdliner
:: removing ocaml breaks dependency 'ocaml>=5.2.0' required by ocaml-compiler-libs-repackaged
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by ocaml-compiler-libs-repackaged
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by ocaml-findlib
:: removing ocaml breaks dependency 'ocaml' required by ocaml-intrinsics-kernel
:: removing ocaml breaks dependency 'ocaml>=4.03.0' required by ocaml-ocplib-endian
:: removing ocaml breaks dependency 'ocaml' required by ocaml-ppx_derivers
:: removing ocaml breaks dependency 'ocaml>=5.1.0' required by ocaml-ppx_here
:: removing ocaml breaks dependency 'ocaml>=5.1.0' required by ocaml-ppx_let
:: removing ocaml breaks dependency 'ocaml>=4.08.0' required by ocaml-ppxlib
:: removing ocaml breaks dependency 'ocaml>=4.08.0' required by ocaml-react
:: removing ocaml breaks dependency 'ocaml' required by ocaml-result
:: removing ocaml breaks dependency 'ocaml' required by ocaml-sexplib0
:: removing ocaml breaks dependency 'ocaml' required by ocaml-topkg
:: removing ocaml breaks dependency 'ocaml' required by ocaml-yojson
:: removing ocaml breaks dependency 'ocaml' required by ocamlbuild
:: removing ocaml-compiler-libs breaks dependency 'ocaml-compiler-libs' required by opam
 -> error installing: [/home/vikings/.cache/yay/ocaml4/ocaml4-4.14.2-1-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-uutf/ocaml-uutf-1.0.3-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-pcre/ocaml-pcre-7.5.0-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-lwt/ocaml-lwt-5.7.0-2-x86_64.pkg.tar.zst] - exit status 1
error making: ocamlnet - exit status 8
error installing: [/home/vikings/.cache/yay/ocaml4/ocaml4-4.14.2-1-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-xmlm/ocaml-xmlm-1.4.0-4-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-uutf/ocaml-uutf-1.0.3-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-pcre/ocaml-pcre-7.5.0-3-x86_64.pkg.tar.zst /home/vikings/.cache/yay/ocaml-lwt/ocaml-lwt-5.7.0-2-x86_64.pkg.tar.zst] - exit status 1
[vikings@VIKINGSKINGDOM ~]$

What can I do please?

If you want the full terminal output let me know, just be advised it’s 5 miles long and(to my newb eye at least) I didn’t notice any other issues until this last part.

This package is trying to install an AUR version of the older ocaml4, but your system has packages that depend on the official ocaml (v5) package already installed.

It may be possible to force the matter, but I suspect that’s likely to break dependencies somewhere.

Oh. :frowning: When you say “force the matter” are you reffering to doing what it wants and replacing my newer versions with the older ones?
What about installing it in a way that makes it use the updated versions that I already have installed? Would that work, is that even possible?

Or must I really look for something else? Cause from what I’ve seen so far it’s kinda slim pickings when it comes to video download apps… :frowning:

If referring to Youtube content, tried Freetube?

Would it work? Maybe, but I have my doubts because typically the AUR package would already make use of an official package if that was feasible.

Is it even possible? Yes. Download and extract that package snapshot from the any-dl AUR page into a temp folder, and modify the PKGBUILD file to make use of ocaml instead of ocaml4.
Then try building it by running makepkg -sri within that folder.

I see… Ok, thank you very much, I’ll give Freetube a try then.
The content yeah it’s mostly youtube downloads but once in a blue moon I do find myself needing to download videos from other more obscure sites too. And that’s part of what attracted me to any-dl.

Perhaps yt-dlp supports those “obscure sites”?

Wooow, that is a lot lot of sites, cool. :grin: Thank you so much, yeah I’ll definitely check it out when I can(right now I’m stuck waiting for answers on my latest thread before I do anything else).

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.