make install fails on solaris 11.1 with permission denied error
Posted: 2016-09-29T09:57:34-07:00
Hi,
I am trying to build imageMagick on Solaris 11.1. I am able to configure (without perl and c++) and make. But, when I do make install as root it is failing with following error
cannot create [Permission denied]
libtool: error: error: relink 'MagickWand/libMagickWand-7.Q16HDRI.la' with the above command before installing it
Here is the make output
libtool: install: /usr/bin/ginstall -c MagickCore/.libs/libMagickCore-7.Q16HDRI.lai /usr/local/lib/libMagickCore-7.Q16HDRI.la
libtool: warning: relinking 'MagickWand/libMagickWand-7.Q16HDRI.la'
libtool: install: (cd /u2/udupa/bar/ImageMagick-7.0.2-10; /bin/sh "/u2/udupa/bar/ImageMagick-7.0.2-10/libtool" --silent --tag CC --mode=relink gcc -std=gnu99 -std=gnu99 -fopenmp -g -O2 -Wall -fexceptions -D_REENTRANT -pthreads -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -no-undefined -export-symbols-regex ".*" 0:0:0 -Wl,-zlazyload -o MagickWand/libMagickWand-7.Q16HDRI.la -rpath /usr/local/lib MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-animate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-compare.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-composite.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-conjure.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-convert.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-deprecate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-display.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-drawing-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-identify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-import.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-cli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-image.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-property.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-mogrify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-montage.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-operation.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-iterator.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-script-token.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-stream.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wandcli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand-view.lo MagickCore/libMagickCore-7.Q16HDRI.la -lSM -lICE -lX11 -lgomp -lm )
/u2/udupa/bar/ImageMagick-7.0.2-10/libtool[1735]: eval[1]: MagickWand/.libs/libMagickWand-7.Q16HDRI.exp: cannot create [Permission denied]
libtool: error: error: relink 'MagickWand/libMagickWand-7.Q16HDRI.la' with the above command before installing it
I am trying to build imageMagick on Solaris 11.1. I am able to configure (without perl and c++) and make. But, when I do make install as root it is failing with following error
cannot create [Permission denied]
libtool: error: error: relink 'MagickWand/libMagickWand-7.Q16HDRI.la' with the above command before installing it
Here is the make output
libtool: install: /usr/bin/ginstall -c MagickCore/.libs/libMagickCore-7.Q16HDRI.lai /usr/local/lib/libMagickCore-7.Q16HDRI.la
libtool: warning: relinking 'MagickWand/libMagickWand-7.Q16HDRI.la'
libtool: install: (cd /u2/udupa/bar/ImageMagick-7.0.2-10; /bin/sh "/u2/udupa/bar/ImageMagick-7.0.2-10/libtool" --silent --tag CC --mode=relink gcc -std=gnu99 -std=gnu99 -fopenmp -g -O2 -Wall -fexceptions -D_REENTRANT -pthreads -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -no-undefined -export-symbols-regex ".*" 0:0:0 -Wl,-zlazyload -o MagickWand/libMagickWand-7.Q16HDRI.la -rpath /usr/local/lib MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-animate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-compare.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-composite.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-conjure.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-convert.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-deprecate.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-display.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-drawing-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-identify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-import.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-cli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-image.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-property.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-magick-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-mogrify.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-montage.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-operation.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-iterator.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-pixel-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-script-token.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-stream.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wandcli.lo MagickWand/MagickWand_libMagickWand_7_Q16HDRI_la-wand-view.lo MagickCore/libMagickCore-7.Q16HDRI.la -lSM -lICE -lX11 -lgomp -lm )
/u2/udupa/bar/ImageMagick-7.0.2-10/libtool[1735]: eval[1]: MagickWand/.libs/libMagickWand-7.Q16HDRI.exp: cannot create [Permission denied]
libtool: error: error: relink 'MagickWand/libMagickWand-7.Q16HDRI.la' with the above command before installing it