reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

Cannot install cli 3.1.0 #71

Closed bsommardahl closed 6 years ago

bsommardahl commented 6 years ago

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:

Package: libc6
Architecture: amd64
Version: 2.23-0ubuntu10
Multi-Arch: same
Priority: required
Section: libs
Source: glibc
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 10953
Depends: libgcc1
Suggests: glibc-doc, debconf | debconf-2.0, locales
Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.23), locales-all (<< 2.23), lsb-core (<= 3.2-27), nscd (<< 2.23)
Replaces: libc6-amd64
Filename: pool/main/g/glibc/libc6_2.23-0ubuntu10_amd64.deb
Size: 2580230
MD5sum: fa06d9e551121f74f6ac5dbbab5f4043
SHA1: a7a25a7cca8aa8420b82b2e8a2d46dcee93f1aca
SHA256: bd05c3487325a4386dee6abb02ad904e1f2d8d3d0adc0df8e8f29168fbe2b5bb
Homepage: http://www.gnu.org/software/libc/libc.html
Description-en: GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on
 the system. This package includes shared versions of the standard C library
 and the standard math library, as well as many others.
Description-md5: fc3001b0b90a1c8e6690b283a619d57f
Task: minimal
Supported: 5y

Package: libc6
Priority: required
Section: libs
Installed-Size: 10947
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Architecture: amd64
Source: glibc
Version: 2.23-0ubuntu3
Replaces: libc6-amd64
Depends: libgcc1
Suggests: glibc-doc, debconf | debconf-2.0, locales
Breaks: hurd (<< 1:0.5.git20140203-1), libtirpc1 (<< 0.2.3), locales (<< 2.23), locales-all (<< 2.23), lsb-core (<= 3.2-27), nscd (<< 2.23)
Filename: pool/main/g/glibc/libc6_2.23-0ubuntu3_amd64.deb
Size: 2583544
MD5sum: eeb2f237384d67accc1998a7c791ead7
SHA1: 2a05d2a1466c7ce169deb4d72096e37874dff70b
SHA256: 68d69a0fb2dae7578a2a7054bc0cd5f0994d523f60d540bc6708ff3f2fb33e18
Description-en: GNU C Library: Shared libraries
 Contains the standard libraries that are used by nearly all programs on
 the system. This package includes shared versions of the standard C library
 and the standard math library, as well as many others.
Description-md5: fc3001b0b90a1c8e6690b283a619d57f
Multi-Arch: same
Homepage: http://www.gnu.org/software/libc/libc.html
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: minimal

node

Node and npm versions are as follows:

byron@ubuntu:~$ node -v
v8.10.0
byron@ubuntu:~$ npm -v
5.6.0
bsommardahl commented 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
bsommardahl commented 6 years ago

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.