• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

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

Scheduled Pinned Locked Moved Technical Support
4 Posts 3 Posters 2.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    artur9010
    wrote on last edited by
    #1

    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! [email protected] 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 [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!     /home/artur9010/.npm/_logs/2018-12-16T02_48_16_150Z-debug.log
    

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

    1 Reply Last reply
    0
  • PitaJP Offline
    PitaJP Offline
    PitaJ Global Moderator Plugin & Theme Dev
    wrote on last edited by
    #2

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

    1 Reply Last reply
    1
  • A Offline
    A Offline
    alexschomb
    wrote on last edited by alexschomb
    #3

    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.

    1 Reply Last reply
    0
  • A Offline
    A Offline
    alexschomb
    wrote on last edited by alexschomb
    #4

    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.

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development