Skip to content

Unable to install Batsh on Linux debian11 #86

Open
@me-kell

Description

@me-kell

Neither from OPAM nor build from source

$ uname -a
Linux debian11 5.10.0-19-amd64 #1 SMP Debian 5.10.149-1 (2022-10-17) x86_64 GNU/Linux
$ sudo apt-get install -y opam
$ opam --version
    2.0.8
$ ocaml --version
    The OCaml toplevel, version 4.11.1
$ opam init
[NOTE] Will configure from built-in defaults.
Checking for available remotes: rsync and local, git, mercurial, darcs. Perfect!

<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><>
[default] Initialised

<><> Required setup - please read <><><><><><><><><><><><><><><><><><><><><><><>

  In normal operation, opam only alters files within ~/.opam.

  However, to best integrate with your system, some environment variables
  should be set. If you allow it to, this initialisation step will update
  your bash configuration by adding the following line to ~/.profile:

    test -r /home/map/.opam/opam-init/init.sh && . /home/map/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

  Otherwise, every time you want to access your opam installation, you will
  need to run:

    eval $(opam env)

  You can always re-run this setup with 'opam init' later.

Do you want opam to modify ~/.profile? [N/y/f]
(default is 'no', use 'f' to choose a different file) y
A hook can be added to opam's init scripts to ensure that the shell remains in sync with the opam environment when they are loaded. Set that up? [y/N] y

User configuration:
  ~/.profile is already up-to-date.
[NOTE] Make sure that ~/.profile is well sourced in your ~/.bashrc.


<><> Creating initial switch (ocaml-system>=4.02.3) <><><><><><><><><><><><><><>

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
∗ installed base-bigarray.base
∗ installed base-threads.base
∗ installed base-unix.base
∗ installed ocaml-system.4.11.1
∗ installed ocaml-config.1
∗ installed ocaml.4.11.1
Done.
$ eval $(opam env)
$ opam install ocp-build dune core_kernel ounit dlist cmdliner
[NOTE] Package cmdliner is already installed (current version is 1.0.4).
[NOTE] Package dlist is already installed (current version is 0.1.0).
[NOTE] Package ounit is already installed (current version is 2.2.6).
[NOTE] Package core_kernel is already installed (current version is v0.15.0).
[NOTE] Package dune is already installed (current version is 3.5.0).
[NOTE] Package ocp-build is already installed (current version is 1.99.21).

Install from OPAM doesn't work

$ opam install batsh
    Sorry, no solution found: there seems to be a problem with your request.

Neither Build from source

$ wget -O Batsh-0.0.6.tar.gz https://github.com/batsh-dev-team/Batsh/archive/refs/tags/v0.0.6.tar.gz
$ tar xzf Batsh-0.0.6.tar.gz
$ cd Batsh-0.0.6/
$ make
ocp-build init
Warning: file "/home/map/Batsh-0.0.6/_obuild/ocp-build.root" does not exist. Creating with default values.
ocp-build build batsh
Compiler: ocaml 4.11.1
----- 31 env warnings -----
Warning: inexistent package directory:
  "/home/map/.opam/default/lib/dune/configurator"
  Disabling package "dune.configurator".
    (from "/home/map/.opam/default/lib/dune/META")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4lib".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4Bin".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-r".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedParserParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-rp".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-o".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlParserParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pa-op".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4QuotationCommon".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4OCamlRevisedQuotationExpander".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4GrammarParser".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "Camlp4AutoPrinter".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4-pr-p".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "pa_macro".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4o".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: inexistent package directory:
  "/usr/lib/ocaml/camlp4"
  Disabling package "camlp4fulllib".
    (from "/home/map/.opam/default/lib/ocaml/ocp-build/camlp4.ocp")
Warning: missing package "ppx_deriving":
  Disabling package "base_quickcheck.ppx_quickcheck".
    (from "/home/map/.opam/default/lib/base_quickcheck/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_bin_prot".
    (from "/home/map/.opam/default/lib/ppx_bin_prot/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_compare".
    (from "/home/map/.opam/default/lib/ppx_compare/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_enumerate".
    (from "/home/map/.opam/default/lib/ppx_enumerate/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_fields_conv".
    (from "/home/map/.opam/default/lib/ppx_fields_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_hash".
    (from "/home/map/.opam/default/lib/ppx_hash/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_optcomp".
    (from "/home/map/.opam/default/lib/ppx_optcomp/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_sexp_conv".
    (from "/home/map/.opam/default/lib/ppx_sexp_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_stable".
    (from "/home/map/.opam/default/lib/ppx_stable/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_typerep_conv".
    (from "/home/map/.opam/default/lib/ppx_typerep_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppx_variants_conv".
    (from "/home/map/.opam/default/lib/ppx_variants_conv/META")
Warning: missing package "ppx_deriving":
  Disabling package "ppxlib.traverse".
    (from "/home/map/.opam/default/lib/ppxlib/META")
----- 16 project warnings -----
Warning: missing package "batsh-lib":
  Disabling package "test".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_sexp_conv.syntax":
  Disabling package "sexplib-syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "batsh-lib":
  Disabling package "batsh".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "sexplib-syntax":
  Disabling package "batsh-lib".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "camlp4o":
  Disabling package "sexplib-syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_sexp_conv":
  Disabling package "pa_sexp_conv.syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: missing package "pa_type_conv":
  Disabling package "pa_sexp_conv".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Choosing "threads".
Use the --disable-package PKG@DIR to disable one of them.
     (from /home/map/Batsh-0.0.6/src/batsh.ocp)
   second: threads@/usr/lib/ocaml/threads
     (from /home/map/.opam/default/lib/threads/META)
   first: threads@/usr/lib/ocaml
Warning: installed package "threads" has conflicting directories:
Warning: inexistent package directory:
  "%{type_conv_DST_DIR}%"
  Disabling package "pa_type_conv.syntax".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Warning: inexistent package directory:
  "%{type_conv_DST_DIR}%"
  Disabling package "pa_type_conv".
    (from "/home/map/Batsh-0.0.6/src/batsh.ocp")
Error: Could not find target project batsh
make: *** [Makefile:2: build] Fehler 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions