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

The version of leveldown is too old for FreeBSD #3

Open
dper opened this issue Nov 13, 2014 · 0 comments
Open

The version of leveldown is too old for FreeBSD #3

dper opened this issue Nov 13, 2014 · 0 comments

Comments

@dper
Copy link

dper commented Nov 13, 2014

It seems that leveldown is too old to work with FreeBSD. The version right now is, as specified in package.json, ~0.5.0. Support for FreeBSD was added to leveldown in 0.8.2. The relevant code is a line in https://github.com/rvagg/node-leveldown/blob/0.8.2/deps/snappy/snappy.gyp.

 , ['OS=="freebsd"', {'os_include': 'freebsd'}]

In version ~0.5.0, an attempt to install databank-leveldb errors out.

$ cd src/pump.io//node_modules/databank
$ npm install databank-leveldb
npm WARN package.json vows@0.7.0 No repository field.
npm WARN deprecated object-keys@0.2.0: Please update to the latest object-keys
|
> leveldown@0.5.0 install /usr/home/d/src/pump.io/node_modules/databank-leveldb/node_modules/leveldown
> node-gyp rebuild

gyp: Undefined variable os_include in /usr/home/d/src/pump.io/node_modules/databank-leveldb/node_modules/leveldown/deps/snappy/snappy.gyp while loading dependencies of /usr/home/d/src/pump.io/node_modules/databank-leveldb/node_modules/leveldown/deps/leveldb/leveldb.gyp while loading dependencies of binding.gyp while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System FreeBSD 10.0-RELEASE-p1
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/home/d/src/pump.io/node_modules/databank-leveldb/node_modules/leveldown
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 

npm ERR! FreeBSD 10.0-RELEASE-p1
npm ERR! argv "node" "/usr/local/bin/npm" "install" "databank-leveldb"
npm ERR! node v0.10.33
npm ERR! npm  v2.0.2
npm ERR! code ELIFECYCLE
npm ERR! leveldown@0.5.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the leveldown@0.5.0 install script.
npm ERR! This is most likely a problem with the leveldown package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls leveldown
npm ERR! There is likely additional logging output above.

I have not tested anything and don't know whether moving to a new version would introduce other bugs.

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

1 participant