Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PerlMagic installation using --without-perl configure option: No rule to make target 'Q16HDRI.pm' #6763

Closed
hakonhagland opened this issue Oct 6, 2023 · 6 comments

Comments

@hakonhagland
Copy link
Contributor

ImageMagick version

7.1.0

Operating system

Linux

Operating system, version and so on

Ubuntu 22.04

Description

According to the documentation:

When --without-perl is specified, you must first install ImageMagick, change to the PerlMagick subdirectory, build, and finally install PerlMagick.

I tried this on Ubuntu 22.04:

$ git clone --depth=1 git@github.com:ImageMagick/ImageMagick.git
$ cd ImageMagick
$ ./configure --without-perl --prefix=/opt/image-magick3
$ make
$ sudo make install
$ cd PerlMagick
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Warning: -L../MagickCore/.libs changed to -L/home/hakon/test/ImageMagick/PerlMagick/../MagickCore/.libs
Warning: -L../../MagickCore/.libs changed to -L/home/hakon/test/ImageMagick/PerlMagick/default/../../MagickCore/.libs
Writing MYMETA.yml and MYMETA.json
Warning: -L../../MagickCore/.libs changed to -L/home/hakon/test/ImageMagick/PerlMagick/quantum/../../MagickCore/.libs
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json

$ make
cp Magick.pm blib/lib/Image/Magick.pm
AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)
make[1]: Entering directory '/home/hakon/test/ImageMagick/PerlMagick/default'
cp Magick.pm ../blib/lib/Image/Magick.pm
Manifying 1 pod document
make[1]: Leaving directory '/home/hakon/test/ImageMagick/PerlMagick/default'
make[1]: Entering directory '/home/hakon/test/ImageMagick/PerlMagick/quantum'
make[1]: *** No rule to make target 'Q16HDRI.pm', needed by 'pm_to_blib'.  Stop.
make[1]: Leaving directory '/home/hakon/test/ImageMagick/PerlMagick/quantum'
make: *** [Makefile:545: subdirs] Error 2

Here are the complete log files from the previous build steps:
configure_log.txt
make_log.txt
make_install_log.txt

(NOTE: If I use the --with-perl configure option instead, it works fine, i.e. no errors when running sudo make install. So this question is specifically about the ---without-perl configure option)

Steps to Reproduce

See description

Images

No response

@sisyphus
Copy link

sisyphus commented Oct 6, 2023

I get essentially the same error with Strawberry Perl 5.38.0 on Windows 11:

D:\s\ImageMagick\PerlMagick>gmake
cp Magick.pm blib\lib\Image\Magick.pm
AutoSplitting blib\lib\Image\Magick.pm (blib\lib\auto\Image\Magick)
gmake[1]: Entering directory 'D:/s/ImageMagick/PerlMagick/default'
cp Magick.pm ..\blib\lib\Image\Magick.pm
gmake[1]: Leaving directory 'D:/s/ImageMagick/PerlMagick/default'
gmake[1]: Entering directory 'D:/s/ImageMagick/PerlMagick/quantum'
gmake[1]: *** No rule to make target 'Q16HDRI.pm', needed by 'pm_to_blib'.  Stop.
gmake[1]: Leaving directory 'D:/s/ImageMagick/PerlMagick/quantum'
gmake: *** [makefile:537: subdirs] Error 2

Cheers,
Rob

@urban-warrior
Copy link
Member

We updated the documentation. When --without-perl is specified, you must first install ImageMagick, download the PerlMagick source distribution, build, and finally install PerlMagick.

@hakonhagland
Copy link
Contributor Author

hakonhagland commented Oct 7, 2023

We updated the documentation

@urban-warrior Thanks!

download the PerlMagick source distribution, build, and finally install PerlMagick.

I will test this later today. A quick question about the documentation. If I go to this page: https://imagemagick.org/script/perl-magick.php (instead of the other page https://imagemagick.org/script/advanced-linux-installation.php) it says:

you must install PerlMagick from the ImageMagick source distribution. Download the latest source release.

but this link refers to another page.. It is confusing, maybe this page also needs to be updated?

@urban-warrior
Copy link
Member

The documentation is correct. The recommended PerlMagick install is from the ImageMagick source distribution with the --with-perl configure script command-line argument.

@hakonhagland
Copy link
Contributor Author

download the PerlMagick source distribution, build, and finally install PerlMagick.

I will test this later today

@urban-warrior I tested this now from a docker container running Ubuntu 22.04 and I get a failed tests, see:
#6767

@hakonhagland
Copy link
Contributor Author

Since #6767 is partially resolved now, I close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants