[ocaml] je n'arrive pas à installer le package graphics

Applications, problèmes de configuration réseau
Unglaublicher
newbie
Messages : 8
Inscription : dim. 03 janv. 2021, 11:49

[ocaml] je n'arrive pas à installer le package graphics

Message par Unglaublicher »

Bonjour,

j'essaie de compiler un programme utilisant le package graphics d'ocaml.
J'ai premièrement essayé de l'installer avec opam sans succès (j'avais bien graphics, mais aucun fichier graphics.cmxa ou graphics.cma) donc avec mon

Code : Tout sélectionner

ocamlfind ocamlopt -package graphics ...
la réponse était : no implementation for the following package : graphics (à peu près)

voyant que cela ne fonctionnait pas, j'ai essayé d'installer ocaml-graphics depuis l'AUR sans succès : j'arrive pas à le build :

Code : Tout sélectionner

3 |  (libraries unix dune-configurator))
                     ^^^^^^^^^^^^^^^^^
Error: Library "dune-configurator" not found.
Hint: try:
  dune external-lib-deps --missing -p graphics @install
==> ERROR: A failure occurred in build().
    Aborting...
error making: ocaml-graphics
pouvez vous m'aider ? merci :D
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [ocaml] je n'arrive pas à installer le package graphics

Message par benjarobin »

Bonjour,
Comment essayes tu de build ocaml-graphics ? Car oui c'est bien ce paquet qu'il te faut.
J'ai testé, et je n'ai aucun souci pour l'installer.

Code : Tout sélectionner

yay -S ocaml-graphics
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Unglaublicher
newbie
Messages : 8
Inscription : dim. 03 janv. 2021, 11:49

Re: [ocaml] je n'arrive pas à installer le package graphics

Message par Unglaublicher »

rien de particulier, j'utilise yay aussi mais il y a une erreur lors de l'exécution de cette commande :

Code : Tout sélectionner

 yay -S ocaml-graphics
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  ocaml-graphics-5.1.0-1

  1 ocaml-graphics                   (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: PKGBUILD up to date, Skipping (1/1): ocaml-graphics
  1 ocaml-graphics                   (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: (1/1) Parsing SRCINFO: ocaml-graphics
==> Making package: ocaml-graphics 5.1.0-1 (Sun 24 Jan 2021 07:45:55 PM CET)
==> Retrieving sources...
  -> Found 5.1.0.tar.gz
==> Validating source files with sha256sums...
    5.1.0.tar.gz ... Passed
==> Making package: ocaml-graphics 5.1.0-1 (Sun 24 Jan 2021 07:45:56 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 5.1.0.tar.gz
==> Validating source files with sha256sums...
    5.1.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 5.1.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: ocaml-graphics 5.1.0-1 (Sun 24 Jan 2021 07:46:00 PM CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Starting build()...
File "src/discover/dune", line 3, characters 17-34:
3 |  (libraries unix dune-configurator))
                     ^^^^^^^^^^^^^^^^^
Error: Library "dune-configurator" not found.
Hint: try:
  dune external-lib-deps --missing -p graphics @install
==> ERROR: A failure occurred in build().
    Aborting...
error making: ocaml-graphics

Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17187
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [ocaml] je n'arrive pas à installer le package graphics

Message par benjarobin »

Peux tu donner la sortie de :

Code : Tout sélectionner

pacman -Q dune 
ls -l /usr/lib/ocaml/dune-configurator/
Ton système est intégralement à jour ?
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Unglaublicher
newbie
Messages : 8
Inscription : dim. 03 janv. 2021, 11:49

Re: [ocaml] je n'arrive pas à installer le package graphics

Message par Unglaublicher »

mon système est intégralement à jour

Code : Tout sélectionner

pacman -Q dune

dune 2.8.1-1

Code : Tout sélectionner

 ls -l /usr/lib/ocaml/dune-configurator

total 1.3M
-rw-r--r-- 1 root root 222K Jan 18 15:39 configurator.a
-rw-r--r-- 1 root root 337K Jan 18 15:39 configurator.cma
-rw-r--r-- 1 root root  327 Jan 18 15:39 configurator.cmi
-rw-r--r-- 1 root root  650 Jan 18 15:39 configurator__.cmi
-rw-r--r-- 1 root root 2.7K Jan 18 15:39 configurator.cmt
-rw-r--r-- 1 root root 4.3K Jan 18 15:39 configurator__.cmt
-rw-r--r-- 1 root root  210 Jan 18 15:39 configurator.cmx
-rw-r--r-- 1 root root  235 Jan 18 15:39 configurator__.cmx
-rw-r--r-- 1 root root 6.2K Jan 18 15:39 configurator.cmxa
-rw-r--r-- 1 root root 170K Jan 18 15:39 configurator.cmxs
-rw-r--r-- 1 root root 1.3K Jan 18 15:39 configurator__Dune_lang.cmx
-rw-r--r-- 1 root root  580 Jan 18 15:39 configurator__Extract_obj.cmi
-rw-r--r-- 1 root root  20K Jan 18 15:39 configurator__Extract_obj.cmt
-rw-r--r-- 1 root root 4.0K Jan 18 15:39 configurator__Extract_obj.cmti
-rw-r--r-- 1 root root 2.7K Jan 18 15:39 configurator__Extract_obj.cmx
-rw-r--r-- 1 root root  28K Jan 18 15:39 configurator__Import.cmx
-rw-r--r-- 1 root root   15 Jan 18 15:39 configurator.ml
-rw-r--r-- 1 root root  413 Jan 18 15:39 configurator__.ml
-rw-r--r-- 1 root root 1.5K Jan 18 15:39 configurator__Ocaml_config.cmx
-rw-r--r-- 1 root root 6.1K Jan 18 15:39 configurator__V1.cmi
-rw-r--r-- 1 root root 281K Jan 18 15:39 configurator__V1.cmt
-rw-r--r-- 1 root root  35K Jan 18 15:39 configurator__V1.cmti
-rw-r--r-- 1 root root 8.4K Jan 18 15:39 configurator__V1.cmx
-rw-r--r-- 1 root root 2.4K Jan 18 15:39 dune_lang.ml
-rw-r--r-- 1 root root  132 Jan 18 15:39 dune_lang.mli
-rw-r--r-- 1 root root 1.3K Jan 18 15:39 dune-package
-rw-r--r-- 1 root root 7.7K Jan 18 15:39 extract_obj.ml
-rw-r--r-- 1 root root  228 Jan 18 15:39 extract_obj.mli
-rw-r--r-- 1 root root 8.3K Jan 18 15:39 import.ml
-rw-r--r-- 1 root root  191 Jan 18 15:39 META
-rw-r--r-- 1 root root  767 Jan 18 15:39 ocaml_config.ml
-rw-r--r-- 1 root root  358 Jan 18 15:39 ocaml_config.mli
-rw-r--r-- 1 root root 1.1K Jan 18 15:39 opam
-rw-r--r-- 1 root root  22K Jan 18 15:39 v1.ml
-rw-r--r-- 1 root root 5.8K Jan 18 15:39 v1.mli
Unglaublicher
newbie
Messages : 8
Inscription : dim. 03 janv. 2021, 11:49

Re: [ocaml] je n'arrive pas à installer le package graphics

Message par Unglaublicher »

aucune idée de pourquoi mais je viens de réussir à l'installer XD
Répondre