reasonml / reason-cli

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

OSX: install (source) fails (but install binary succeeded) #37

Open desmond-dsouza opened 7 years ago

desmond-dsouza commented 7 years ago

Included terminal output, in case it is helpful. Air:~> npm install -g git://github.com/reasonml/reason-cli.git#beta-v-1.13.5 /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocamlc -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocamlc /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocamlrun -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocamlrun /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocamlmerlin-reason -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocamlmerlin-reason /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocaml -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocaml /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocamlopt -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocamlopt /Users/desmond/.nvm/versions/node/v7.10.0/bin/rtop -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/rtop /Users/desmond/.nvm/versions/node/v7.10.0/bin/utop -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/utop /Users/desmond/.nvm/versions/node/v7.10.0/bin/reopt -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/reopt /Users/desmond/.nvm/versions/node/v7.10.0/bin/refmttype -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/refmttype /Users/desmond/.nvm/versions/node/v7.10.0/bin/refmt -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/refmt /Users/desmond/.nvm/versions/node/v7.10.0/bin/reactjs_jsx_ppx -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/reactjs_jsx_ppx /Users/desmond/.nvm/versions/node/v7.10.0/bin/rebuild -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/rebuild /Users/desmond/.nvm/versions/node/v7.10.0/bin/ocamlmerlin -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/ocamlmerlin /Users/desmond/.nvm/versions/node/v7.10.0/bin/berror -> /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/.bin/berror

fastreplacestring@0.0.3 postinstall /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli/node_modules/fastreplacestring g++ -Ofast -o ./.bin/fastreplacestring.exe ./fastreplacestring.cpp

reason-cli@1.7.3 postinstall /Users/desmond/.nvm/versions/node/v7.10.0/lib/node_modules/reason-cli ./scripts/performActualInstallAndFixLinks.sh

esy install v0.21.0-0 info No lockfile found. [1/4] πŸ” Resolving packages... [2/4] 🚚 Fetching packages... β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0/33(node:25037) DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead. (node:25037) DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead. [3/4] πŸ”— Linking dependencies... (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. [4/4] πŸ“ƒ Building fresh packages... (node:25037) DeprecationWarning: Calling an asynchronous function without callback is deprecated. success Saved lockfile. ✨ Done in 21.52s. β—― opam-installer-bin: building from source... β—― substs: building from source... β—‰ substs: build complete β—‰ opam-installer-bin: build complete β—― ocaml: building from source... β—Œ ocaml: build failed, see:

/Users/desmond/.esy/store-3.x.x/_build/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/_esy/build.log

for details make: *** [ocaml.build] Error 1 ./node_modules/.cache/_esy/build-eject: Makefile env node_modules bin findlib.conf.in sandbox.sb.in

./node_modules/.cache/_esy/store: _build _install _insttmp FAILED TO BUILD npm ERR! Darwin 15.6.0 npm ERR! argv "/Users/desmond/.nvm/versions/node/v7.10.0/bin/node" "/Users/desmond/.nvm/versions/node/v7.10.0/bin/npm" "install" "-g" "git://github.com/reasonml/reason-cli.git#beta-v-1.13.5" npm ERR! node v7.10.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1

npm ERR! reason-cli@1.7.3 postinstall: ./scripts/performActualInstallAndFixLinks.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the reason-cli@1.7.3 postinstall script './scripts/performActualInstallAndFixLinks.sh'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the reason-cli package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! ./scripts/performActualInstallAndFixLinks.sh npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs reason-cli npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls reason-cli npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/desmond/.npm/_logs/2017-06-17T16_47_53_275Z-debug.log

jordwalke commented 7 years ago

Glad to hear the binaries work well for you. We made the binary (and pack) release modes to cut out a ton of dependencies. I would be curious to see what's in /Users/desmond/.esy/store-3.x.x/_build/ocaml-4.02.3-90ad951bb234c3b1e1b5a03e3a5a261a84da222c/_esy/build.log

jordwalke commented 7 years ago

If more people continue to report that binaries are stable, we might just switch to binaries being the recommended path to getting started. I'll still keep this issue open to find out why building from source wasn't working.

hugo commented 7 years ago

To add another data point, beta 1.13.6 installs from source on macOS 10.12.6, for me.

jordwalke commented 7 years ago

Thanks, we've since updated the reason-cli readme to point to prebuilt binaries.