Skip to content

NetBSD installation issues #3482

@maroneze

Description

@maroneze

I just installed opam on a NetBSD 7.1.2 (via pkg_add ocaml-opam), and it seemed to work fine, however I cannot do opam init since I have no solvers, and I cannot find NetBSD packages for aspcud, packup nor mccs.

I wonder if I missed something?

I found a mention to NetBSD in this issue, but the CUDF Solver Farm link mentioned by rneswold is broken.

In the Specifying solver dependencies page in the opam website, the link to aspcud is also broken.

I managed to get packup and compile it (after installing gmp, configuring CPATH and LIBRARY_PATH to include the /usr/pkg/include and /usr/pkg/lib respectively), then I installed it, tried opam init again, and this time I had another error:

=-=- Fetching repository information
[ERROR] Could not update repository "default": "/usr/pkg/bin/curl
 --write-out %{http_code}\\n --retry 3 --retry-delay 2 --user-agent opam/2.0.0~beta5
 -L -o /tmp/opam-3783-c61e7b/index.tar.gz.part https://opam.ocaml.org/index.tar.gz"
 exited with code 60
[ERROR] Initial download of repository failed

The error was due to the fact that I did not have the NetBSD CA certificates, however it was not obvious from the error message.

After doing all of that, I finally had a (mostly) working opam installation, with OCaml 4.06.0. Still, when trying to install several packages, I have opam freezing systematically while applying patches to package num. With OPAMDEBUG=1, I get:

00:15.530 PARALLEL  Next task in job 980392853: /usr/bin/patch
 -p1 -i /root/.opam/default/.opam-switch/build/num.1.0/findlib-install.patch
Processing 6/24: [num: patch]

My virtual machine indicates no disk nor network accesses, and there is no CPU usage. It really seems frozen. If I Ctrl+C and try again, the same thing happens.

I tried installing another package which also has a patch, such as camlzip, but it worked as expected.

At this point, I have no idea if it's an issue with opam 2, with the num package, with NetBSD, my installation, or something else. I'd like a suggestion on what to try next.

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