Hi,
Got a bit of a weird problem which I can't pin down. I'm trying to set up sharp on Red Hat Enterprise 6 but can't get node to start the app. Any advice would be greatly appreciated, thanks in advance.
> node app.js
module.js:356
Module._extensions[extension](this, filename);
^
Error: libvips.so.38: cannot open shared object file: No such file or directory
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/var/www/testapp/node_modules/sharp/index.js:5:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
The strange thing is libvips.so.38 is exactly where I would expect it to be, /usr/local/lib.
libvips was compiled from source.
A few things I've checked.
ls -la
total 52380
drwxr-xr-x. 5 root root 4096 Aug 15 17:24 .
drwxr-xr-x. 12 root root 4096 Aug 13 12:07 ..
drwxr-xr-x. 3 root root 4096 Aug 15 17:24 gio
drwxr-xr-x. 3 root root 4096 Aug 15 17:24 glib-2.0
-rwxr-xr-x. 1 root root 1080 Aug 15 17:24 libgio-2.0.la
lrwxrwxrwx. 1 root root 22 Aug 15 17:24 libgio-2.0.so -> libgio-2.0.so.0.4102.0
lrwxrwxrwx. 1 root root 22 Aug 15 17:24 libgio-2.0.so.0 -> libgio-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 6132519 Aug 15 17:24 libgio-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 956 Aug 15 17:24 libglib-2.0.la
lrwxrwxrwx. 1 root root 23 Aug 15 17:24 libglib-2.0.so -> libglib-2.0.so.0.4102.0
lrwxrwxrwx. 1 root root 23 Aug 15 17:24 libglib-2.0.so.0 -> libglib-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 3740140 Aug 15 17:24 libglib-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 1009 Aug 15 17:24 libgmodule-2.0.la
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgmodule-2.0.so -> libgmodule-2.0.so.0.4102.0
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 39211 Aug 15 17:24 libgmodule-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 1010 Aug 15 17:24 libgobject-2.0.la
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgobject-2.0.so -> libgobject-2.0.so.0.4102.0
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgobject-2.0.so.0 -> libgobject-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 1205231 Aug 15 17:24 libgobject-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 1004 Aug 15 17:24 libgthread-2.0.la
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgthread-2.0.so -> libgthread-2.0.so.0.4102.0
lrwxrwxrwx. 1 root root 26 Aug 15 17:24 libgthread-2.0.so.0 -> libgthread-2.0.so.0.4102.0
-rwxr-xr-x. 1 root root 8977 Aug 15 17:24 libgthread-2.0.so.0.4102.0
-rw-r--r--. 1 root root 27535512 Aug 15 17:01 libvips.a
-rw-r--r--. 1 root root 2522104 Aug 15 17:01 libvipsCC.a
-rwxr-xr-x. 1 root root 1071 Aug 15 17:01 libvipsCC.la
lrwxrwxrwx. 1 root root 19 Aug 15 17:01 libvipsCC.so -> libvipsCC.so.38.0.3
lrwxrwxrwx. 1 root root 19 Aug 15 17:01 libvipsCC.so.38 -> libvipsCC.so.38.0.3
-rwxr-xr-x. 1 root root 1034249 Aug 15 17:01 libvipsCC.so.38.0.3
-rwxr-xr-x. 1 root root 1031 Aug 15 17:01 libvips.la
lrwxrwxrwx. 1 root root 17 Aug 15 17:01 libvips.so -> libvips.so.38.0.3
lrwxrwxrwx. 1 root root 17 Aug 15 17:01 libvips.so.38 -> libvips.so.38.0.3
-rwxr-xr-x. 1 root root 11349279 Aug 15 17:01 libvips.so.38.0.3
drwxr-xr-x. 2 root root 4096 Aug 15 17:24 pkgconfig
echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/root/bin:/usr/local/lib/
echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
pkg-config --cflags vips
-pthread -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libpng12
pkg-config --libs vips
-pthread -Wl,--export-dynamic -L/usr/local/lib -lvips -lz -lm -lstdc++ -lxml2 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lrt -lpng12 -lglib-2.0
Hi,
Got a bit of a weird problem which I can't pin down. I'm trying to set up sharp on Red Hat Enterprise 6 but can't get node to start the app. Any advice would be greatly appreciated, thanks in advance.
The strange thing is libvips.so.38 is exactly where I would expect it to be, /usr/local/lib.
libvips was compiled from source.
A few things I've checked.