Closed Anthogr closed 2 years ago
@Watson1978 any ideas?
Hmm, the current setup script does not assume an Apple M1 environment...
If Homebrew has been properly installed, RMagick should install successfully. https://github.com/rmagick/rmagick/blob/ba3a6cb90a44551a04b0c74fd5c0579d1f747445/ext/RMagick/extconf.rb#L27
I doubt that pkg-config is installed correctly.
Please report the results of running pkg-config --list-all
on your terminal.
$ pkg-config --list-all
...
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
libxslt libxslt - XSLT library version 2.
~Hmm, the current setup script does not assume an Apple M1 environment...~
If Homebrew has been properly installed, RMagick should install successfully.
I have this same line in the extconf.rb
pkg_config_path = "#{`brew --prefix imagemagick@6`.strip}/lib/pkgconfig"
I doubt that pkg-config is installed correctly. Please report the results of running
pkg-config --list-all
on your terminal.$ pkg-config --list-all ... libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support libxslt libxslt - XSLT library version 2.
$ pkg-config --list-all
gmodule-no-export-2.0 GModule - Dynamic module loader for GLib
Wand-6.Q16 MagickWand - MagickCore - C API for ImageMagick (ABI Q16)
ImageMagick++-6.Q16 ImageMagick++ - Magick++ - C++ API for ImageMagick (ABI Q16)
apr-1 APR - The Apache Portable Runtime library
python3 Python - Build a C extension for Python
libhwy-contrib libhwy-contrib - Additions to Highway: image and math library
libhwy libhwy - Efficient and performance-portable SIMD wrapper
MagickWand-6.Q16 MagickWand - MagickWand - C API for ImageMagick (ABI Q16)
python-3.9 Python - Build a C extension for Python
netcdf netCDF - NetCDF Client Library for C
ImageMagick ImageMagick - ImageMagick - convert, edit, and compose images (ABI Q16)
libcares c-ares - asynchronous DNS lookup library
libedit libedit - command line editor library provides generic line editing, history, and tokenization functions.
Imath Imath - Imath library: vector/matrix and math operations, plus the half type.
libpng libpng - Loads and saves PNG files
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
libcurl libcurl - Library to transfer files with ftp, http, etc.
gio-unix-2.0 GIO unix specific APIs - unix specific headers for glib I/O library
libwebpmux libwebpmux - Library for manipulating the WebP graphics format container
libbrotlienc libbrotlienc - Brotli encoder library
libwebp libwebp - Library for the WebP graphics format
libbrotlicommon libbrotlicommon - Brotli common dictionary library
libwebpdemux libwebpdemux - Library for parsing the WebP graphics format container
libjxl_threads libjxl_threads - JPEG XL multi-thread runner using std::threads.
libpcre16 libpcre16 - PCRE - Perl compatible regular expressions C library with 16 bit character support
lcms2 lcms2 - LCMS Color Management Library
zlib zlib - zlib compression library
mpfr mpfr - C library for multiple-precision floating-point computations
libbrotlidec libbrotlidec - Brotli decoder library
freetype2 FreeType 2 - A free, high-quality, and portable font engine.
libjxl libjxl - Loads and saves JPEG XL files
gio-2.0 GIO - glib I/O library
Wand MagickWand - MagickCore - C API for ImageMagick (ABI Q16)
yaml-0.1 LibYAML - Library to parse and emit YAML
x265 x265 - H.265/HEVC video encoder
libhwy-test libhwy-test - Efficient and performance-portable SIMD wrapper, test helpers.
gthread-2.0 GThread - Thread support for GLib
liblzma liblzma - General purpose data compression library
gsl GSL - GNU Scientific Library
ImageMagick-6.Q16 ImageMagick - ImageMagick - convert, edit, and compose images (ABI Q16)
MagickCore MagickCore - MagickCore - C API for ImageMagick (ABI Q16)
libde265 libde265 - H.265/HEVC video decoder.
libffi libffi - Library supporting Foreign Function Interfaces
apr-util-1 APR Utils - Companion library for APR
libheif libheif - HEIF image codec.
python-3.9-embed Python - Embed Python into an application
expat expat - expat XML parser
libiodbc iODBC - iODBC Driver Manager
libwebpdecoder libwebpdecoder - Library for the WebP graphics format (decode only)
sqlite3 SQLite - SQL database engine
lqr-1 lqr-1 - LiquidRescale seam-carving library
libvmaf libvmaf - VMAF, Video Multimethod Assessment Fusion
libopenjp2 openjp2 - JPEG2000 library (Part 1 and 2)
isl isl - isl Library
libnghttp2 libnghttp2 - HTTP/2 C library
libidn Libidn - IETF stringprep, nameprep, punycode, IDNA text processing.
OpenEXR OpenEXR - OpenEXR image library
gmodule-2.0 GModule - Dynamic module loader for GLib
ncurses ncurses - ncurses 5.7 library
Magick++-6.Q16 Magick++ - Magick++ - C++ API for ImageMagick (ABI Q16)
libxml-2.0 libXML - libXML library version2.
gmodule-export-2.0 GModule - Dynamic module loader for GLib
uuid uuid - Universally unique id library
python3-embed Python - Embed Python into an application
gobject-2.0 GObject - GLib Type, Object, Parameter and Signal Library
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
netcdf-fortran netcdf-fortran - NetCDF Client Library for Fortran
libjpeg libjpeg - Reads and writes JPEG files
MagickWand MagickWand - MagickWand - C API for ImageMagick (ABI Q16)
fontconfig Fontconfig - Font configuration and customization library
libexslt libexslt - EXSLT Extension library
jbig2dec libjbig2dec - JBIG2 decoder library.
gmpxx GNU MP C++ - GNU Multiple Precision Arithmetic Library (C++ bindings)
ncursesw ncursesw - ncurses 5.7 library
libtiff-4 libtiff - Tag Image File Format (TIFF) library.
ImageMagick++ ImageMagick++ - Magick++ - C++ API for ImageMagick (ABI Q16)
MagickCore-6.Q16 MagickCore - MagickCore - C API for ImageMagick (ABI Q16)
libzstd zstd - fast lossless compression algorithm library
libpcrecpp libpcrecpp - PCRECPP - C++ wrapper for PCRE
Magick++ Magick++ - Magick++ - C++ API for ImageMagick (ABI Q16)
libuv libuv - multi-platform support library with a focus on asynchronous I/O.
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
glib-2.0 GLib - C Utility Library
libpng16 libpng - Loads and saves PNG files
gmp GNU MP - GNU Multiple Precision Arithmetic Library
libxslt libxslt - XSLT library version 2.
aom aom - Alliance for Open Media AV1 codec library v3.2.0.
shared-mime-info shared-mime-info - Freedesktop common MIME database
Seems pkg-config --list-all
works fine.
Can you attach /opt/homebrew/lib/ruby/gems/3.0.0/extensions/arm64-darwin-20/3.0.0/rmagick-4.2.3/mkmf.log
file in here ?
Okay I managed to install rmagick v4.2.3
. I uninstalled everything
brew uninstall pkg-config imagemagick@6
reinstalled it
brew install pkg-config imagemagick@6
and installed rmagick
gem install rmagick
This time it worked, I don't know why because I already tried this before with no results... The only thing I did was to restart the mac, maybe one of the path or environment variable needed this to be set ?
I'm glad it worked out. If the error occurs again, feel free to reopen this issue.
Thanks a lot for your help !
I installed
pkg-config
andimagemagick
:Imagemagick version
When trying to install rmagick
I get
So I created a folder
/opt/homebrew/Library/Homebrew/shims/mac/super/pkg-config/bin/
containing a symbolic linkAnd now when trying to install rmagick I get:
It is specified I have to install
development tools
so I checked if it was installed:I've been searching for a long time now and found several topics dealing with similar issues but none of them could help me...
Do you have an idea why this doesn't work ?
I'm using
Mac OSX 11.6
,ruby 3.0.2p107
Thanks a lot