[FreeBSD/MyDevil.net] fatal error: 'vips/vips8' file not found

  • During installation of NodeBB i got that error:

    ERR! sharp FreeBSD systems require manual installation of libvips >= 8.7.0
    ERR! sharp Please see http://sharp.pixelplumbing.com/page/install
    gmake: Wejście do katalogu '/usr/home/artur9010/domains/mydomain.com/public_nodejs/node_modules/sharp/build'
      TOUCH Release/obj.target/libvips-cpp.stamp
      CXX(target) Release/obj.target/sharp/src/common.o
    ../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
    #include <vips/vips8>
    1 error generated.
    gmake: *** [sharp.target.mk:124: Release/obj.target/sharp/src/common.o] Błąd 1
    gmake: Opuszczenie katalogu '/usr/home/artur9010/domains/mydomain.com/public_nodejs/node_modules/sharp/build'
    gyp ERR! build error
    gyp ERR! stack Error: `gmake` 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 ChildProcess.emit (events.js:182:13)
    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:239:12)
    gyp ERR! System FreeBSD 11.2-RELEASE-p2
    gyp ERR! command "/usr/local/devil/node10/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd /usr/home/artur9010/domains/mydomain.com/public_nodejs/node_modules/sharp
    gyp ERR! node -v v10.9.0
    gyp ERR! node-gyp -v v3.7.0
    gyp ERR! not ok
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! sharp@0.21.0 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the sharp@0.21.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!     /home/artur9010/.npm/_logs/2018-12-16T02_48_16_150Z-debug.log

    debug.log: https://gist.github.com/artur9010/293deed43cb2cf231f2c1c595ce78b98

  • Global Moderator Plugin & Theme Dev

    Did you actually read the error message? It's pretty clear that you will have to install libvips yourself some you're using freebsd

  • You can find some instructions on how to get it running here: http://sharp.dimens.io/en/stable/install/

    You'll also need to install node8 (node10 doesn't work), npm-node8, egl and gcc5 via pkg install to successfully run the compilation of vips. Secondly you might need to add some symlinks for python (link it to python2.7; better link all the other python executables as well) and vips8 (link it to vips-8.7 in /usr/local/bin/. If the vips compilation fails in the end (can take hours) then it might still be sufficiently working for nodeBB, give it a try!

    sharp itself is the package which is breaking the ./nodeBB start on FreeBSD (in my case v11.2). If you didn't fix the sharp installation before running ./nodeBB setup you might need to run npm install sharp in the nodeBB installation folder.

  • Unfortunately the old link is not available anymore, but I found the new instructions here: http://sharp.pixelplumbing.com/en/stable/install/#freebsd

    Just in case that it's going down again, here are the short instructions which are missing in the FreeBSD install documentation of NodeBB ( https://docs.nodebb.org/installing/os/freebsd/ )

    pkg install -y pkgconf vips
    cd /usr/ports/graphics/vips/ && make install clean

    I had to add DISABLE_VULNERABILITIES=yes to the end of the last command, because of some outdated dependency in the port. AFAIK the vips package is only used during installation or upgrade of NodeBB, so that shouldn't be any security issue.

Suggested Topics

| |