cleanunicorn / mythos

CLI client for the MythX API
https://mythx.io/
20 stars 6 forks source link

Doesn't work on macOS 10.14.6 #45

Closed PaulRBerg closed 5 years ago

PaulRBerg commented 5 years ago

Describe the bug Cannot install with npm.

Expected behavior I should be able to install mythos globally.

Console output

make: Entering directory '/Users/paulrberg/.nvm/versions/node/v10.15.3/lib/node_modules/@cleanunicorn/mythos/node_modules/sha3/build'
  CXX(target) Release/obj.target/sha3/src/addon.o
xcodebuild: error: SDK "macosx10.14" cannot be located.
g++: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx10.14 -find g++ 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
g++: error: unable to find utility "g++", not a developer tool or in PATH
make: *** [sha3.target.mk:127: Release/obj.target/sha3/src/addon.o] Error 72
make: Leaving directory '/Users/paulrberg/.nvm/versions/node/v10.15.3/lib/node_modules/@cleanunicorn/mythos/node_modules/sha3/build'

See the full error output in this gist.

Context information

PaulRBerg commented 5 years ago

Nevermind, I had an issue with my SDKROOT environment variable.

See this thread on StackOverflow for more details.

8secz-johndpope commented 4 years ago

catalina export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk

cleanunicorn commented 4 years ago

@8secz-johndpope is this a fix for macOS?

If that's correct you can create a pull request to change the Readme.

8secz-johndpope commented 4 years ago

yes - need to add ~/.zshrc or bash profile.

It's a reflection of using different xcode / apple os not really concretely to do with mythos.

With Big Sur around the corner - export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.?.sdk