Can't install Imagemagick on Mountain Lion - imagemagick

Yesterday I updated to Mountain Lion and I wanted to start my rails app and had some problems with Rmagick gem. After reading on the net I did the following :
Installed Xcode 4.4
Installed developper tools
Installed Xquartz
Uninstalled imagemagick using brew
Installed imagemagick with brew
During this installation I receive an error :
coders/svg.c:93:10: fatal error: 'librsvg/rsvg.h' file not found
Full log
==> Downloading http://downloads.sf.net/project/machomebrew/mirror/ImageMagick-6.7.7- 6.tar.bz2
Already downloaded: /Library/Caches/Homebrew/imagemagick-6.7.7-6.tar.bz2
==> Patching
patching file configure
Hunk #1 succeeded at 32371 (offset 447 lines).
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.7.7-6 --enable-shared --disable-st
==> make install
/bin/sh ./config/mkinstalldirs . ltdl/
cp ./ltdl/argz_.h ltdl/argz.h-t
mv ltdl/argz.h-t ltdl/argz.h
make install-am
CC ltdl/argz.lo
CC coders/coders_tga_la-tga.lo
CC coders/coders_thumbnail_la-thumbnail.lo
CC coders/coders_tile_la-tile.lo
CC coders/coders_tim_la-tim.lo
CC coders/coders_ttf_la-ttf.lo
CC coders/coders_txt_la-txt.lo
CC coders/coders_uil_la-uil.lo
CC coders/coders_url_la-url.lo
CC coders/coders_uyvy_la-uyvy.lo
CC coders/coders_vicar_la-vicar.lo
CC coders/coders_vid_la-vid.lo
CC coders/coders_viff_la-viff.lo
CC coders/coders_wbmp_la-wbmp.lo
CC coders/coders_wpg_la-wpg.lo
CC coders/coders_xbm_la-xbm.lo
CC coders/coders_xc_la-xc.lo
CC coders/coders_xcf_la-xcf.lo
CC coders/coders_xpm_la-xpm.lo
CC coders/coders_xps_la-xps.lo
CC coders/coders_ycbcr_la-ycbcr.lo
CC coders/coders_yuv_la-yuv.lo
CC coders/coders_jpeg_la-jpeg.lo
CC coders/coders_jp2_la-jp2.lo
CC coders/coders_png_la-png.lo
CC coders/coders_ept_la-ept.lo
CC coders/coders_tiff_la-tiff.lo
CC coders/coders_x_la-x.lo
CC coders/coders_xwd_la-xwd.lo
CC coders/coders_aai_la-aai.lo
CC magick/magick_libMagickCore_la-accelerate.lo
CC magick/magick_libMagickCore_la-animate.lo
CC magick/magick_libMagickCore_la-annotate.lo
CC magick/magick_libMagickCore_la-artifact.lo
CC magick/magick_libMagickCore_la-attribute.lo
CC magick/magick_libMagickCore_la-blob.lo
CC magick/magick_libMagickCore_la-cache.lo
CC magick/magick_libMagickCore_la-cache-view.lo
CC magick/magick_libMagickCore_la-cipher.lo
CC magick/magick_libMagickCore_la-client.lo
CC magick/magick_libMagickCore_la-coder.lo
CC magick/magick_libMagickCore_la-color.lo
CC magick/magick_libMagickCore_la-colormap.lo
CC magick/magick_libMagickCore_la-colorspace.lo
CC magick/magick_libMagickCore_la-compare.lo
CC magick/magick_libMagickCore_la-composite.lo
CC magick/magick_libMagickCore_la-compress.lo
CC magick/magick_libMagickCore_la-configure.lo
CC magick/magick_libMagickCore_la-constitute.lo
CC magick/magick_libMagickCore_la-decorate.lo
CC magick/magick_libMagickCore_la-delegate.lo
CC magick/magick_libMagickCore_la-deprecate.lo
CC magick/magick_libMagickCore_la-display.lo
CC magick/magick_libMagickCore_la-distort.lo
CC magick/magick_libMagickCore_la-draw.lo
CC magick/magick_libMagickCore_la-effect.lo
CC magick/magick_libMagickCore_la-enhance.lo
CC magick/magick_libMagickCore_la-exception.lo
CC magick/magick_libMagickCore_la-feature.lo
CC magick/magick_libMagickCore_la-fourier.lo
CC magick/magick_libMagickCore_la-fx.lo
CC magick/magick_libMagickCore_la-gem.lo
CC magick/magick_libMagickCore_la-geometry.lo
CC magick/magick_libMagickCore_la-hashmap.lo
CC magick/magick_libMagickCore_la-histogram.lo
CC magick/magick_libMagickCore_la-identify.lo
CC magick/magick_libMagickCore_la-image.lo
CC magick/magick_libMagickCore_la-image-view.lo
CC magick/magick_libMagickCore_la-layer.lo
CC magick/magick_libMagickCore_la-list.lo
CC magick/magick_libMagickCore_la-locale.lo
CC magick/magick_libMagickCore_la-log.lo
CC magick/magick_libMagickCore_la-magic.lo
CC magick/magick_libMagickCore_la-magick.lo
CC magick/magick_libMagickCore_la-matrix.lo
CC magick/magick_libMagickCore_la-memory.lo
CC magick/magick_libMagickCore_la-mime.lo
CC magick/magick_libMagickCore_la-module.lo
CC magick/magick_libMagickCore_la-monitor.lo
CC magick/magick_libMagickCore_la-montage.lo
CC magick/magick_libMagickCore_la-morphology.lo
CC magick/magick_libMagickCore_la-option.lo
CC magick/magick_libMagickCore_la-paint.lo
CC magick/magick_libMagickCore_la-pixel.lo
CC magick/magick_libMagickCore_la-policy.lo
CC magick/magick_libMagickCore_la-PreRvIcccm.lo
CC magick/magick_libMagickCore_la-prepress.lo
CC magick/magick_libMagickCore_la-property.lo
CC magick/magick_libMagickCore_la-profile.lo
CC magick/magick_libMagickCore_la-quantize.lo
CC magick/magick_libMagickCore_la-quantum.lo
CC magick/magick_libMagickCore_la-quantum-export.lo
CC magick/magick_libMagickCore_la-quantum-import.lo
CC magick/magick_libMagickCore_la-random.lo
CC magick/magick_libMagickCore_la-registry.lo
CC magick/magick_libMagickCore_la-resize.lo
CC magick/magick_libMagickCore_la-resample.lo
CC magick/magick_libMagickCore_la-resource.lo
CC magick/magick_libMagickCore_la-segment.lo
CC magick/magick_libMagickCore_la-semaphore.lo
CC magick/magick_libMagickCore_la-shear.lo
CC magick/magick_libMagickCore_la-signature.lo
CC magick/magick_libMagickCore_la-splay-tree.lo
CC magick/magick_libMagickCore_la-static.lo
CC magick/magick_libMagickCore_la-statistic.lo
CC magick/magick_libMagickCore_la-stream.lo
CC magick/magick_libMagickCore_la-string.lo
CC magick/magick_libMagickCore_la-thread.lo
CC magick/magick_libMagickCore_la-timer.lo
CC magick/magick_libMagickCore_la-token.lo
CC magick/magick_libMagickCore_la-transform.lo
CC magick/magick_libMagickCore_la-threshold.lo
CC magick/magick_libMagickCore_la-type.lo
CC magick/magick_libMagickCore_la-utility.lo
CC magick/magick_libMagickCore_la-version.lo
CC magick/magick_libMagickCore_la-widget.lo
CC magick/magick_libMagickCore_la-xml-tree.lo
CC magick/magick_libMagickCore_la-xwindow.lo
CC ltdl/loaders/ltdl_libltdlc_la-preopen.lo
CC ltdl/ltdl_libltdlc_la-lt__alloc.lo
CC ltdl/ltdl_libltdlc_la-lt_dlloader.lo
CC ltdl/ltdl_libltdlc_la-lt_error.lo
CC ltdl/ltdl_libltdlc_la-ltdl.lo
CC ltdl/ltdl_libltdlc_la-slist.lo
CC ltdl/loaders/dlopen.lo
CC coders/coders_art_la-art.lo
CC coders/coders_avs_la-avs.lo
CC coders/coders_bgr_la-bgr.lo
CC coders/coders_bmp_la-bmp.lo
CC coders/coders_braille_la-braille.lo
CC coders/coders_cals_la-cals.lo
CC coders/coders_caption_la-caption.lo
CC coders/coders_cin_la-cin.lo
CC coders/coders_cip_la-cip.lo
CC coders/coders_clip_la-clip.lo
CC coders/coders_cmyk_la-cmyk.lo
CC coders/coders_cut_la-cut.lo
CC coders/coders_dcm_la-dcm.lo
CC coders/coders_dds_la-dds.lo
CC coders/coders_debug_la-debug.lo
CC coders/coders_dib_la-dib.lo
CC coders/coders_dng_la-dng.lo
CC coders/coders_dot_la-dot.lo
CC coders/coders_dpx_la-dpx.lo
CC coders/coders_fax_la-fax.lo
CC coders/coders_fd_la-fd.lo
CC coders/coders_fits_la-fits.lo
CC coders/coders_gif_la-gif.lo
CC coders/coders_gradient_la-gradient.lo
CC coders/coders_gray_la-gray.lo
CC coders/coders_hald_la-hald.lo
CC coders/coders_hdr_la-hdr.lo
CC coders/coders_histogram_la-histogram.lo
CC coders/coders_hrz_la-hrz.lo
CC coders/coders_html_la-html.lo
CC coders/coders_icon_la-icon.lo
CC coders/coders_inline_la-inline.lo
CC coders/coders_info_la-info.lo
CC coders/coders_ipl_la-ipl.lo
CC coders/coders_label_la-label.lo
CC coders/coders_mac_la-mac.lo
CC coders/coders_magick_la-magick.lo
CC coders/coders_map_la-map.lo
CC coders/coders_mat_la-mat.lo
CC coders/coders_matte_la-matte.lo
CC coders/coders_meta_la-meta.lo
CC coders/coders_miff_la-miff.lo
CC coders/coders_mono_la-mono.lo
CC coders/coders_mpc_la-mpc.lo
CC coders/coders_mpeg_la-mpeg.lo
CC coders/coders_mpr_la-mpr.lo
CC coders/coders_msl_la-msl.lo
CC coders/coders_mtv_la-mtv.lo
CC coders/coders_mvg_la-mvg.lo
CC coders/coders_null_la-null.lo
CC coders/coders_otb_la-otb.lo
CC coders/coders_palm_la-palm.lo
CC coders/coders_pango_la-pango.lo
CC coders/coders_pattern_la-pattern.lo
CC coders/coders_pcd_la-pcd.lo
CC coders/coders_pcl_la-pcl.lo
CC coders/coders_pcx_la-pcx.lo
CC coders/coders_pdb_la-pdb.lo
CC coders/coders_pdf_la-pdf.lo
CC coders/coders_pes_la-pes.lo
CC coders/coders_pict_la-pict.lo
CC coders/coders_pix_la-pix.lo
CC coders/coders_plasma_la-plasma.lo
CC coders/coders_pnm_la-pnm.lo
CC coders/coders_preview_la-preview.lo
CC coders/coders_ps_la-ps.lo
CC coders/coders_ps2_la-ps2.lo
CC coders/coders_ps3_la-ps3.lo
CC coders/coders_psd_la-psd.lo
CC coders/coders_pwp_la-pwp.lo
CC coders/coders_raw_la-raw.lo
CC coders/coders_rgb_la-rgb.lo
CC coders/coders_rla_la-rla.lo
CC coders/coders_rle_la-rle.lo
CC coders/coders_scr_la-scr.lo
CC coders/coders_sct_la-sct.lo
CC coders/coders_sfw_la-sfw.lo
CC coders/coders_sgi_la-sgi.lo
CC coders/coders_stegano_la-stegano.lo
CC coders/coders_sun_la-sun.lo
CC coders/coders_svg_la-svg.lo
CC wand/wand_libMagickWand_la-animate.lo
coders/svg.c:93:10: fatal error: 'librsvg/rsvg.h' file not found
#include "librsvg/rsvg.h"
^
CC wand/wand_libMagickWand_la-compare.lo
1 error generated.
make[1]: *** [coders/coders_svg_la-svg.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [install] Error 2
config.log was copied to /Users/dries/Library/Logs/Homebrew
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: 20ad5702c5bdb89e7a52c0b7407d58dbbf6a9afd
CPU: quad-core 64-bit arrandale
OS X: 10.8-x86_64
Xcode: 4.4
CLT: 4.4.0.0.1.1249367152
X11: 2.7.2 # /opt/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -I/usr/local/Cellar/gettext/0.18.1.1/include -isystem /usr/local/include -I/opt/X11/include
CMAKE_PREFIX_PATH: /opt/X11:/opt/X11
LDFLAGS: -L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/opt/X11/lib
MACOSX_DEPLOYMENT_TARGET: 10.8
MAKEFLAGS: -j4
PKG_CONFIG_PATH: /opt/X11/share/pkgconfig:/opt/X11/lib/pkgconfig:/usr/local/Library/Homebrew/pkgconfig
Error: Failed executing: make install (imagemagick.rb:137)
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/13618
https://github.com/mxcl/homebrew/issues/13638
Otherwise, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
For the moment I'm running out of possible steps I can take. Somebody knows what is wrong with this installation?

I wasted a lot of time for this one. In the end I did as stated on this site:
http://robots.thoughtbot.com/post/27985816073/the-hitchhikers-guide-to-riding-a-mountain-lion
And (the thing that seemed to fix it for me) was running brew doctor and fixing every single issue until it did not complain any longer. Now I have imagemagick installed. Hope it helps.

Yeah I also encounters the problem,I think make is the cause of the conflict.
Before install, I use brew doctor to check env, it shows me following error :
Your compilers are different from the standard versions for your Xcode.
If you have Xcode 4.3 or newer, you should install the Command Line Tools for
Xcode from within Xcode's Download preferences.
Otherwise, you should reinstall Xcode.
If you install Xcode-4.4 beforehand, then install osx-GCC-4.2, this mistake will appear .
I try to reinstall Xcode-4.4, but it doesn't work. So I just direct compiler installation from the source code.
curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
tar -zxvf ImageMagick.tar.gz
cd ImageMagick-6.7.8-8
./configure --prefix=/usr/local
make && make install
And then ImageMagick works. But this may lead file storage location has a problem, it will produce some warnings when you use brew doctor to check .
Recently I tried to reset xcode-path to solve version confict
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I think this can be a way to solve make conflict.

If anyone reading this is using macports instead of homebrew, you can install ImageMagick (After installing Xcode and the command line tools) with the following command:
sudo port install ImageMagick

Related

Error with arm-trusted-firmware compilation when built by cross toolchain

I am working on rcar gen 3 platform from Renesas and particularly on arm-trusted-firmware level.
1. bootparam_sa0.srec Loader(Boot parameter) <======= arm-trusted-firmware
2. bl2-m3ulcb.srec Loader <======= arm-trusted-firmware
3. cert_header_sa6.srec Loader(Certification) <======= arm-trusted-firmware
4. bl31-m3ulcb.srec ARM Trusted Firmware <======= arm-trusted-firmware
5. tee-m3ulcb.srec Open Portable Trusted OS <======= optee-os
6. u-boot-elf.srec U-Boot <======= u-boot
I built BL31 by command with Gcc v5.4
$ make ARCH=aarch64 CROSS_COMPILE=aarch64-linux-gnu- PLAT=rcar LSI=M3 RCAR_GEN3_ULCB=1 RCAR_LOSSY_ENABLE=1 RCAR_DRAM_SPLIT=2 PMIC_LEVEL_MODE=0 bl31
But I ran into the below err:
"
Including services/spd/opteed/opteed.mk
AS bl31/aarch64/runtime_exceptions.S
bl31/aarch64/runtime_exceptions.S: Assembler messages:
bl31/aarch64/runtime_exceptions.S:183: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:191: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:196: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:201: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:215: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:219: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:223: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:227: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:241: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:245: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:249: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:257: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:271: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:275: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:279: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:287: Error: non-constant expression in ".if" statement
Makefile:556: recipe for target 'build/rcar/release/bl31/runtime_exceptions.o' failed
make: *** [build/rcar/release/bl31/runtime_exceptions.o] Error 1
"
Same error: https://github.com/ARM-software/tf-issues/issues/417
The assembly code is correct and is apparently not the problem.
It seemed that it depends on Compiler. I was trying to install gcc/g++ 7.4 cross:
http://ftp.br.debian.org/debian/pool/main/g/gcc-7-cross/gcc-7-aarch64-linux-gnu_7.4.0-1cross1_amd64.deb
http://ftp.br.debian.org/debian/pool/main/g/gcc-7-cross/g++-7-aarch64-linux-gnu_7.4.0-1cross1_amd64.deb
on Ubuntu 16.04, and modified the Makefile to used gcc-7 (cross), g++-7 (cross), but still had this error. How can I overcome this err ?
You could stop using the toolchains that are provided with your Linux distribution, and start using a Linaro toolchain instead:
wget https://releases.linaro.org/components/toolchain/binaries/latest-7/aarch64-elf/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-elf.tar.xz
tar Jxf gcc-linaro-7.4.1-2019.02-x86_64_aarch64-elf.tar.xz -C /opt
git clone https://github.com/renesas-rcar/arm-trusted-firmware arm-trusted-firmware-renesas
cd arm-trusted-firmware-renesas
make ARCH=aarch64 CROSS_COMPILE=/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-elf/bin/aarch64-elf- PLAT=rcar LSI=M3 RCAR_GEN3_ULCB=1 RCAR_LOSSY_ENABLE=1 RCAR_DRAM_SPLIT=2 PMIC_LEVEL_MODE=0 bl31
Including services/spd/opteed/opteed.mk
CC drivers/arm/gic/common/gic_common.c
CC drivers/arm/gic/v2/gicv2_main.c
CC drivers/arm/gic/v2/gicv2_helpers.c
CC plat/common/plat_gicv2.c
CC drivers/arm/cci/cci.c
CC plat/renesas/rcar/bl31_rcar_setup.c
CC plat/renesas/rcar/rcar_pm.c
CC plat/renesas/rcar/rcar_sip_svc.c
CC plat/renesas/rcar/drivers/board/board.c
CC plat/renesas/rcar/drivers/dramconf/dramconf.c
CC plat/renesas/rcar/drivers/memdrv/rcar_printf.c
CC plat/renesas/rcar/rcar_topology.c
CC plat/renesas/rcar/aarch64/rcar_common.c
CC plat/renesas/rcar/aarch64/rcar_drivers_common.c
CC plat/renesas/rcar/drivers/pwrc/rcar_pwrc.c
CC plat/renesas/rcar/drivers/cpld/ulcb_cpld.c
CC plat/renesas/rcar/drivers/wait/micro_wait.c
CC plat/common/plat_psci_common.c
CC plat/compat/plat_pm_compat.c
CC plat/compat/plat_topology_compat.c
CC bl31/bl31_main.c
CC bl31/interrupt_mgmt.c
CC bl31/bl31_context_mgmt.c
CC common/runtime_svc.c
CC services/arm_arch_svc/arm_arch_svc_setup.c
CC services/std_svc/std_svc_setup.c
CC lib/el3_runtime/cpu_data_array.c
CC lib/el3_runtime/aarch64/context_mgmt.c
CC lib/cpus/errata_report.c
CC lib/psci/psci_off.c
CC lib/psci/psci_on.c
CC lib/psci/psci_suspend.c
CC lib/psci/psci_common.c
CC lib/psci/psci_main.c
CC lib/psci/psci_setup.c
CC lib/psci/psci_system_off.c
CC lib/psci/psci_mem_protect.c
CC lib/locks/bakery/bakery_lock_coherent.c
CC lib/extensions/spe/spe.c
CC services/spd/opteed/opteed_common.c
CC services/spd/opteed/opteed_main.c
CC services/spd/opteed/opteed_pm.c
CC common/bl_common.c
CC common/tf_log.c
CC common/tf_printf.c
CC common/tf_snprintf.c
CC plat/common/plat_bl_common.c
CC plat/common/plat_log_common.c
CC plat/common/aarch64/plat_common.c
CC lib/stdlib/abort.c
CC lib/stdlib/assert.c
CC lib/stdlib/exit.c
CC lib/stdlib/mem.c
CC lib/stdlib/printf.c
CC lib/stdlib/putchar.c
CC lib/stdlib/puts.c
CC lib/stdlib/sscanf.c
CC lib/stdlib/strchr.c
CC lib/stdlib/strcmp.c
CC lib/stdlib/strlen.c
CC lib/stdlib/strncmp.c
CC lib/stdlib/strnlen.c
CC lib/stdlib/subr_prf.c
CC lib/stdlib/timingsafe_bcmp.c
CC plat/renesas/rcar/drivers/iic_dvfs/iic_dvfs.c
CC lib/xlat_tables_v2/aarch64/xlat_tables_arch.c
CC lib/xlat_tables_v2/xlat_tables_internal.c
AS lib/cpus/aarch64/aem_generic.S
AS lib/cpus/aarch64/cortex_a53.S
AS lib/cpus/aarch64/cortex_a57.S
AS plat/renesas/rcar/drivers/memdrv/rcar_console.S
AS plat/renesas/rcar/aarch64/rcar_helpers.S
AS plat/renesas/rcar/drivers/pwrc/rcar_call_sram.S
AS bl31/aarch64/bl31_entrypoint.S
AS bl31/aarch64/runtime_exceptions.S
AS bl31/aarch64/crash_reporting.S
AS plat/common/aarch64/platform_mp_stack.S
AS lib/el3_runtime/aarch64/cpu_data.S
AS lib/cpus/aarch64/cpu_helpers.S
AS lib/locks/exclusive/aarch64/spinlock.S
AS lib/psci/aarch64/psci_helpers.S
AS lib/el3_runtime/aarch64/context.S
AS lib/cpus/aarch64/wa_cve_2017_5715_bpiall.S
AS lib/cpus/aarch64/wa_cve_2017_5715_mmu.S
AS services/spd/opteed/opteed_helpers.S
AS common/aarch64/debug.S
AS lib/aarch64/cache_helpers.S
AS lib/aarch64/misc_helpers.S
AS plat/common/aarch64/platform_helpers.S
AS plat/compat/aarch64/plat_helpers_compat.S
PP bl31/bl31.ld.S
LD build/rcar/release/bl31/bl31.elf
SREC build/rcar/release/bl31.srec
BIN build/rcar/release/bl31.bin
Built build/rcar/release/bl31.bin successfully
OD build/rcar/release/bl31/bl31.dump

brew: unable to install mumps on mac

I am trying to install ipopt by:
brew install ipopt.rb --with-openblas
and I got the following error:
==> Installing dependencies for ipopt: mumps
==> Installing ipopt dependency: mumps
==> Downloading http://mumps.enseeiht.fr/MUMPS_5.1.1.tar.gz
Already downloaded: /Users/yufeiliu/Library/Caches/Homebrew/mumps-5.1.1.tar.gz
==> make alllib LIBEXT=.dylib AR= -dynamiclib -Wl,-install_name -Wl,/usr/local/Cellar/mumps/5.1.
Last 15 lines from /Users/yufeiliu/Library/Logs/Homebrew/mumps/01.make:
clang -fPIC -I../include -O -c symbfac.c -o symbfac.o
clang -fPIC -I../include -O -c interface.c -o interface.o
clang -fPIC -I../include -O -c sort.c -o sort.o
clang -fPIC -I../include -O -c minpriority.c -o minpriority.o
dynamiclib -Wl,-install_name -Wl,/usr/local/Cellar/mumps/5.1.1_1/lib/libpord.dylib -undefined dynamic_lookup -o libpord.dylib graph.o gbipart.o gbisect.o ddcreate.o ddbisect.o nestdiss.o multisector.o gelim.o bucket.o tree.o symbfac.o interface.o sort.o minpriority.o
make[2]: dynamiclib: No such file or directory
make[2]: [libpord.dylib] Error 1 (ignored)
echo libpord.dylib
libpord.dylib
if [ "./PORD/lib/" != "" ] ; then \
cp ./PORD/lib//libpord.dylib lib/libpord.dylib; \
fi;
cp: ./PORD/lib//libpord.dylib: No such file or directory
make[1]: *** [lib/libpord.dylib] Error 1
make: *** [c] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/brewsci/homebrew-science/issues
Does anyone know how to solve this?
Unfortunately installation of mumps package with brew is very problematic at this moment. You have two different ways to install mumps
Method 1:
brew tap brewsci/science
brew install mumps
if that didn't work, download mumps.rb from here
brew install ./mumps.rb
Method 2
brew tap dpo/openblas
brew install mumps
The second method might lead to some issues with scalapack later.
Update: Unfortunately the above method might not work properly anymore. I have updated the installation method here.

Error installing petsc with homebrew

I tried installing petsc with homebrew on OSX 10.10.1 with:
$brew install petsc
I get one error installing one dependency:
==> Installing petsc dependency: hypre
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading http://ftp.mcs.anl.gov/pub/petsc/externalpackages/hypre-2.9.0b.tar.gz
Already downloaded: /Library/Caches/Homebrew/hypre-2.9.0b.tar.gz
Error: SHA1 mismatch
Expected: aaf8354437be38aa2fbcc944ab64d464a5b39207
Actual: bd7ca57e45badf322b9c9cb970403c191287da72
Archive: /Library/Caches/Homebrew/hypre-2.9.0b.tar.gz
To retry an incomplete download, remove the file above.
So I tried installing hypre with homebrew
$brew install hypre
and I didn't get any error
==> Summary
🍺 /usr/local/Cellar/hypre/2.9.0b_1: 48 files, 4.5M
Finally, I modified the petsc formula and commented out this line
depends_on "hypre" => ["with-mpi", :recommended]
Now I can install petsc but it doesn't work
configure:12901: WARNING: No PETSC_DIR set - trying to autodetect
configure:12919: Using PETSC_DIR=/usr/local
configure:12966: mpif90 -o conftest -ffast-math -frecord-marker=4 -DHAVE_NUMPY -I/usr/local/lib/python2.7/site-packages/numpy/core/include -fno-realloc-lhs -ffree-line-length-none -ffixed-line-length-none -O3 conftest.F90 -lparmetis -lmetis -llapack -lpthread -lm -lstdc++ -L/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config -lpython2.7 -u _PyMac_Error /usr/local/opt/python/Frameworks/Python.framework/Versions/2.7/Python -ldl -framework CoreFoundation -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2 -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../.. -lgfortran -lquadmath -lm -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2 -L/usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2/../../.. -lgfortran -lquadmath -lm >&5
conftest.F90:3.30:
use petsc
1
Fatal Error: Can't open module file 'petsc.mod' for reading at (1): No such file or directory

"pecl install imagick" fails on mountain lion. can't find "wand/MagickWand.h"

Pretty much what it sounds like. I did:
brew install imagemagick
That seemed to go well--so the problem is not with imagemagick itself.
I then tried to install the PHP extension (updating pear and pecl before trying):
pecl install imagick
It fails. Here's what happens near the end:
running: make
/bin/sh /private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/libtool --mode=compile cc -I. -I/private/tmp/pear/install/imagick -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/include -I/private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/main -I/private/tmp/pear/install/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/imagick/imagick_class.c -o imagick_class.lo
mkdir .libs
cc -I. -I/private/tmp/pear/install/imagick -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/include -I/private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/main -I/private/tmp/pear/install/imagick -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/install/imagick/imagick_class.c -fno-common -DPIC -o .libs/imagick_class.o
In file included from /private/tmp/pear/install/imagick/imagick_class.c:21:
/private/tmp/pear/install/imagick/php_imagick.h:49:12: fatal error: 'wand/MagickWand.h' file not found
# include <wand/MagickWand.h>
^
1 error generated.
make: *** [imagick_class.lo] Error 1
ERROR: `make' failed
Any ideas?? This is only the umpteenth time I've had issues installing imagemagick on a computer. Seems they change little things here and there all the time (for instance, I've never heard of "magickwand" before now).
I complied ImageMagick according to http://www.imagemagick.org/script/install-source.php#unix
Then I followed http://verysimple.com/2011/12/21/install-image-magick-for-php-on-osx/
Had the following error fatal error: 'wand/MagickWand.h' file not found
Then I found http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22644
Had to find the solution in config.m4, it was exporting pkgconfig:
export PKG_CONFIG_PATH="`MagickWand-config --prefix`/lib/pkgconfig/"
Then I configured with the following:
LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/usr/local/include" ./configure --with-imagick=/usr/local

Compile VLC for IOS Simulator(Xcode 4.6, IOS SDK 6.1 , Mac OSX10.8)

HI~ I try to compile VLC for IOS, and below is my steps:
git clone git://git.videolan.org/vlc-ports/ios.git
cd ios
./buildMobileVLC.sh -s
After that, I got the error bellow:
Making install in lib
make install-am
CC fribidi.lo
CC fribidi-arabic.lo
CC fribidi-bidi.lo
CC fribidi-bidi-types.lo
CC fribidi-deprecated.lo
CC fribidi-joining.lo
CC fribidi-joining-types.lo
CC fribidi-mem.lo
CC fribidi-mirroring.lo
CC fribidi-run.lo
CC fribidi-shape.lo
cd ../lib && make libfribidi-char-sets.la
make[5]: * No rule to make target `libfribidi-char-sets.la'. Stop.
make[4]: * [../charset/libfribidi-char-sets.la] Error 2
make[3]: * [install] Error 2
make[2]: * [install-recursive] Error 1
make[1]: * [install] Error 2
make: * [.fribidi] Error 2
I have try to solve the error by using goole, stack overflow and VideoLAN.
But I didn't see the same error like me.
Please help me!!
Thanks!
Make sure you're using the version of autoconf and automake that the build script creates.
I had to
brew unlink autoconf && brew unlink automake
to get it to build.

Resources