Skip to content

no longer installs on current Ubuntu/Debian due to outdated PCRE #792

@siccegge

Description

@siccegge

Hi!

Trying to install easycrypt on Debian Trixie:

$ opam install --deps-only easycrypt --no-depexts

<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[easycrypt.dev] synchronised (no changes)

The following actions will be performed:
=== install 3 packages
  ∗ conf-libpcre   2     [required by pcre]
  ∗ ocaml-inifiles 1.2   [required by easycrypt]
  ∗ pcre           8.0.5 [required by easycrypt]

Proceed with ∗ 3 installations? [y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved ocaml-inifiles.1.2  (cached)
⬇ retrieved pcre.8.0.5  (cached)
[ERROR] The compilation of conf-libpcre.2 failed at "pkg-config --print-errors --exists libpcre".

#=== ERROR while compiling conf-libpcre.2 =====================================#
# context     2.3.0 | linux/x86_64 |  | https://opam.ocaml.org#4f8a855dcfdd2b6bde1f9512be0e673f4776dfd5
# path        ~/.opam/easycrypt/.opam-switch/build/conf-libpcre.2
# command     ~/.opam/opam-init/hooks/sandbox.sh build pkg-config --print-errors --exists libpcre
# exit-code   1
# env-file    ~/.opam/log/conf-libpcre-23146-e3eb41.env
# output-file ~/.opam/log/conf-libpcre-23146-e3eb41.out
### output ###
# Package libpcre was not found in the pkg-config search path.
# Perhaps you should add the directory containing `libpcre.pc'
# to the PKG_CONFIG_PATH environment variable
# Package 'libpcre', required by 'virtual:world', not found



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build conf-libpcre 2
└─ 
╶─ No changes have been performed

This should be due to deprecation of the (ancient) libpcre -- replaced by pcre2 -- more discussion at
mmottl/pcre-ocaml#25 -- my understanding is that pcre-ocaml also is barely on life support and the recommendation is to move to ocaml-pcre2

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions