Closed bsommardahl closed 6 years ago
I found a work-around by @cirpo at https://github.com/reasonml/reason-cli/issues/43 and managed to get it installed after all. Here's what I did:
byron@ubuntu:/$ cd /usr/lib/node_modules/reason-cli/
byron@ubuntu:/usr/lib/node_modules/reason-cli$ ls
bin deleteFromBinaryRelease _export package.json r.tar.gz
byron@ubuntu:/usr/lib/node_modules/reason-cli$ cd bin
byron@ubuntu:/usr/lib/node_modules/reason-cli/bin$ ls
esyBuildRelease esyConfig.sh esyRuntime.sh realpath.sh
byron@ubuntu:/usr/lib/node_modules/reason-cli/bin$ cd ..
byron@ubuntu:/usr/lib/node_modules/reason-cli$ sudo chown -R $USER r
chown: cannot access 'r': No such file or directory
byron@ubuntu:/usr/lib/node_modules/reason-cli$ ls
bin deleteFromBinaryRelease _export package.json r.tar.gz
byron@ubuntu:/usr/lib/node_modules/reason-cli$ sudo chown -R $USER r.tar.gz
byron@ubuntu:/usr/lib/node_modules/reason-cli$ ls
bin deleteFromBinaryRelease _export package.json r.tar.gz
byron@ubuntu:/usr/lib/node_modules/reason-cli$ sudo ./bin/esyBuildRelease bin install
ocaml-4.2.3004-490319bf: importing...
opam__slash__biniou-1.2.0-d256fc07: importing...
opam__slash__base_bytes-0.0.0-base-3e6fd7e7: importing...
esy_ocaml__slash__rtop-3.0.5-027fd798: importing...
opam__slash__base_threads-0.0.0-base-77e1ea07: importing...
opam__slash__ppx___tools___versioned-5.1.0-b6a8a823: importing...
opam__slash__lwt-3.2.1-8c3dcc80: importing...
esy_ocaml__slash__reason-3.1.0-006e922c: importing...
opam__slash__utop-2.1.0-5c44d02e: importing...
opam__slash__result-1.2.0-727c6c3e: importing...
opam__slash__yojson-1.4.1-eb05a73f: importing...
opam__slash__ocaml_migrate_parsetree-1.0.7-f01a7e62: importing...
opam__slash__ocamlfind-1.7.3--1-d98b7946: importing...
opam__slash__base_unix-0.0.0-base-f2822328: importing...
esy_ocaml__slash__rebuild-3.0.5-1876fc25: importing...
opam__slash__react-1.2.1-cc0b95d4: importing...
opam__slash__camomile-0.8.7-d1052710: importing...
reason_cli-3.1.0-9a8fab5a: importing...
opam__slash__base_bytes-0.0.0-base-3e6fd7e7: done
esy_ocaml__slash__merlin-3.0.5003-4cb5d7b5: importing...
opam__slash__jbuilder-1.0.0-beta18-181cd3bd: importing...
opam__slash__menhir-20171013.0.0-7bc2383c: importing...
opam__slash__easy_format-1.3.1-9628815b: importing...
opam__slash__merlin_extend-0.3.0-bcf19216: importing...
opam__slash__zed-1.6.0-0783ff6b: importing...
opam__slash__result-1.3.0-d47798dd: importing...
opam__slash__lambda_term-1.12.0-be4ef49a: importing...
opam__slash__ocamlbuild-0.11.0-b4652c35: importing...
opam__slash__lwt___react-1.1.0-437dd0cc: importing...
opam__slash__base_unix-0.0.0-base-f2822328: done
opam__slash__base_threads-0.0.0-base-77e1ea07: done
reason_cli-3.1.0-9a8fab5a: done
esy_ocaml__slash__rtop-3.0.5-027fd798: done
opam__slash__result-1.2.0-727c6c3e: done
opam__slash__ocamlbuild-0.11.0-b4652c35: done
opam__slash__merlin_extend-0.3.0-bcf19216: done
opam__slash__easy_format-1.3.1-9628815b: done
opam__slash__result-1.3.0-d47798dd: done
opam__slash__react-1.2.1-cc0b95d4: done
esy_ocaml__slash__rebuild-3.0.5-1876fc25: done
opam__slash__lwt___react-1.1.0-437dd0cc: done
opam__slash__biniou-1.2.0-d256fc07: done
opam__slash__jbuilder-1.0.0-beta18-181cd3bd: done
opam__slash__yojson-1.4.1-eb05a73f: done
opam__slash__zed-1.6.0-0783ff6b: done
esy_ocaml__slash__merlin-3.0.5003-4cb5d7b5: done
opam__slash__menhir-20171013.0.0-7bc2383c: done
opam__slash__utop-2.1.0-5c44d02e: done
opam__slash__lambda_term-1.12.0-be4ef49a: done
opam__slash__ppx___tools___versioned-5.1.0-b6a8a823: done
opam__slash__ocaml_migrate_parsetree-1.0.7-f01a7e62: done
opam__slash__lwt-3.2.1-8c3dcc80: done
esy_ocaml__slash__reason-3.1.0-006e922c: done
opam__slash__camomile-0.8.7-d1052710: done
ocaml-4.2.3004-490319bf: done
opam__slash__ocamlfind-1.7.3--1-d98b7946: done
Feeling sheepish. The reason website offered help right away with this issue: https://github.com/reasonml/reasonml.github.io/pull/157
Lesson learned. Read the documentation.
I'm new to ocaml and reason. I have tried numerous times over the past two days to install the cli, but to no avail. I have tried the installation instructions on VM's with Linux Mint 17 and 18 and finally with Ubuntu 16.04.4. In every case, the error is the same: https://gist.github.com/bsommardahl/97664bd601f8b344174522647ca4130d
I'm hoping someone can see something that I'm missing. Here's some more information about my system config...
glibc
I noticed the following note in the readme.md:
The installation requires glibc >=3.4.21. If you're on macOS, you should be good to go. If you're on Ubuntu, reason-cli requires Ubuntu 16.04. Otherwise the postinstall might fail.
After a fresh install of Ubuntu 16.04.4, the version of glibc seems to be
2.23-0ubuntu10
according to this:node
Node and npm versions are as follows: