justadudewhohacks/face-recognition.js

no install in ubuntu 18.04 node 10.13.0

Closed this issue · 1 comments

OS ubuntu 18.04
node: 10.13.0
npm: 6.4.1

This is the output of the terminal

npm install --save face-recognition

bcrypt@3.0.2 install /mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/bcrypt
node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download
[bcrypt] Success: "/mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote

dlib-build@0.1.1 install /mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/dlib-build
node ./install.js

executing: git --version
executing: cmake --version
executing: mkdir -p dlib
executing: mkdir -p build
executing: rm -rf dlib
spawning: git [ 'clone',
'--progress',
'https://github.com/davisking/dlib.git' ]
Cloning into 'dlib'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 46714 (delta 0), reused 1 (delta 0), pack-reused 46708
Receiving objects: 100% (46714/46714), 21.92 MiB | 467.00 KiB/s, done.
Resolving deltas: 100% (32823/32823), done.
Checking out files: 100% (2137/2137), done.
spawning: git [ 'checkout', 'tags/v19.8', '-b', 'v19.8' ]
Switched to a new branch 'v19.8'
spawning: cmake [ '/mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/dlib-build/dlib/dlib' ]
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
CMake Error in CMakeLists.txt:
No CMAKE_CXX_COMPILER could be found.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/dlib-build/dlib/build/CMakeFiles/CMakeOutput.log".
See also "/mnt/c/_Projects/URPAY/urpay_ws_middleware/node_modules/dlib-build/dlib/build/CMakeFiles/CMakeError.log".
child process exited with code 1
npm WARN urpay_ws_middleware@1.2.4 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dlib-build@0.1.1 install: node ./install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dlib-build@0.1.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2018-11-07T14_01_47_754Z-debug.log

I discovered the problem.

I had not installed some packages for the build

apt-get install build-essential
apt-get install python

Sorry for any inconvenience.