Ran into a bunch of errors when trying to install the mobile dev sdk

Here is the output of my command line, starting with not finding libffi:

/Users/aapter/Downloads/sdk # ./install
Command arguments:

SUGAR_MOBILE_SDK_HOME = /usr/local/developer/mobile-sdk
SDK_PATH = /Users/aapter/Downloads/sdk/sdk
generate app-path = ''
check-reqs-common started from "/Users/aapter/Downloads/sdk/sdk/sdk/check-reqs-common"

nvm 0.34.0

yarn: 1.16.0

xcodebuild command found
Xcode 10.2.1
Build version 10E1001

brew: Homebrew 2.1.7
Homebrew/homebrew-core (git revision cb1e5; last commit 2019-07-11)

pkg-config 0.29.2

librsvg 2.44.14_1

check-reqs-common passed

Preparing SDK...

Copying /Users/aapter/Downloads/sdk/sdk into /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2...

Installing SDK node modules in /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2 ...

Found '/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/.nvmrc' with version <10.15.0>
v10.15.0 is already installed.
Now using node v10.15.0 (npm v6.4.1)
yarn install v1.16.0
[1/4]    Resolving packages...
[2/4]    Fetching packages...
[3/4]    Linking dependencies...
warning "stylelint > postcss-html@0.11.0" has unmet peer dependency "postcss-sass@>=0.2.0".
[4/4]    Building fresh packages...
warning Error running install script for optional dependency: "/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/node_modules/librsvg: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/node_modules/librsvg
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/node_modules/librsvg/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/aapter/.node-gyp/10.15.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/aapter/.node-gyp/10.15.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/aapter/.node-gyp/10.15.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/node_modules/librsvg',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libffi', required by 'gobject-2.0', not found
gyp: Call to 'PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig pkg-config --cflags librsvg-2.0 cairo-png cairo-pdf cairo-svg' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command \"/Users/aapter/.nvm/versions/node/v10.15.0/bin/node\" \"/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"rebuild\"
gyp ERR! cwd /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/node_modules/librsvg
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok"
info This module is OPTIONAL, you can safely ignore this error
✨ Done in 86.95s.
yarn install v1.16.0
[1/5]    Validating package.json...
[2/5]    Resolving packages...
[3/5]    Fetching packages...
warning store@1.3.20: The engine "browser" appears to be invalid.
[4/5]    Linking dependencies...
[5/5]    Building fresh packages...
warning Error running install script for optional dependency: "/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents: Command failed.
Exit code: 1
Command: node install
Arguments:
Directory: /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents
Output:
node-pre-gyp info it worked if it ends with ok
node-pre-gyp info using node-pre-gyp@0.6.39
node-pre-gyp info using node@10.15.0 | darwin | x64
node-pre-gyp info check checked for \"/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" (not found)
node-pre-gyp http GET https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp http 404 https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.15.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.1.3/fse-v1.1.3-node-v64-darwin-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for fsevents@1.1.3 and node@10.15.0 (node-v64 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
gypgyp info it worked if it ends with ok
info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gypgyp infoinfo okok

gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info spawn /usr/bin/python
gyp info spawn args [ '/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gypgyp info spawn /usr/bin/python
info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info gypspawn args 'make',
gypinfo info spawn argsspawn args [ '/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
'-I',
gypgyp infoinfo spawn argsspawn args 'binding.gyp',
'/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/build/config.gypi',
gypgyp infoinfo spawn argsspawn args '-I',
gyp '-f',
infogyp info spawn argsspawn args 'make',
'/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/aapter/.node-gyp/10.15.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/aapter/.node-gyp/10.15.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn argsgyp '-Dnode_lib_file=/Users/aapter/.node-gyp/10.15.0/<(target_arch)/node.lib',
gyp info infospawn args '-Dmodule_root_dir=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents',
spawn argsgyp '-I',
gypinfo info spawn args '/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/Users/aapter/.node-gyp/10.15.0/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/Users/aapter/.node-gyp/10.15.0',
gyp info spawn args '-Dnode_gyp_dir=/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/Users/aapter/.node-gyp/10.15.0/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info ok
gyp info ok
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info it worked if it ends with ok
gyp info using node-gyp@3.8.0
gyp info using node@10.15.0 | darwin | x64
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:169:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:162:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:839:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:854:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:169:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:869:18: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:162:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:1478:31: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
return scope.Escape(node::MakeCallback(
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:176:1: note: 'MakeCallback' has been explicitly marked deprecated here
NODE_DEPRECATED(\"Use MakeCallback(..., async_context)\",
^
/Users/aapter/.node-gyp/10.15.0/include/node/node.h:91:20: note: expanded from macro 'NODE_DEPRECATED'
__attribute__((deprecated(message))) declarator
^
4 warnings generated.
4 warnings generated.
rm: ./Release/.deps/Release/obj.target/fse/fsevents.o.d.raw: No such file or directory
make: *** [Release/obj.target/fse/fsevents.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! SOLINK_MODULE(target) Release/fse.node
stack at ChildProcess.onExit (/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command \"/Users/aapter/.nvm/versions/node/v10.15.0/bin/node\" \"/Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js\" \"build\" \"--fallback-to-build\" \"--module=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node\" \"--module_name=fse\" \"--module_path=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64\"
gyp ERR! cwd /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents
gyp ERR! node -v v10.15.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/aapter/.nvm/versions/node/v10.15.0/bin/node /Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:962:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
node-pre-gyp ERR! System Darwin 18.6.0
node-pre-gyp ERR! command \"/Users/aapter/.nvm/versions/node/v10.15.0/bin/node\" \"/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/node_modules/node-pre-gyp/bin/node-pre-gyp\" \"install\" \"--fallback-to-build\"
node-pre-gyp ERR! cwd /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents
node-pre-gyp ERR! node -v v10.15.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
Failed to execute '/Users/aapter/.nvm/versions/node/v10.15.0/bin/node /Users/aapter/.nvm/versions/node/v10.15.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node --module_name=fse --module_path=/usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64' (1)
COPY /usr/local/developer/mobile-sdk/8.0.502-1.4.2-2/sidecar/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node
TOUCH Release/obj.target/action_after_build.stamp
gyp info ok"
info This module is OPTIONAL, you can safely ignore this error
✨ Done in 26.79s.

I tried  export KG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig" but that didn't work.

Parents Reply Children