LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2020, 04:16 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053

First of all, try to identify your image like this:
Code:
/usr/bin/identify-im6 1.jpeg
That should work!
If it does, you can either modify your PATH to put /usr/local/bin behind /usr/bin, or delete your wild imagemagick install in /usr/local (although if you don't remember how it got there in the first place...).

I posted a wrong command earlier.
Try this instead:
Code:
apt search imagemagick|grep nstalled
for each package you get, do
Code:
dpkg -L package
and make sure it has nothing in /usr/local, or if it does, show us.

PS: when's the last time you did a succesful system upgrade?
 
Old 05-30-2020, 01:02 PM   #17
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Did you at any point compile imagemagick yourself, or install it with something other than apt, apt-get, dpkg or graphical package manager?
Looking at my history it appears that I did compile it. I was following instructions I found on some forum somewhere. Here is my history for everything related to Imagemagick:

Code:
   71  wget https://www.imagemagick.org/download/ImageMagick.tar.gz
   72  tar xvzf ImageMagick.tar.gz
   73  cd ImageMagick-7.0.8-26/
   74  ls
   75  cd ImageMagick-7.0.10-0
   76  ./configure
   77  make
   78  sudo make install 
   79  sudo ldconfig /usr/local/lib
   80  magick -version
   81  cd ..
   82  sudo apt-get install nautilus-image-converter
  136  ls
  518  sudo tar xvfz ImageMagick-6.6.9-5.tar.gz
  519  cd ImageMagick-6.6.9-5

  540  sudo apt remove --purge imagemagick

  570  sudo apt remove --purge imagemagick
  571  sudo apt install imagemagick

  579  imagemagick

  591  tar xvfz ImageMagick-6.6.9-5.tar.gz
  592  sudo tar xvfz ImageMagick-6.6.9-5.tar.gz
  593  cd ImageMagick-6.6.9-5
  594  export CPPFLAGS=-I/usr/local/include
  595  export LDFLAGS=-L/usr/local/lib
  596  sudo ./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
  597  sudo make
  598  sudo make install
  599  sudo LD_LIBRARY_PATH=/usr/local/lib
  600  sudo export $LD_LIBRARY_PATH
  601  export $LD_LIBRARY_PATH
  602  export LD_LIBRARY_PATH=/usr/local/lib 

  613  sudo apt remove --purge imagemagick
  614  sudo apt remove --purge Imagemagick
  615  convert --version
  616  sudo apt remove --purge ImageMagick
  617  sudo apt-get remove imagemagick
  619  sudo apt-get remove imagemagick

  630  wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
  631  tar xvfz ImageMagick.tar.gz
  632  cd ImageMagick-*
  633  sudo ./configure --disable-shared
  634  sudo make
  635  sudo make install
  636  zypper install ImageMagick-devel-32bit
  637  sudo apt install zypper
  638  zypper install ImageMagick-devel-32bit
  639  sudo zypper install ImageMagick-devel-32bit
  640  sudo yum install ImageMagick-devel
  641  sudo apt install yum
  642  sudo yum install ImageMagick-devel
  643  yum-config-manager --enable <repo>
  644  yum repolist all
  645  convert -version
  646  cd /usr/local
  647  cd src
  648  ls
  649  cd ImageMagick-6.6.9-5
  650  history
  651  sudo apt remove --purge imagemagick
  652  sudo apt-get purge imagemagick\*
  653  convert -version
  654  sudo apt-get autoremove imagemagick
  655  convert -version
  656  make uninstall
  657  rpmbuild --rebuild ImageMagick.src.rpm
  658  rpm -ivh ImageMagick-7.0.10-?.*.rpm
  659  sudo make uninstall
  660  make clean
  661  free
  662  sensors
  663  sudo apt-get install imagemagick
  664  convert -version
  665  history
  666  sudo apt remove --purge imagemagick
  667  convert -version
  668  sudo apt-get install imagemagick

  687  sudo apt-get install imagemagick
 
Old 05-30-2020, 01:19 PM   #18
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
You do understand that apt remove can only remove installed .deb packages? APT knows nothing about software that was installed with make install or rpm -i or zypper install or whatever else of package management tools you tried. BTW, please don't do this anymore. Installing software on Ubuntu with non-native package managers is a recipe for disaster.

Software that was built from source and installed with make install should be uninstalled with
Quote:
Originally Posted by Tem2 View Post
Code:
  656  make uninstall
As ondoho said above, please show the contents of /usr/local/bin.

Last edited by shruggy; 05-30-2020 at 02:28 PM.
 
Old 05-30-2020, 01:44 PM   #19
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
You do understand that apt remove can only remove packages that were installed with apt install? APT knows nothing about software that was installed with make install or rpm -i or zypper install or whatever else of package management tools you tried. BTW, please don't do this anymore. Installing software on Ubuntu with non-native package managers is a recipe for disaster.

Software that was built from source and installed with make install should be uninstalled with

As ondoho said above, please show the contents of /usr/local/bin.
I admit that I don't know what I'm doing. I find things online and follow them blindly sometimes. I never know what is dangerous or potentially problematic or harmless. Live and learn?

Code:
master@master-Latitude-E6400:/usr/local/bin$ ls -l
total 12208
lrwxrwxrwx 1 root root        6 May 26 18:27 animate -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 compare -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 composite -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 conjure -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 convert -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 display -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 identify -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 import -> magick
-rwxr-xr-x 1 root root 12475012 May 26 18:27 magick
-rwxr-xr-x 1 root root     1303 May 26 18:09 Magick-config
-rwxr-xr-x 1 root root     1313 May 26 18:27 Magick++-config
-rwxr-xr-x 1 root root     1483 May 26 18:27 MagickCore-config
lrwxrwxrwx 1 root root        6 May 26 18:27 magick-script -> magick
-rwxr-xr-x 1 root root     1292 May 26 18:27 MagickWand-config
lrwxrwxrwx 1 root root        6 May 26 18:27 mogrify -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 montage -> magick
lrwxrwxrwx 1 root root        6 May 26 18:27 stream -> magick
-rwxr-xr-x 1 root root     1311 May 26 18:09 Wand-config
master@master-Latitude-E6400:/usr/local/bin$
 
Old 05-30-2020, 01:54 PM   #20
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Ok. So, you have installed a locally built version of ImageMagick. Then try what ondoho suggested in #16.
 
Old 05-30-2020, 02:21 PM   #21
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
First of all, try to identify your image like this:
Code:
/usr/bin/identify-im6 1.jpeg
That should work!
If it does, you can either modify your PATH to put /usr/local/bin behind /usr/bin, or delete your wild imagemagick install in /usr/local (although if you don't remember how it got there in the first place...).

I posted a wrong command earlier.
Try this instead:
Code:
apt search imagemagick|grep nstalled
for each package you get, do
Code:
dpkg -L package
and make sure it has nothing in /usr/local, or if it does, show us.

PS: when's the last time you did a succesful system upgrade?
Code:
master@master-Latitude-E6400:~$ ls *.jpg
1.jpg
master@master-Latitude-E6400:~$ /usr/bin/identify-im6 1.jpg
bash: /usr/bin/identify-im6: No such file or directory
master@master-Latitude-E6400:~$
Code:
master@master-Latitude-E6400:~$ apt search imagemagick|grep nstalled

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

imagemagick-common/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 all [installed,auto-removable]
libmagickcore-6.q16-2/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 i386 [installed,auto-removable]
libmagickwand-6.q16-2/xenial-updates,xenial-security,now 8:6.8.9.9-7ubuntu5.15 i386 [installed,auto-removable]
master@master-Latitude-E6400:~$
Can you give me an example of what to execute based on this output? Like dpkg -L ___ (fill in the blank please)

And thanks for all your help. As far as the last successful system upgrade, I don't know. Can I do one now? Will it step on my applications, or will it be seamless?
 
Old 05-30-2020, 02:38 PM   #22
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by Tem2 View Post
Code:
master@master-Latitude-E6400:~$ /usr/bin/identify-im6 1.jpg
bash: /usr/bin/identify-im6: No such file or directory
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this being Ubuntu, it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.

Last edited by shruggy; 05-31-2020 at 03:23 AM.
 
Old 05-30-2020, 02:58 PM   #23
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,678

Rep: Reputation: Disabled
Quote:
Originally Posted by Tem2 View Post
As far as the last successful system upgrade, I don't know. Can I do one now? Will it step on my applications, or will it be seamless?
Default Ubuntu installation should have a thingy called update-notifier that would be nagging you about updates. Do you get any notifications?
 
Old 05-30-2020, 03:06 PM   #24
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this is Ubuntu, so it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.
Code:
master@master-Latitude-E6400:~$ /usr/bin/identify-im6 1.jpg
1.jpg JPEG 355x353 355x353+0+0 8-bit sRGB 31.4KB 0.000u 0:00.000
Yay! That works for identify. What I really want is to use the convert command to create an animated gif. I thought if I could get identify to work then the convert would work too. It doesn't.

Any suggestions?
 
Old 05-30-2020, 03:10 PM   #25
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Default Ubuntu installation should have a thingy called update-notifier that would be nagging you about updates. Do you get any notifications?
I just did a successful OS update. Not sure about the notifier. I probably ignore it from time to time.
 
Old 05-30-2020, 03:28 PM   #26
Tem2
Member
 
Registered: Dec 2011
Posts: 243

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shruggy View Post
Oh, that only means you successfully uninstalled the native package. Then install it again:
Code:
sudo apt install imagemagick
And sorry, I guess I was unnecessarily condescending in my previous post. When you attempt to install anything with a non-native tool like rpm it would most probably just error out. But this is Ubuntu, so it may helpfully suggest you installing the missing parts. And if you're persistent enough and follow through with installing all the missing libraries and whatnot, in the end you might be able to actually install something with rpm. And that's where your real problems would start.
Thanks for all your help. I'll close this ticket now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what does Ubuntu have that Mint doesn't have? (not vice versa) newbiesforever Ubuntu 12 03-18-2019 05:34 PM
I have an old laptop[8yrs] and I have tried to operate a Fedora 16 program alas I have no idea what my root ID is or my passwords. need to dickidido Linux - Newbie 6 03-10-2016 04:08 PM
[SOLVED] ImageMagick-6.8.6-10 does have a broken headers, or I'm wrong? yars Slackware 3 02-05-2014 06:38 PM
install ImageMagick-6.5.1-2 & ImageMagick-devel-6.5.1.2 in red hat mokkai Linux - Enterprise 4 04-16-2009 12:04 PM
ImageMagick! ifm Linux - Software 0 06-20-2002 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration