Jibo-sdk install fail Mac OS 10.10.5


#1

Just tried, and failed twice at, installing jibo-sdk on Atom.

After first fail, quit all apps and restarted the Mac.

With no other apps running, tried installing jibo-sdk again.

Received install fail error message, again. Complete text of error follows:
Installing “jibo-sdk@1.7.1” failed.Hide output…> electron-prebuilt-reentrant@0.34.1-0 postinstall /private/var/folders/ch/rsz0f_6114b859ml80dnwm240000gp/T/apm-install-dir-116514-834-1lvgq7l/node_modules/jibo-sdk/node_modules/jibo-tools/node_modules/electron-prebuilt-reentrant

node install.js

jibo-tools@2.4.5 postinstall /private/var/folders/ch/rsz0f_6114b859ml80dnwm240000gp/T/apm-install-dir-116514-834-1lvgq7l/node_modules/jibo-sdk/node_modules/jibo-tools
node install.js

Downloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[> ] 0.0% (0 B/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[> ] 0.0% of 5.48 MB (0 B/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[> ] 3.5% of 5.48 MB (190.01 kB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[===> ] 9.5% of 5.48 MB (520.76 kB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[========> ] 20.3% of 5.48 MB (890.11 kB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[===============> ] 35.6% of 5.48 MB (1.3 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[========================> ] 56.6% of 5.48 MB (1.77 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[==================================> ] 77.8% of 5.48 MB (2.13 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[=========================================> ] 94.1% of 5.48 MB (2.29 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[============================================>] 100.0% of 5.48 MB (2.19 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[============================================>] 100.0% of 5.48 MB (2.19 MB/s)
e[1000De[0Ke[1Ae[1000De[0Ke[1Ae[1000De[0KDownloading jibo-nlu-js-v0.10.7-darwin-x64.zip
[============================================>] 100.0% of 5.48 MB (2.19 MB/s)

npm WARN engine escodegen@1.8.0: wanted: {“node”:">=0.12.0"} (current: {“node”:“0.10.40”,“npm”:“2.13.3”})
npm WARN engine gzip-size@3.0.0: wanted: {“node”:">=0.12.0"} (current: {“node”:“0.10.40”,“npm”:“2.13.3”})
npm WARN deprecated graceful-fs@3.0.8: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use ‘npm ls graceful-fs’ to find it in the tree.
npm WARN addRemoteGit git+https://github.com/jiborobot/pixi.js.git#dev resetting remote /Users/larrysilvernail/.atom/.apm/_git-remotes/https-github-com-jiborobot-pixi-js-git-786b02d9 because of error: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm ERR! git clone --template=/Users/larrysilvernail/.atom/.apm/_git-remotes/_templates --mirror https://github.com/jiborobot/pixi.js.git /Users/larrysilvernail/.atom/.apm/_git-remotes/https-github-com-jiborobot-pixi-js-git-786b02d9: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm WARN deprecated wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN engine deep-extend@0.4.1: wanted: {“node”:">=0.12.0",“iojs”:">=1.0.0"} (current: {“node”:“0.10.40”,“npm”:“2.13.3”})
npm WARN engine is-buffer@1.1.3: wanted: {“node”:">=0.12"} (current: {“node”:“0.10.40”,“npm”:“2.13.3”})
npm WARN engine is-buffer@1.1.3: wanted: {“node”:">=0.12"} (current: {“node”:“0.10.40”,“npm”:“2.13.3”})
npm ERR! Darwin 14.5.0
npm ERR! argv “/Applications/Atom.app/Contents/Resources/app/apm/bin/node” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js” “–globalconfig” “/Users/larrysilvernail/.atom/.apm/.apmrc” “–userconfig” “/Users/larrysilvernail/.atom/.apmrc” “install” “/private/var/folders/ch/rsz0f_6114b859ml80dnwm240000gp/T/d-116514-834-1gs64n5/package.tgz” “–target=0.36.8” "–arch=x64"
npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! code 69

npm ERR! Command failed:
npm ERR!
npm ERR! Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
npm ERR!
npm ERR!
npm ERR!
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request:
npm ERR! /private/var/folders/ch/rsz0f_6114b859ml80dnwm240000gp/T/apm-install-dir-116514-834-1lvgq7l/npm-debug.log


#2

Did you re-run as root via sudo?


#3

I am installing from Admin account.

Sorry, but I don’t understand “re-run as root via sudo.”


#4

A user with administrator privilege is not the root user. Your privilege means that you are allowed to access root, but you still aren’t going to be able to perform root actions without specifically invoking a command like sudo or sudo su.

In your terminal, type sudo before the command, then enter your password.


#5

I feel like an idiot, but I have to ask…

Okay, I know how to get to the prompt in Terminal. I scares me however, and I don’t want to cause any damage by proceding in ignorance.

What exactly should I type at the prompt? Just sudo? Or sudo run atom? Or sudo su?

Feeling clueless.


#6

The commands to watch out for as root are things like rm or mv, where one misplaced / could mess up files that other files depend on. The worst thing that can happen when you install something as root is that then it gets chowned to root and you have to give yourself permissions to access it (which is easy, but annoying).

In the terminal, type sudo apm install jibo-sdk.


#7

Actually, you should never use sudo to install an Atom package. You always want all of your Atom stuff to be under your actual user account, not root.

Some Atom packages have binaries that must be compiled when they are installed. The jibo-sdk is one of those packages. In order to compile the binaries that the jibo-sdk needs, you have to have some form of C++ compiler installed and configured. On macOS, the most common one is XCode, which requires you to accept a license agreement before it will launch. You can accept the license agreement by either launching XCode’s UI and following the prompts or accepting the license from the command line by typing in an arcane command that includes sudo.

Just use the XCode UI and accept the license agreement. Then attempt to install the jibo-sdk package again :grinning:


#8

I stand corrected. I have never used Jibo, but it’s not inconceivable that an unscrupulous package maintainer might incorporate root-requiring procedures into the install process, especially for SDKs that expect a binary file to be placed in the global bin folder. It’s not difficult to get around that, but it’s even easier to run the whole procedure as root and then chown and move the relevant files to the user’s directory.


#9

Absolutely. It is a valid strategy in other contexts. We’ve had occasional problems with people installing things with sudo and then wondering why things aren’t working. Permissions issues are a pain to try to diagnose through a message board :laughing:


#10

My guerrilla Linux-learning has involved quite a bit of wondering what the problem is followed by a chown or chmod 755 (or if I’m frustrated, chmod 777), so I understand.