I've installed Octave on different Linux distributions. Installation is normally easy. "sudo apt-get install octave", normally does the trick. However, I've noticed that some installations install without the capability of using the imread() function without errors. It's the common error which says "warning: your version of GraphicsMagick limits images to 8 bits per pixel". The solution is to build both GraphicsMagick and Octave from source -- not as easy as it sounds without running into all sorts of errors and taking forever on a Raspberry Pi.
So here's my question. Why is it that when running "sudo apt-get install octave", sometimes a correct version will be installed automatically (one which allows imread() to work properly with GraphicsMagick supporting 16 bits per pixel), but other times, it installs with the 8-bit version of GraphicsMagick, which doesn't allow imread() to work? If the "sudo apt-get install octave" command downloads and installs the most recent, pre-compiled version, shouldn't it always install a version which allows the imread() function to work? Why does it work on some Linux distributions, but not all?
I currently have PIXEL installed on my Raspberry Pi. With that OS, imread doesn't work in Octave. However, when I had Ubuntu Mate installed on the Pi, "sudo apt-get install octave", installed a version of Octave which allowed imread to work.
I'm trying to avoid building Octave from source, since I haven't had much success with that. But at the same time, I don't want to go back to Ubuntu Mate, since it seemed to be a bit unstable on the Raspberry Pi. Is there any way to install a pre-compiled version of Octave on PIXEL which allows a working imread function? I'm confused as to why the same command works properly on one OS, but not the other.
If anyone knows why the same command would produce different results, I'd like to hear your explanation. Also, if you have a suggestion as to how I could install the same working version (which worked on Ubuntu Mate), on PIXEL, I'd like to hear about that too.
Thanks for your time, and for any input which anyone is willing/able to give.