I'm trying to install ImageMagick from source. To do this I'm using the instructions here. It works until the make
command is executed. It says that it can't find the makefile "cmd": "/usr/bin/make", "msg": "make: *** No targets specified and no makefile found. Stop."
I tried different targets such as 'all' and 'install', and no target. In the directory are 2 files Makefile.am
, and Makefile.in
.
This is the text from the Ansible playbook I set up for this:
- name: register directory name var
shell: ls -d /path/ImageMagick-*
register: dir_path
- name: configure imagemagick make
command: "{{ dir_path.stdout }}/configure"
- name: Build default target
make:
chdir: "{{ dir_path.stdout }}"
- name: Run 'install' target
make:
chdir: "{{ dir_path.stdout }}"
target: install
The problem seems to be in the configure
step but it appears to have completed successfully, or else it should have displayed an error message, I suppose? Here is the output from Ansible as a paste: https://pastebin.com/MJjnQeRB
If I run ./configure
and then make
on the command line, it works. So this seems to be an Ansible problem. How can I make it work?