This is a migrated thread and some comments may be shown as answers.

appbuilder install failing on Linux Mint 17.1 Rebecca

2 Answers 57 Views
Command-Line Interface
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 31 Mar 2015, 10:04 PM
Hi,

I cannot get the 'npm install appbuilder -g' command to run successfully.

I've satisfied the prerequisites by 

(1) Installing node version 0.10.38 (I used nvm rather than npm)
(2) Installing runtime libraries via 'sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386'

Error is below.

Thanks, David.

--
make: Entering directory `/home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ref/build'
  CXX(target) Release/obj.target/binding/src/binding.o
make: g++: Command not found
make: *** [Release/obj.target/binding/src/binding.o] Error 127
make: Leaving directory `/home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ref/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/david/.nvm/v0.10.38/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-37-generic
gyp ERR! command "node" "/home/david/.nvm/v0.10.38/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ref
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 
Build failed
npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css

> ffi@1.2.7 install /home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ffi
> node ./build.js

make: Entering directory `/home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ffi/build'
  CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
../deps/libffi/src/closures.c: In function ‘dlmmap_locked’:
../deps/libffi/src/closures.c:421:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
       ftruncate (execfd, offset);
                 ^
../deps/libffi/src/closures.c:433:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
       ftruncate (execfd, offset);
                 ^
  CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
../deps/libffi/src/x86/ffi64.c: In function ‘classify_argument’:
../deps/libffi/src/x86/ffi64.c:181:18: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body]
    FFI_ASSERT (0);
                  ^
  CC(target) Release/obj.target/ffi/deps/libffi/src/x86/unix64.o
  CC(target) Release/obj.target/ffi/deps/libffi/src/x86/sysv.o
  AR(target) Release/obj.target/deps/libffi/libffi.a
  COPY Release/libffi.a
  CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
make: g++: Command not found
make: *** [Release/obj.target/ffi_bindings/src/ffi.o] Error 127
make: Leaving directory `/home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ffi/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/david/.nvm/v0.10.38/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-37-generic
gyp ERR! command "node" "/home/david/.nvm/v0.10.38/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/david/.nvm/v0.10.38/lib/node_modules/appbuilder/node_modules/ffi
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok 
Build failed

npm ERR! ref@0.3.5 install: `node ./build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ref@0.3.5 install script.
npm ERR! This is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls ref
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/home/david/.nvm/v0.10.38/bin/node" "/home/david/.nvm/v0.10.38/bin/npm" "install" "appbuilder" "-g"
npm ERR! cwd /home/david
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE

2 Answers, 1 is accepted

Sort by
0
Accepted
Zdravko
Telerik team
answered on 01 Apr 2015, 01:31 PM
Hello David,

Thank you for reaching out to us.
We think that you don't have a compiler on your side so we suggest using the commands below and then try installing the CLI again:

sudo apt-get install g++
npm install -g node-gyp
npm install appbuilder -g

Please get back to us if the issue remains and let us know the output.

Regards,
Zdravko
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
David
Top achievements
Rank 1
answered on 01 Apr 2015, 07:55 PM
Thank you for the quick response.

That resolved my issue.
Tags
Command-Line Interface
Asked by
David
Top achievements
Rank 1
Answers by
Zdravko
Telerik team
David
Top achievements
Rank 1
Share this question
or