Using Libvips to manipulate images, libvips deployment reference a node. JS Project: Https://github.com/lovell/sharp
The installation was smooth under the Mac, and in the Linux environment (Ubuntu 16.04 LTS) The following issues arose:
# pkg-config --cflags vips vips vips vipsPackage vips was not found in the pkg-config search path.Perhaps you should add the directory containing `vips.pc‘to the PKG_CONFIG_PATH environment variableNo package ‘vips‘ found
First run vips -v
to see if libvips installed successfully, if the installation is not a problem, it may be the PKG_CONFIG_PATH
environment variable problem, run to printenv PKG_CONFIG_PATH
see the specific path, in My computer, then unexpectedly is empty, of course, will not find libvips.
Referring to this problem reset PKG_CONFIG_PATH
, I added a few more paths, and finally:
export PKG_CONFIG_PATH=/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig
Ubuntu 16.04 LTS Installation libvips appears "Package VIPs is not found in the Pkg-config search path"