Closed cuckys closed 4 years ago
Thanks for posting all the info.
I don't see why it wouldn't work on FreeBSD, though the compiler there is Clang 3.4.1, which is rather old, and I haven't really tried it with such.
It looks like Clang < 3.6 uses a different name for the lzcnt intrinsic, which is a little annoying.
Are you able to test building the node-yencode module from source? You'll need to download the code package and run node-gyp rebuild
in the directory.
If you're able, in the src/common.h file in the node-yencode package, try making the following edit - find:
#if defined(__clang__) && defined(__APPLE__) && __clang_major__ < 9
replace with:
#if defined(__clang__) && ((defined(__APPLE__) && __clang_major__ < 9) || __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 6))
After that, issue node-gyp rebuild
and see if it builds without errors.
If that change works, I can push it and hopefully make it work for you.
Well... I admit my system is a bit outdated. I have tried now building node-yencode but I'm getting a zlib error:
# node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@7.0.0
gyp info using node@10.12.0 | freebsd | x64
gyp info find Python using Python version 2.7.13 found at "/usr/local/bin/python"
gyp http GET https://nodejs.org/download/release/v10.12.0/node-v10.12.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v10.12.0/node-v10.12.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack ZlibError: zlib: invalid distance too far back
gyp ERR! stack at Unzip.write (/usr/local/lib/node_modules/node-gyp/node_modules/minizlib/index.js:148:22)
gyp ERR! stack at Unpack.write (/usr/local/lib/node_modules/node-gyp/node_modules/tar/lib/parse.js:363:19)
gyp ERR! stack at IncomingMessage.ondata (_stream_readable.js:666:20)
gyp ERR! stack at IncomingMessage.emit (events.js:187:15)
gyp ERR! stack at addChunk (_stream_readable.js:283:12)
gyp ERR! stack at readableAddChunk (_stream_readable.js:264:11)
gyp ERR! stack at IncomingMessage.Readable.push (_stream_readable.js:219:10)
gyp ERR! stack at HTTPParser.parserOnBody (_http_common.js:122:22)
gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:441:20)
gyp ERR! stack at TLSSocket.emit (events.js:182:13)
gyp ERR! System FreeBSD 10.3-STABLE
gyp ERR! command "/usr/local/bin/node" "/usr/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/home/msam/node-yencode-1.1.1
gyp ERR! node -v v10.12.0
gyp ERR! node-gyp -v v7.0.0
gyp ERR! not ok
I haven't seen that one before. I did a search, and found this issue which seems to pertain to FreeBSD and Node version 10. I don't know your exact configuration, but perhaps try some of the suggestions there, to see if it helps.
I just want to point out that I have now successfully installed it along with parpar without any issues after I finally updated my system. Thanks.
Thanks for the information!
I'm trying to install it on a FreeBSD server but I'm getting the following error(s). Not sure if it is actually supported on FreeBSD