imagemagick convert throws error while installing through binary - imagemagick-convert

When trying to build ImageMagick-7.0.8-36 from source on Ubuntu 18.01 I'm getting the following error
(coders/heic.c:564:20: error: incompatible types when assigning to
type ‘struct heif_error’ from type ‘int’
error=heif_context_add_XMP_metadata(ctx,image_handle,..):
$ sudo apt update
$ sudo apt build-dep imagemagick
$ wget https://www.imagemagick.org/download/ImageMagick.tar.gz
$ tar xvzf ImageMagick.tar.gz
$ cd ImageMagick-7.0.8-36
$ ./configure
$ make

Related

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

make all fatal error, when i am compiling Makefile

I am getting error as shown below while running make all command.
fatal error: google/protobuf/arena.h: No such file or directory
compilation terminated.
cd ~/caffe
sudo make clean
sudo apt-get install libboost-all-dev
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
pip install protobuf
sudo make all
sudo make test
sudo make runtest
Either you don't have protobuf installed or it is outdated. To install, run the following command
sudo apt-get install -y libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
In case it is outdated, you need to compile protobuf from the source.

Complete installation guide for NIST Biometric Image Software (NBIS)?

When trying to install NBIS I get the following error on linux, when running ./setup.sh:
zsh: permission denied: ./setup.sh
and the following when running make config:
/bin/sh: 3: ./configure: Permission denied
/home/...../Downloads/Rel_5.0.0/buildutil/png_libs.mak:54: recipe for target 'config' failed
make[3]: *** [config] Error 1
I used ARK to extract the zip file.
What am I doing wrong?
Use the unzip utility to extract the .zip file containing the NBIS source. unzip maintains the file permission structure of the zip file contents. Then you can install as per normal.
Install guide
unzip nbis_v5_0_0.zip
cd Rel_5.0.0
sudo mkdir /usr/local/NBIS/Main
# Ensure a absolute path is provided to setup.sh
./setup.sh /usr/local/NBIS/Main --64 #or --32 if you have a 32 bit system
make config
make it
sudo make install LIBNBIS=yes
cd ..
rm -r -f Rel_5.0.0
I don't have access to the zip/can't use unzip
You can change the permissions of the relevant files with:
chmod ug+x ./setup.sh
chmod ug+x ./png/src/lib/png/configure
chmod ug+x ./png/src/lib/zlib/configure
Then you can install as per normal.
I installed first gcc and x11 library in order to avoid error:
A gcc library
sudo apt-get install cmake libc6-dev libc6-dev-i386 g++-multilib
X11 library
sudo apt-get install libx11-dev
Then I unzip nbis_v5_0_0
cd Rel_5.0.0
./setup.sh /path_to_run --64 (or --32)
sudo make config
sudo make it
sudo install LIBNBIS=yes

Tarantool doesn't work on Ubuntu 16 (libbfd-2.26-system.so: cannot open shared object file)

I installed Tarantool 1.7 on Ubuntu 16 as instructed https://tarantool.org/download.html
The installation was successful, but when i run tarantool it fails with error:
tarantool: error while loading shared libraries: libbfd-2.26-system.so: cannot open shared object file: No such file or directory
Check 'binutils' has been installed, if not:
$ sudo apt-get update
$ sudo apt-get install -y binutils
Check version:
$ ls /usr/lib/x86_64-linux-gnu/libbfd*
if you see:
/usr/lib/x86_64-linux-gnu/libbfd-2.26.1-system.so
then you need:
$ cd /usr/lib/x86_64-linux-gnu
$ sudo ln -s libbfd-2.26.1-system.so libbfd-2.26-system.so

Mesos make check command produces error

I am trying to install mesos using the following commands
$ wget http://www.apache.org/dist/mesos/0.28.2/mesos-0.28.2.tar.gz
$ tar -zxf mesos-0.28.2.tar.gz
instructions for stock Ubuntu 14.04
# Update the packages.
$ sudo apt-get update
# Install a few utility tools.
$ sudo apt-get install -y tar wget git
# Install the latest OpenJDK.
$ sudo apt-get install -y openjdk-7-jdk
# Install autotools (Only necessary if building from git repository).
$ sudo apt-get install -y autoconf libtool
# Install other Mesos dependencies.
$ sudo apt-get -y install build-essential python-dev libcurl4-nss-dev libsasl2-dev libsasl2-modules maven libapr1-dev libsvn-dev
Then the build commands
# Change working directory.
$ cd mesos
# Configure and build.
$ mkdir build
$ cd build
$ ../configure
$ make
# Run test suite.
$ make check
The last command make check produces this error
internal compiler error: killed (program cc1plus) please submit a full bug report,
with preprocessed source if appropriate.
see <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
make[3]: *** [test/mesos_tests-master_tests.o] Error 4
make[3]: Leaving directory '/home/manar/mesos-0.28.2/build/src'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory '/home/manar/mesos-0.28.2/build/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory '/home/manar/mesos-0.28.2/build/src'
make: *** [check-recursive] Error 1
Ubuntu version: 14.04
The reported error message comes from GCC. The reason GCC produced an error message is probably because the box ran out of RAM (compiling Mesos needs ~2GB of RAM). What are the hardware specs on the box?

Resources