Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save couchemar/1600efb631bb0f3147d3dc5dd08ebc51 to your computer and use it in GitHub Desktop.

Select an option

Save couchemar/1600efb631bb0f3147d3dc5dd08ebc51 to your computer and use it in GitHub Desktop.
NixOS reason-cli problems
$ nix-shell -p nodejs-8_x
$ npm config set prefix=`pwd`/node_modules
$ npm install -g reason-cli@3.1.0-linux
/home/andrey/develop/tmp/node_modules/bin/rtop -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/rtop
/home/andrey/develop/tmp/node_modules/bin/ocamlmerlin-reason -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/ocamlmerlin-reason
/home/andrey/develop/tmp/node_modules/bin/ocamlmerlin -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/ocamlmerlin
/home/andrey/develop/tmp/node_modules/bin/utop -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/utop
/home/andrey/develop/tmp/node_modules/bin/reopt -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/reopt
/home/andrey/develop/tmp/node_modules/bin/refmttype -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/refmttype
/home/andrey/develop/tmp/node_modules/bin/rebuild -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/rebuild
/home/andrey/develop/tmp/node_modules/bin/refmt -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/refmt
/home/andrey/develop/tmp/node_modules/bin/reason-cli-esy-sandbox -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/reason-cli-esy-sandbox
/home/andrey/develop/tmp/node_modules/bin/reactjs_jsx_ppx_v3 -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/reactjs_jsx_ppx_v3
/home/andrey/develop/tmp/node_modules/bin/reactjs_jsx_ppx_v2 -> /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/.bin/reactjs_jsx_ppx_v2
> reason-cli@3.1.0-linux postinstall /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli
> ./bin/esyBuildRelease bin install
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/r/build-eject//bin/get-store-path: line 29: expr: command not found
opam__slash__base_unix-0.0.0-base-f2822328: importing...
esy_ocaml__slash__rtop-3.0.5-027fd798: importing...
ocaml-4.2.3004-490319bf: importing...
opam__slash__lwt___react-1.1.0-437dd0cc: importing...
esy_ocaml__slash__merlin-3.0.5003-4cb5d7b5: importing...
opam__slash__camomile-0.8.7-d1052710: importing...
opam__slash__base_bytes-0.0.0-base-3e6fd7e7: importing...
esy_ocaml__slash__rebuild-3.0.5-1876fc25: importing...
opam__slash__easy_format-1.3.1-9628815b: importing...
opam__slash__base_threads-0.0.0-base-77e1ea07: importing...
opam__slash__base_unix-0.0.0-base-f2822328: done
opam__slash__jbuilder-1.0.0-beta18-181cd3bd: importing...
opam__slash__merlin_extend-0.3.0-bcf19216: importing...
opam__slash__menhir-20171013.0.0-7bc2383c: importing...
opam__slash__ocamlbuild-0.11.0-b4652c35: importing...
opam__slash__react-1.2.1-cc0b95d4: importing...
opam__slash__biniou-1.2.0-d256fc07: importing...
opam__slash__lambda_term-1.12.0-be4ef49a: importing...
opam__slash__ocamlfind-1.7.3--1-d98b7946: importing...
opam__slash__ppx___tools___versioned-5.1.0-b6a8a823: importing...
opam__slash__base_bytes-0.0.0-base-3e6fd7e7: done
esy_ocaml__slash__reason-3.1.0-006e922c: importing...
opam__slash__lwt-3.2.1-8c3dcc80: importing...
reason_cli-3.1.0-9a8fab5a: importing...
opam__slash__ocaml_migrate_parsetree-1.0.7-f01a7e62: importing...
opam__slash__result-1.2.0-727c6c3e: importing...
opam__slash__result-1.3.0-d47798dd: importing...
opam__slash__base_threads-0.0.0-base-77e1ea07: done
opam__slash__ocamlbuild-0.11.0-b4652c35: done
opam__slash__zed-1.6.0-0783ff6b: importing...
reason_cli-3.1.0-9a8fab5a: done
opam__slash__yojson-1.4.1-eb05a73f: importing...
opam__slash__utop-2.1.0-5c44d02e: importing...
opam__slash__merlin_extend-0.3.0-bcf19216: done
opam__slash__easy_format-1.3.1-9628815b: done
esy_ocaml__slash__rtop-3.0.5-027fd798: done
opam__slash__lwt___react-1.1.0-437dd0cc: done
opam__slash__result-1.3.0-d47798dd: done
opam__slash__result-1.2.0-727c6c3e: done
esy_ocaml__slash__rebuild-3.0.5-1876fc25: done
opam__slash__react-1.2.1-cc0b95d4: done
opam__slash__jbuilder-1.0.0-beta18-181cd3bd: 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__biniou-1.2.0-d256fc07: done
opam__slash__yojson-1.4.1-eb05a73f: done
opam__slash__lambda_term-1.12.0-be4ef49a: done
opam__slash__ppx___tools___versioned-5.1.0-b6a8a823: done
opam__slash__utop-2.1.0-5c44d02e: done
esy_ocaml__slash__reason-3.1.0-006e922c: done
opam__slash__lwt-3.2.1-8c3dcc80: done
opam__slash__ocaml_migrate_parsetree-1.0.7-f01a7e62: done
opam__slash__camomile-0.8.7-d1052710: done
ocaml-4.2.3004-490319bf: done
opam__slash__ocamlfind-1.7.3--1-d98b7946: done
+ reason-cli@3.1.0-linux
added 1 package in 7.184s
$ ./node_modules/bin/rtop
/home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/3___________________/i/esy_ocaml__slash__rtop-3.0.5-027fd798/bin/rtop: /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/3___________________/i/opam__slash__utop-2.1.0-5c44d02e/bin/utop-full: /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/3___________________/i/ocaml-4.2.3004-490319bf/bin/ocamlrun: bad interpreter: No such file or directory
$ ldd /home/andrey/develop/tmp/node_modules/lib/node_modules/reason-cli/3___________________/i/ocaml-4.2.3004-490319bf/bin/ocamlrun
linux-vdso.so.1 (0x00007ffd6558f000)
libm.so.6 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libm.so.6 (0x00007f834eafc000)
libdl.so.2 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libdl.so.2 (0x00007f834e8f8000)
libpthread.so.0 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libpthread.so.0 (0x00007f834e6da000)
libc.so.6 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/libc.so.6 (0x00007f834e328000)
/lib64/ld-linux-x86-64.so.2 => /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib64/ld-linux-x86-64.so.2 (0x00007f834ee48000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment