Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building on debian 9 #1

Open
ekg opened this issue Sep 30, 2017 · 4 comments
Open

building on debian 9 #1

ekg opened this issue Sep 30, 2017 · 4 comments

Comments

@ekg
Copy link

ekg commented Sep 30, 2017

I'm having some trouble pulling together the ocaml build chain that seems to be needed for this.

I've tried:

sudo apt install libderiving-ocaml libfindlib-ocaml libparmap-ocaml ocaml-batteries-included
./build

But I get an error on build:

+ ocamlfind ocamldep -package deriving,deriving.syntax -syntax camlp4o -package batteries,parmap -modules type.ml > type.ml.depends
ocamlfind: Package `deriving.syntax' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.

What else should I get?

@computereasy
Copy link
Contributor

computereasy commented Oct 2, 2017

Hello @ekg , could you try to install the required packages through opam?

Our experiment machine is not accessible at this moment, but the installation commands should be something like:

opam switch 4.01.0
opam install deriving 
...

Hope it helps!

@cryptid11
Copy link

$ ./build 
+ ocamlfind -nodynlink -c -g -annot -bin-annot -thread -package deriving,deriving.syntax -syntax camlp4o -package batteries,parmap -I plugins -o type.cmx type.ml
Usage: ocamlfind query        [-help | other options] <package_name> ...
   or: ocamlfind ocamlc       [-help | other options] <file> ...
   or: ocamlfind ocamlcp      [-help | other options] <file> ...
   or: ocamlfind ocamlmklib   [-help | other options] <file> ...
   or: ocamlfind ocamlmktop   [-help | other options] <file> ...
   or: ocamlfind ocamlopt     [-help | other options] <file> ...
   or: ocamlfind ocamloptp    [-help | other options] <file> ...
   or: ocamlfind ocamldep     [-help | other options] <file> ...
   or: ocamlfind ocamlbrowser [-help | other options]
   or: ocamlfind ocamldoc     [-help | other options] <file> ...
   or: ocamlfind install      [-help | other options] <package_name> <file> ...
   or: ocamlfind remove       [-help | other options] <package_name>
   or: ocamlfind printppx     [-help | other options] <package_name> ...
   or: ocamlfind printconf    [-help] [variable]
   or: ocamlfind lint         [-help] <file>
   or: ocamlfind list
   or: ocamlfind pkg/cmd arg ...
Select toolchain with:
  ocamlfind -toolchain <t> <command>
Abbreviations:
  e.g. ocamlfind opt instead of ocamlfind ocamlopt
Command exited with code 2.
Compilation unsuccessful after building 3 targets (2 cached) in 00:00:00.

have installed all the dependencies but still I got that

@nolanl
Copy link

nolanl commented Jan 18, 2019

If it helps anyone, I was able to build on Debian 9 with the following dockerfile:

ROM debian:stretch

RUN    apt-get update \
    && apt-get install -y build-essential ca-certificates curl git \
               devscripts debhelper opam \
    && rm -rf /var/lib/apt/lists/*

RUN    cd /root \
    && yes | opam init \
    && opam switch 4.01.0
RUN eval `opam config env` \
    && opam install deriving ocamlfind parmap batteries ocamlbuild
#XXX specify exact package versions.

RUN    git clone https://github.com/s3team/uroboros \
    && eval `opam config env` \
    && cd /root/uroboros/src \
    && ./build

WORKDIR /root

CMD [ "/bin/bash" ]

@cryptid11
Copy link

wow thanks, seems I was missing a lot of packages! incredible, I follow same procedure but with some missing debian packages...:/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants