Skip to content

Instantly share code, notes, and snippets.

@psftw
Created October 23, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psftw/40db4042b001ffe9b7fc to your computer and use it in GitHub Desktop.
Save psftw/40db4042b001ffe9b7fc to your computer and use it in GitHub Desktop.
$ sudo emerge -av opam
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-ml/ocaml-autoconf-1.1::gentoo 11 KiB
[ebuild N ~] dev-lang/ocaml-4.02.3:0/4.02.3::gentoo USE="X ncurses ocamlopt -emacs -latex -xemacs" 2,013 KiB
[ebuild N ~] dev-ml/findlib-1.5.5-r1::gentoo USE="ocamlopt -doc -tk" 235 KiB
[ebuild N ~] dev-ml/camlp4-4.02.1_p3:0/4.02.1_p3::gentoo USE="ocamlopt" 632 KiB
[ebuild N ] dev-ml/xml-light-2.2-r3:0/2.2::gentoo USE="ocamlopt -doc" 22 KiB
[ebuild N ] dev-ml/extlib-1.6.1:0/1.6.1::gentoo USE="ocamlopt -doc" 72 KiB
[ebuild N ~] dev-ml/uutf-0.9.4:0/0.9.4::gentoo USE="ocamlopt -doc {-test} -utftrip" 37 KiB
[ebuild N ~] dev-ml/ocaml-re-1.4.1:0/1.4.1::gentoo USE="ocamlopt -debug -doc {-test}" 98 KiB
[ebuild N ~] dev-ml/cmdliner-0.9.8:0/0.9.8::gentoo USE="ocamlopt -doc" 53 KiB
[ebuild N ~] dev-ml/parmap-1.0_rc7:0/1.0_rc7::gentoo USE="ocamlopt" 96 KiB
[ebuild N ~] dev-ml/camlbz2-0.6.0:0/0.6.0::gentoo USE="-doc" 57 KiB
[ebuild N ~] dev-ml/ocaml-expat-0.9.1:0/0.9.1::gentoo USE="ocamlopt -doc {-test}" 25 KiB
[ebuild N ~] dev-ml/cudf-0.8:0/0.8::gentoo USE="ocamlopt {-test}" 54 KiB
[ebuild N ~] dev-ml/jsonm-0.9.1:0/0.9.1::gentoo USE="ocamlopt -debug -doc {-test}" 64 KiB
[ebuild N ] dev-ml/lablgl-1.05:0/1.05::gentoo USE="ocamlopt -doc -glut -tk" 290 KiB
[ebuild NS ] app-text/gtkspell-2.0.16:2::gentoo [3.0.4:3/0::gentoo] 344 KiB
[ebuild N ] x11-libs/gtkglarea-2.1.0:2::gentoo USE="-examples" 0 KiB
[ebuild N ] dev-ml/lablgtk-2.18.0-r1:2/2.18.0::gentoo USE="gnomecanvas ocamlopt opengl spell svg -debug -examples -glade -sourceview" 772 KiB
[ebuild N ~] dev-ml/ocamlgraph-1.8.5:0/1.8.5::gentoo USE="gtk ocamlopt -doc -examples" 264 KiB
[ebuild N ~] dev-ml/dose3-3.3:0/3.3::gentoo USE="bzip2 ocamlopt parmap xml -curl -rpm4 {-test} -zip" 252 KiB
[ebuild N ~] dev-ml/opam-1.2.2::gentoo 634 KiB
Total: 21 packages (20 new, 1 in new slot), Size of downloads: 6,014 KiB
Would you like to merge these packages? [Yes/No] Yes
... snip ...
$ opam init
Checking for available remotes: rsync and local, git, mercurial.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
[WARNING] Recommended external solver aspcud not found.
=-=- Fetching repository information =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] synchronized from https://opam.ocaml.org
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-> installed base-bigarray.base
-> installed base-threads.base
-> installed base-unix.base
Done.
$ opam install mirage
The following actions will be performed:
- install cmdliner 0.9.8 [required by mirage]
- install ocamlfind 1.5.5 [required by mirage-types, ipaddr, lwt, mirage-types-lwt]
- install camlp4 4.02+system [required by lwt]
- install type_conv 113.00.02 [required by ipaddr]
- install optcomp 1.6 [required by ocplib-endian]
- install lwt 2.4.5 [required by mirage]
- install sexplib 113.00.00 [required by ipaddr]
- install ocplib-endian 0.4 [required by cstruct]
- install ipaddr 2.5.0 [required by mirage]
- install cstruct 1.7.0 [required by mirage-types, mirage-types-lwt]
- install io-page 1.5.1 [required by mirage-types, mirage-types-lwt]
- install mirage-types 2.6.0 [required by mirage]
- install mirage-types-lwt 2.6.0 [required by mirage]
- install mirage 2.6.1
===== 14 to install =====
Do you want to continue ? [Y/n] Y
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] https://opam.ocaml.org/archives/cmdliner.0.9.8+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/io-page.1.5.1+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/cstruct.1.7.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/ipaddr.2.5.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/lwt.2.4.5+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/mirage.2.6.1+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/mirage-types.2.6.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/ocplib-endian.0.4+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/optcomp.1.6+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/ocamlfind.1.5.5+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/type_conv.113.00.02+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/sexplib.113.00.00+opam.tar.gz downloaded
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-> installed camlp4.4.02+system
-> installed cmdliner.0.9.8
-> installed ocamlfind.1.5.5
-> installed type_conv.113.00.02
-> installed optcomp.1.6
-> installed ocplib-endian.0.4
-> installed sexplib.113.00.00
-> installed ipaddr.2.5.0
-> installed lwt.2.4.5
-> installed cstruct.1.7.0
-> installed io-page.1.5.1
-> installed mirage-types.2.6.0
-> installed mirage-types-lwt.2.6.0
-> installed mirage.2.6.1
Done.
$ git clone gh:mirage/mirage-skeleton
$ cd mirage-skeleton
$ make
$ ldd console/_build/main.native
linux-vdso.so.1 (0x00007fffa9bdc000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fe5cebda000)
libm.so.6 => /lib64/libm.so.6 (0x00007fe5ce8e2000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fe5ce6de000)
libc.so.6 => /lib64/libc.so.6 (0x00007fe5ce347000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe5cedf6000)
$ ./console/mir-console
hello
world
hello
world
hello
world
hello
world
hello
world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment