Last active
July 22, 2017 17:44
-
-
Save stereobooster/1153c58660ed0d9a9770ee33288c867d to your computer and use it in GitHub Desktop.
opam user-setup install fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opam user-setup install | |
OPAM plugin user-setup is not installed. Install it on the current switch? [Y/n] Y | |
The following actions will be performed: | |
∗ install cmdliner 0.9.8 [required by user-setup] | |
∗ install base-bytes base [required by re] | |
∗ install re 1.7.1 [required by user-setup] | |
∗ install user-setup 0.6 | |
===== ∗ 4 ===== | |
Do you want to continue ? [Y/n] Y | |
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫 | |
[default] https://opam.ocaml.org/archives/user-setup.0.6+opam.tar.gz downloaded | |
[default] https://opam.ocaml.org/archives/cmdliner.0.9.8+opam.tar.gz downloaded | |
[default] https://opam.ocaml.org/archives/re.1.7.1+opam.tar.gz downloaded | |
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫 | |
∗ installed base-bytes.base | |
[ERROR] The compilation of cmdliner failed at "ocaml pkg/git.ml". | |
[ERROR] The compilation of re failed at "ocaml setup.ml -configure --prefix .opam/system". | |
Processing 3/4: [re: ocamlfind remove] | |
#=== ERROR while installing cmdliner.0.9.8 ====================================# | |
# opam-version 1.2.2 | |
# os darwin | |
# command ocaml pkg/git.ml | |
# path .opam/system/build/cmdliner.0.9.8 | |
# compiler system (4.05.0) | |
# exit-code 127 | |
# env-file .opam/system/build/cmdliner.0.9.8/cmdliner-36147-0a5907.env | |
# stdout-file .opam/system/build/cmdliner.0.9.8/cmdliner-36147-0a5907.out | |
# stderr-file .opam/system/build/cmdliner.0.9.8/cmdliner-36147-0a5907.err | |
#=== ERROR while installing re.1.7.1 ==========================================# | |
# opam-version 1.2.2 | |
# os darwin | |
# command ocaml setup.ml -configure --prefix .opam/system | |
# path .opam/system/build/re.1.7.1 | |
# compiler system (4.05.0) | |
# exit-code 127 | |
# env-file .opam/system/build/re.1.7.1/re-36147-60459a.env | |
# stdout-file .opam/system/build/re.1.7.1/re-36147-60459a.out | |
# stderr-file .opam/system/build/re.1.7.1/re-36147-60459a.err | |
=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫 | |
The following actions were aborted | |
∗ install user-setup 0.6 | |
The following actions failed | |
∗ install cmdliner 0.9.8 | |
∗ install re 1.7.1 | |
The following changes have been performed | |
∗ install base-bytes base | |
The former state can be restored with: | |
opam switch import "~/.opam/system/backup/state-20170622172705.export" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Quick setup for VIM | |
------------------- | |
Append this to your .vimrc to add merlin to vim's runtime-path: | |
let g:opamshare = substitute(system('opam config var share'),'\n$','','''') | |
execute "set rtp+=" . g:opamshare . "/merlin/vim" | |
Also run the following line in vim to index the documentation: | |
:execute "helptags " . g:opamshare . "/merlin/vim/doc" | |
Quick setup for EMACS | |
------------------- | |
Add opam emacs directory to your load-path by appending this to your .emacs: | |
(let ((opam-share (ignore-errors (car (process-lines "opam" "config" "var" "share"))))) | |
(when (and opam-share (file-directory-p opam-share)) | |
;; Register Merlin | |
(add-to-list 'load-path (expand-file-name "emacs/site-lisp" opam-share)) | |
(autoload 'merlin-mode "merlin" nil t nil) | |
;; Automatically start it in OCaml buffers | |
(add-hook 'tuareg-mode-hook 'merlin-mode t) | |
(add-hook 'caml-mode-hook 'merlin-mode t) | |
;; Use opam switch to lookup ocamlmerlin binary | |
(setq merlin-command 'opam))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/emacs-tw/awesome-emacs | |
https://github.com/akrawchyk/awesome-vim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment