reason-cli icon indicating copy to clipboard operation
reason-cli copied to clipboard

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

Open desmond-dsouza opened this issue 8 years ago • 4 comments
trafficstars

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

[email protected] 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

[email protected] 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! [email protected] postinstall: ./scripts/performActualInstallAndFixLinks.sh npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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

desmond-dsouza avatar Jun 17 '17 17:06 desmond-dsouza

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 avatar Jun 17 '17 23:06 jordwalke

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.

jordwalke avatar Jun 18 '17 00:06 jordwalke

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

hugo avatar Jun 21 '17 22:06 hugo

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

jordwalke avatar Jun 22 '17 03:06 jordwalke