During the implementation of RocketChat on a CentOS server, the installation fails on “npm install”. See log below.
- Version of Rocket.Chat Server: 1.1.0
- Operating System: CentOS 6.10
- Deployment Method: Manual installation procedure
- Number of Running Instances: 1
- NodeJS Version: Different version tried with same error
- MongoDB Version: Different version tried with same error
LOG -----------------------------------------------------
[root@SCHAT-1 server]# npm install
npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
fibers@2.0.0 install /opt/Rocket.Chat/programs/server/node_modules/fibers
node build.js || nodejs build.js
linux-x64-57
exists; testing
Problem with the binary; manual build incoming
make: Entering directory /opt/Rocket.Chat/programs/server/node_modules/fibers/build' CXX(target) Release/obj.target/fibers/src/fibers.o In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:83, from /root/.node-gyp/8.16.0/include/node/v8.h:21, from /root/.node-gyp/8.16.0/include/node/node.h:63, from ../src/coroutine.h:1, from ../src/fibers.cc:1: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:146: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In member function ‘virtual void* std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_M_get_deleter(const std::type_info&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:204: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In constructor ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, _Alloc, _Args&& ...)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:861: error: cannot use typeid with -fno-rtti /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h: In function ‘_Del* std::get_deleter(const std::__shared_ptr<_Tp2, _Lp>&)’: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/shared_ptr.h:1005: error: cannot use typeid with -fno-rtti In file included from /root/.node-gyp/8.16.0/include/node/node.h:63, from ../src/coroutine.h:1, from ../src/fibers.cc:1: /root/.node-gyp/8.16.0/include/node/v8.h: At global scope: /root/.node-gyp/8.16.0/include/node/v8.h:335: error: expected unqualified-id before ‘using’ /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::MaybeLocal<T>::MaybeLocal()’: /root/.node-gyp/8.16.0/include/node/v8.h:352: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::IsEmpty() const’: /root/.node-gyp/8.16.0/include/node/v8.h:359: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘bool v8::MaybeLocal<T>::ToLocal(v8::Local<S>*) const’: /root/.node-gyp/8.16.0/include/node/v8.h:367: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal()’: /root/.node-gyp/8.16.0/include/node/v8.h:396: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::Eternal<T>::Eternal(v8::Isolate*, v8::Local<S>)’: /root/.node-gyp/8.16.0/include/node/v8.h:398: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘bool v8::Eternal<T>::IsEmpty() const’: /root/.node-gyp/8.16.0/include/node/v8.h:403: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘bool v8::WeakCallbackInfo<T>::IsFirstPass() const’: /root/.node-gyp/8.16.0/include/node/v8.h:443: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global()’: /root/.node-gyp/8.16.0/include/node/v8.h:777: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::Global<T>::Global(v8::Global<T>&&)’: /root/.node-gyp/8.16.0/include/node/v8.h:802: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘v8::Global<T>& v8::Global<T>::operator=(v8::Global<S>&&)’: /root/.node-gyp/8.16.0/include/node/v8.h:814: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: At global scope: /root/.node-gyp/8.16.0/include/node/v8.h:840: error: expected unqualified-id before ‘using’ /root/.node-gyp/8.16.0/include/node/v8.h:1237: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h:1243: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In constructor ‘v8::RegisterState::RegisterState()’: /root/.node-gyp/8.16.0/include/node/v8.h:1793: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: At global scope: /root/.node-gyp/8.16.0/include/node/v8.h:3263: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: In member function ‘v8::MaybeLocal<v8::Object> v8::Function::NewInstance(v8::Local<v8::Context>) const’: /root/.node-gyp/8.16.0/include/node/v8.h:3904: error: ‘nullptr’ was not declared in this scope /root/.node-gyp/8.16.0/include/node/v8.h: At global scope: /root/.node-gyp/8.16.0/include/node/v8.h:4173: error: function definition does not declare parameters /root/.node-gyp/8.16.0/include/node/v8.h:4227: error: expected unqualified-id before ‘&’ token /root/.node-gyp/8.16.0/include/node/v8.h:4227: error: expected ‘)’ before ‘&’ token /root/.node-gyp/8.16.0/include/node/v8.h:4227: error: expected ‘;’ before ‘&’ token In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ostream_insert.h:36, from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/string:46, from /root/.node-gyp/8.16.0/include/node/v8-platform.h:11, from /root/.node-gyp/8.16.0/include/node/node.h:64, from ../src/coroutine.h:1, from ../src/fibers.cc:1: /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘;’ before end of line /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected unqualified-id before end of line /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected ‘}’ before end of line /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cxxabi-forced.h:29: error: expected declaration before end of line make: *** [Release/obj.target/fibers/src/fibers.o] Error 1 make: Leaving directory
/opt/Rocket.Chat/programs/server/node_modules/fibers/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 2.6.32-754.14.2.el6.x86_64
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” “–release”
gyp ERR! cwd /opt/Rocket.Chat/programs/server/node_modules/fibers
gyp ERR! node -v v8.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment–
Windows + OS X instructions here: GitHub - nodejs/node-gyp: Node.js native addon build tool
Ubuntu users please run: sudo apt-get install g++ build-essential
Alpine users please run: sudo apk add python make g++
sh: nodejs: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! fibers@2.0.0 install: node build.js || nodejs build.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the fibers@2.0.0 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/2019-05-31T14_44_05_833Z-debug.log