Skip to content

Instantly share code, notes, and snippets.

@TheSpyder
Last active July 21, 2016 05:36
Show Gist options
  • Save TheSpyder/b93c538f0c13081840d5095485ce98be to your computer and use it in GitHub Desktop.
Save TheSpyder/b93c538f0c13081840d5095485ce98be to your computer and use it in GitHub Desktop.
Attempting to install reason using the "install stable" instructions
shinji:~ spyder$ brew remove opam ocaml
Uninstalling /usr/local/Cellar/opam/1.2.2_2... (30 files, 14.9M)
Uninstalling /usr/local/Cellar/ocaml/4.03.0... (1,641 files, 173.7M)
shinji:~ spyder$ rm -rf ~/.opam
shinji:~ spyder$ brew update
Updated Homebrew from 4f95f7f to 11583d0.
Updated 4 taps (caskroom/cask, caskroom/versions, homebrew/core, homebrew/science).
==> Updated Formulae
abi-compliance-checker ccache fastd menhir sleuthkit
apr compcert homebrew/science/r mighttpd2 syncthing
aws-sdk-cpp ctunnel http-parser ooniprobe texmath
awscli dockutil jetty openh264 virtuoso
bind dvm libxmp openvpn xmp
bmon elixirscript lynis qjackctl yank
==> Deleted Formulae
iodine peervpn shrewsoft-vpn-client vpnc
shinji:~ spyder$ brew upgrade
shinji:~ spyder$ brew install opam
==> Installing dependencies for opam: ocaml
==> Installing opam dependency: ocaml
==> Downloading https://homebrew.bintray.com/bottles/ocaml-4.03.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ocaml-4.03.0.el_capitan.bottle.tar.gz
🍺 /usr/local/Cellar/ocaml/4.03.0: 1,641 files, 173.7M
==> Installing opam
==> Downloading https://homebrew.bintray.com/bottles/opam-1.2.2_2.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring opam-1.2.2_2.el_capitan.bottle.tar.gz
==> Caveats
OPAM uses ~/.opam by default for its package database, so you need to
initialize it first by running (as a normal user):
$ opam init
Run the following to initialize your environment variables:
$ eval `opam config env`
To export the needed variables every time, add them to your dotfiles.
* On Bash, add them to `~/.bash_profile`.
* On Zsh, add them to `~/.zprofile` or `~/.zshrc` instead.
Documentation and tutorials are available at https://opam.ocaml.org, or
via "man opam" and "opam --help".
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
==> Summary
🍺 /usr/local/Cellar/opam/1.2.2_2: 30 files, 14.9M
shinji:~ spyder$ 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.
=-=- 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.
In normal operation, OPAM only alters files within ~/.opam.
During this initialisation, you can allow OPAM to add information to two
other files for best results. You can also make these additions manually
if you wish.
If you agree, OPAM will modify:
- ~/.profile (or a file you specify) to set the right environment
variables and to load the auto-completion scripts for your shell (bash)
on startup. Specifically, it checks for and appends the following line:
. /Users/spyder/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
- ~/.ocamlinit to ensure that non-system installations of `ocamlfind`
(i.e. those installed by OPAM) will work correctly when running the
OCaml toplevel. It does this by adding $OCAML_TOPLEVEL_PATH to the list
of include directories.
If you choose to not configure your system now, you can either configure
OPAM manually (instructions will be displayed) or launch the automatic setup
later by running:
opam config setup -a
Do you want OPAM to modify ~/.profile and ~/.ocamlinit?
(default is 'no', use 'f' to name a file other than ~/.profile)
[N/y/f] y
User configuration:
Updating ~/.ocamlinit.
~/.profile is already up-to-date.
Global configuration:
Updating ~/.opam/opam-init/init.sh
Updating ~/.opam/opam-init/init.zsh
Updating ~/.opam/opam-init/init.csh
Updating ~/.opam/opam-init/init.fish
# To setup the new switch in the current shell, you need to run:
eval `opam config env`
shinji:~ spyder$ eval `opam config env`
shinji:~ spyder$ opam update
=-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[default] synchronized from https://opam.ocaml.org
shinji:~ spyder$ opam switch 4.02.3
=-=- Installing compiler 4.02.3 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[default.comp] http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.gz downloaded
Now compiling OCaml. This may take a while, please bear with us...
Done.
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
βˆ— installed base-bigarray.base
βˆ— installed base-ocamlbuild.base
βˆ— installed base-threads.base
βˆ— installed base-unix.base
Done.
# To setup the new switch in the current shell, you need to run:
eval `opam config env`
shinji:~ spyder$ eval $(opam config env)
shinji:~ spyder$ opam pin add -y merlin 'https://github.com/the-lambda-church/merlin.git#reason-0.0.1'
merlin is now git-pinned to https://github.com/the-lambda-church/merlin.git#reason-0.0.1
[merlin] https://github.com/the-lambda-church/merlin.git#reason-0.0.1 updated
[merlin] Installing new package description from https://github.com/the-lambda-church/merlin.git#reason-0.0.1
merlin needs to be installed.
The following actions will be performed:
βˆ— install ocamlbuild 0 [required by cppo]
βˆ— install conf-m4 1 [required by ocamlfind]
βˆ— install conf-which 1 [required by biniou]
βˆ— install ocamlfind 1.6.2 [required by merlin]
βˆ— install easy-format 1.2.0 [required by yojson]
βˆ— install cppo 1.3.2 [required by yojson]
βˆ— install biniou 1.0.12 [required by yojson]
βˆ— install yojson 1.3.2 [required by merlin]
βˆ— install merlin 2.3.1*
===== βˆ— 9 =====
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[default] https://opam.ocaml.org/archives/biniou.1.0.12+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/cppo.1.3.2+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/easy-format.1.2.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/yojson.1.3.2+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/ocamlfind.1.6.2+opam.tar.gz downloaded
[ERROR] The sources of the following couldn't be obtained, aborting:
- merlin.2.3.1
(This may be fixed by running 'opam update')
[NOTE] Pinning command successful, but your installed packages may be out of sync.
shinji:~ spyder$ opam pin add -y merlin_extend 'https://github.com/let-def/merlin-extend.git#reason-0.0.1'
Package merlin_extend does not exist, create as a NEW package ? [Y/n] y
merlin_extend is now git-pinned to https://github.com/let-def/merlin-extend.git#reason-0.0.1
[merlin_extend] https://github.com/let-def/merlin-extend.git#reason-0.0.1 updated
[merlin_extend] Installing new package description from https://github.com/let-def/merlin-extend.git#reason-0.0.1
merlin_extend needs to be installed.
The following actions will be performed:
βˆ— install conf-m4 1 [required by ocamlfind]
βˆ— install ocamlfind 1.6.2 [required by merlin_extend]
βˆ— install merlin_extend 0.2*
===== βˆ— 3 =====
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[ocamlfind] Archive in cache
[ERROR] The sources of the following couldn't be obtained, aborting:
- merlin_extend.0.2
(This may be fixed by running 'opam update')
[NOTE] Pinning command successful, but your installed packages may be out of sync.
shinji:~ spyder$ opam pin add -y reason 'https://github.com/facebook/reason.git#0.0.6'
Package reason does not exist, create as a NEW package ? [Y/n] y
reason is now git-pinned to https://github.com/facebook/reason.git#0.0.6
[reason] https://github.com/facebook/reason.git#0.0.6 updated
[reason] Installing new package description from https://github.com/facebook/reason.git#0.0.6
reason needs to be installed.
The following actions will be performed:
βˆ— install conf-m4 1 [required by ocamlfind]
βˆ— install conf-ncurses 1+system [required by lwt]
βˆ— install ocamlbuild 0 [required by menhir, utop]
βˆ— install ocamlfind 1.6.2 [required by reason]
βˆ— install react 1.2.0 [required by utop]
βˆ— install ppx_tools 5.0+4.02.0 [required by utop]
βˆ— install menhir 20160526 [required by reason]
βˆ— install easy-format 1.2.0 [required by reason]
βˆ— install cppo 1.3.2 [required by utop]
βˆ— install camomile 0.8.5 [required by zed]
βˆ— install base-bytes base [required by re]
βˆ— install ANSITerminal 0.6.5 [required by BetterErrors]
βˆ— install zed 1.4 [required by lambda-term]
βˆ— install re 1.6.1 [required by BetterErrors]
βˆ— install lwt 2.5.2 [required by utop]
βˆ— install BetterErrors 0.0.1 [required by reason]
βˆ— install lambda-term 1.10 [required by utop]
βˆ— install utop 1.19.2 [required by reason]
βˆ— install reason 0.0.5*
===== βˆ— 19 =====
=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
[default] https://opam.ocaml.org/archives/BetterErrors.0.0.1+opam.tar.gz downloaded
[cppo] Archive in cache
[easy-format] Archive in cache
[default] https://opam.ocaml.org/archives/ANSITerminal.0.6.5+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/lambda-term.1.10+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/lwt.2.5.2+opam.tar.gz downloaded
[ocamlfind] Archive in cache
[default] https://opam.ocaml.org/archives/camomile.0.8.5+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/ppx_tools.5.0+4.02.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/menhir.20160526+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/react.1.2.0+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/re.1.6.1+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/zed.1.4+opam.tar.gz downloaded
[default] https://opam.ocaml.org/archives/utop.1.19.2+opam.tar.gz downloaded
[ERROR] The sources of the following couldn't be obtained, aborting:
- reason.0.0.5
(This may be fixed by running 'opam update')
[NOTE] Pinning command successful, but your installed packages may be out of sync.
shinji:~ spyder$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment