SoftCreatR / imei

IMEI - ImageMagick Easy Install
ISC License
293 stars 35 forks source link

Not installing on new Ubuntu install. #104

Closed DaveFPM closed 9 months ago

DaveFPM commented 9 months ago

Hi,

I have a brand new Ubuntu 22.04 install running on AWS trying to install imei but it fails. Here is the commands I have run:

sudo su
cd
apt-get update
apt-get upgrade -yq
git clone https://github.com/SoftCreatR/imei /imei
/imei/imei.sh --use-checkinstall

And here is the output:

 #################################################
 Welcome to IMEI - ImageMagick Easy Install 6.10.4
 #################################################

 Detected OS     : Ubuntu 22.04.3 LTS
 Detected Arch   : x86_64
 Detected Cores  : 8

 Used web client : curl

 Work Dir        : /usr/local/src/imei
 Build Dir       : /usr/local
 Config Dir      : /usr/local/etc
 Log File        : /var/log/imei-1700438533.log

 Force Build All : no
 Force Build IM  : no
 Checkinstall    : yes
 CI Build        : no
 Signature Check : yes

 #####################
 Installation Process
 #####################

 Installing dependencies       [OK]
 Building aom                  [OK]
 Building libheif              [OK]
 Building jpegxl               [OK]
 Building ImageMagick (Q16)    [OK]
 Verifying installation        [FAILURE]

 Please check /var/log/imei-1700438533.log for details.

 Process has been finished after 4 minutes and 58 seconds!

And the last part of the log:

tail -n20 /var/log/imei-1700438533.log
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jpeg.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jp2.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jp2.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jp2.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jp2.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jp2.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jxl.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jxl.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jxl.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jxl.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/jxl.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/png.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/png.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/png.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/png.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/png.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/ept.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/ept.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/ept.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/ept.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/ept.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/tiff.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/tiff.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/tiff.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/tiff.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/tiff.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/webp.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/webp.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/webp.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/webp.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/webp.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/wmf.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/wmf.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/wmf.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/wmf.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/wmf.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/x.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/x.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/x.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/x.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/x.so
 /bin/bash ./libtool   --mode=uninstall rm -f '/usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/xwd.la'
libtool: uninstall: rm -f /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/xwd.la /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/xwd.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/xwd.so /usr/local/lib/ImageMagick-7.1.1/modules-Q16HDRI/coders/xwd.so
/imei/imei.sh: line 1063: /usr/local/bin/identify: No such file or directory
NuckChorris commented 9 months ago

I'm seeing this as well in my builds:

https://github.com/hummingbird-me/kitsu-server/actions/runs/6843646499/job/18606472589

Here's the IMEI log as a github artifact to help debug:

https://github.com/hummingbird-me/kitsu-server/suites/18124618429/artifacts/1044888058

FWIW if you're not using ffmpeg codecs in ImageMagick you might be able to switch to the AppImage from ImageMagick's website (I can't switch because there's an issue with ffmpeg in the AppImage)

SoftCreatR commented 9 months ago

I wonder, if this could be the issue:

https://github.com/SoftCreatR/imei/blob/main/imei.sh#L1026

Looks like I missed a check here, because an uninstallation (when using checkinstall) is only supposed to happen, if --build-only is set.