Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation error #10

Open
j8jacobs opened this issue May 15, 2018 · 7 comments
Open

installation error #10

j8jacobs opened this issue May 15, 2018 · 7 comments

Comments

@j8jacobs
Copy link

Trying to just install rocks db but getting the following error:

In file included from ../rocksdb.cc:3:0:
../DBNode.h:5:24: fatal error: rocksdb/db.h: No such file or directory
#include "rocksdb/db.h"

using node v9.11.1 on a linux ami instance. Rocksdb is properly configured (i can use the ldb command and can create a db, etc) but not sure why there error is happening.

The api looks great and would love to use it, looking forward to a response

@adamjabone
Copy link

adamjabone commented Sep 4, 2018

Same here.

@adamjabone
Copy link

 npm install -g rocksdb-node
> [email protected] install C:\Users\ja1\AppData\Roaming\npm\node_modules\rocksdb-node
> node-gyp rebuild


C:\Users\ja1\AppData\Roaming\npm\node_modules\rocksdb-node>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  rocksdb.cc
  PutWorker.cc
  GetWorker.cc
  DeleteWorker.cc
  OptionsHelper.cc
  Iterator.cc
  Snapshot.cc
  Batch.cc
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\PutWorker.h(5): fatal error C1083: Cannot open include file:
 'rocksdb/db.h': No such file or directory (compiling source file ..\PutWorker.cc) [C:\Users\ja1\AppData\Roaming\npm\no
de_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\DBNode.h(5): fatal error C1083: Cannot open include file: 'r
ocksdb/db.h': No such file or directory (compiling source file ..\rocksdb.cc) [C:\Users\ja1\AppData\Roaming\npm\node_mo
dules\rocksdb-node\build\rocksdb.vcxproj]
..\Iterator.cc(3): fatal error C1083: Cannot open include file: 'rocksdb/db.h': No such file or directory [C:\Users\ja1
\AppData\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
..\Snapshot.cc(3): fatal error C1083: Cannot open include file: 'rocksdb/db.h': No such file or directory [C:\Users\ja1
\AppData\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\DeleteWorker.h(5): fatal error C1083: Cannot open include fi
le: 'rocksdb/db.h': No such file or directory (compiling source file ..\DeleteWorker.cc) [C:\Users\ja1\AppData\Roaming\
npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\GetWorker.h(5): fatal error C1083: Cannot open include file:
 'rocksdb/db.h': No such file or directory (compiling source file ..\GetWorker.cc) [C:\Users\ja1\AppData\Roaming\npm\no
de_modules\rocksdb-node\build\rocksdb.vcxproj]
..\Batch.cc(3): fatal error C1083: Cannot open include file: 'rocksdb/db.h': No such file or directory [C:\Users\ja1\Ap
pData\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\OptionsHelper.h(5): fatal error C1083: Cannot open include f
ile: 'rocksdb/db.h': No such file or directory (compiling source file ..\OptionsHelper.cc) [C:\Users\ja1\AppData\Roamin
g\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
  FileWriter.cc
  DBNode.cc
  DBWithTTL.cc
  CompactRangeWorker.cc
  MultiGetWorker.cc
  win_delay_load_hook.cc
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\MultiGetWorker.h(5): fatal error C1083: Cannot open include
file: 'rocksdb/db.h': No such file or directory (compiling source file ..\MultiGetWorker.cc) [C:\Users\ja1\AppData\Roam
ing\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\CompactRangeWorker.h(5): fatal error C1083: Cannot open incl
ude file: 'rocksdb/db.h': No such file or directory (compiling source file ..\CompactRangeWorker.cc) [C:\Users\ja1\AppD
ata\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
c:\users\ja1\appdata\roaming\npm\node_modules\rocksdb-node\DBNode.h(5): fatal error C1083: Cannot open include file: 'r
ocksdb/db.h': No such file or directory (compiling source file ..\DBNode.cc) [C:\Users\ja1\AppData\Roaming\npm\node_mod
ules\rocksdb-node\build\rocksdb.vcxproj]
..\DBWithTTL.cc(4): fatal error C1083: Cannot open include file: 'rocksdb/db.h': No such file or directory [C:\Users\ja
1\AppData\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
..\FileWriter.cc(3): fatal error C1083: Cannot open include file: 'rocksdb/db.h': No such file or directory [C:\Users\j
a1\AppData\Roaming\npm\node_modules\rocksdb-node\build\rocksdb.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258: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 Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\ja1\AppData\Roaming\npm\node_modules\rocksdb-node
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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!     C:\Users\ja1\AppData\Roaming\npm-cache\_logs\2018-09-04T10_27_56_848Z-debug.log

@sharonass
Copy link

I cannot install it also,having same problem
node v8.10.0
npm v3.5.2

@sharonass
Copy link

Any update About this issue?

@adamjabone
Copy link

adamjabone commented Jan 9, 2019 via email

@All4nXp
Copy link

All4nXp commented Nov 7, 2019

Hello, still nothing?

@dcolley
Copy link

dcolley commented Jun 2, 2022

on ubuntu, this seems to work for me

sudo apt install python2
nvm install 9
sudo apt install librocksdb-dev
PYTHON=/usr/bin/python2 npm install --save rocksdb-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants