sharp: libMagickCore.so.5 and libcfitsio.so.3 missing on upgrade to Ubuntu 15.04

When trying to use sharp on Ubuntu 15.04, I get errors about the absence of libMagickCore.so.5 and libcfitsio.so.3 (maybe because libmagickcore5 isn’t available in 15.04?)

Anyway, I was only able to get it working by linking to the libraries like so:

cd /usr/lib/x86_64-linux-gnu
sudo ln -sf libMagickCore-6.Q16.so libMagickCore.so.5
sudo ln -sf libcfitsio.so libcfitsio.so.3

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

yeah, fixing $PKG_CONFIG_PATH was the solution.

i managed it to crack that problem myself with this:

# michael-heuberger at M1 in ~/binarykitchen/code/videomail.io on git:staging x [18:16:18]
$ echo $PKG_CONFIG_PATH                                                                                                                                     staging 


# michael-heuberger at M1 in ~/binarykitchen/code/videomail.io on git:staging x [18:16:20]
$ locate Wand.pc                                                                                                                                            staging 
/usr/lib/x86_64-linux-gnu/pkgconfig/MagickWand.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/Wand.pc

# michael-heuberger at M1 in ~/binarykitchen/code/videomail.io on git:staging x [18:16:26]
$ export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/                                                                                               staging 

# michael-heuberger at M1 in ~/binarykitchen/code/videomail.io on git:staging x [18:17:42]
$ echo $PKG_CONFIG_PATH                                                                                                                                     staging 
/usr/lib/x86_64-linux-gnu/pkgconfig/

# michael-heuberger at M1 in ~/binarykitchen/code/videomail.io on git:staging x [18:17:45]
$ npm i                                                                                                                                                     staging 
\
> sharp@0.11.1 install /home/michael-heuberger/binarykitchen/code/videomail.io/node_modules/sharp
> node-gyp rebuild

make: Entering directory '/home/michael-heuberger/binarykitchen/code/videomail.io/node_modules/sharp/build'
  CXX(target) Release/obj.target/sharp/src/common.o
  CXX(target) Release/obj.target/sharp/src/metadata.o
  CXX(target) Release/obj.target/sharp/src/operations.o
  CXX(target) Release/obj.target/sharp/src/pipeline.o
  CXX(target) Release/obj.target/sharp/src/sharp.o
  CXX(target) Release/obj.target/sharp/src/utilities.o
  SOLINK_MODULE(target) Release/obj.target/sharp.node
  COPY Release/sharp.node
make: Leaving directory '/home/michael-heuberger/binarykitchen/code/videomail.io/node_modules/sharp/build'
sharp@0.11.1 node_modules/sharp
├── bluebird@2.9.34
├── nan@1.9.0
└── color@0.10.1 (color-convert@0.5.3, color-string@0.3.0)

there is definitely a mess with the pkg configuration …