As Isaiah pointed out, Homebrew seems to be having some trouble. But the good 
news is that you shouldn't technically need it for the function you're hoping 
to use---the only need for Homebrew is to install ImageMagick, and the only 
thing we use ImageMagick for is reading/writing image file formats.

I'm a little surprised that it doesn't start up, because I attempted 
(unsuccessfully, obviously) to include some safeguards. What happens when you 
do the following at the REPL:
        using Images
        Images.LibMagick.have_imagemagick   # what does it print here?
        Images.LibMagick.libwand   # what does it print here?

Finally, what platform are you on, and which version of Julia are you running 
(versioninfo()).

Best,
--Tim

On Wednesday, March 05, 2014 10:49:18 PM Nathaniel Virgo wrote:
> Hi all
> 
> I’m completely new to Julia. For my first piece of code (a simple
> reaction-diffusion simulation) I need to repeatedly convolve a 2D array
> with a small (3x3) kernel. From a bit of googling I determined that non-FFT
> convolution is implemented in Images.imfilter, but I’m having trouble
> installing the Images package.
> 
> Attempting to install Images gave the result pasted below. This is using
> the latest git (compiled within the last week). What can I do to resolve
> these errors?
> 
> julia> Pkg.add("Images")
> INFO: Cloning cache of BinDeps from
> git://github.com/JuliaLang/BinDeps.jl.git INFO: Cloning cache of Cartesian
> from git://github.com/timholy/Cartesian.jl.git INFO: Cloning cache of Color
> from git://github.com/JuliaLang/Color.jl.git INFO: Cloning cache of
> Homebrew from git://github.com/JuliaLang/Homebrew.jl.git INFO: Cloning
> cache of Images from git://github.com/timholy/Images.jl.git INFO: Cloning
> cache of SIUnits from git://github.com/loladiro/SIUnits.jl.git INFO:
> Cloning cache of TexExtensions from
> git://github.com/loladiro/TexExtensions.jl.git INFO: Cloning cache of
> URIParser from git://github.com/loladiro/URIParser.jl.git INFO: Cloning
> cache of Zlib from git://github.com/dcjones/Zlib.jl.git INFO: Installing
> BinDeps v0.2.12
> INFO: Installing Cartesian v0.1.4
> INFO: Installing Color v0.2.8
> INFO: Installing Homebrew v0.0.4
> INFO: Installing Images v0.2.30
> INFO: Installing SIUnits v0.0.1
> INFO: Installing TexExtensions v0.0.1
> INFO: Installing URIParser v0.0.1
> INFO: Installing Zlib v0.1.5
> INFO: Building Homebrew
> INFO: Cloning brew from https://github.com/staticfloat/homebrew.git
> Cloning into '/Users/ndv21/.julia/v0.3/Homebrew/deps/usr'...
> remote: Counting objects: 3019, done.
> remote: Compressing objects: 100% (2894/2894), done.
> remote: Total 3019 (delta 44), reused 1062 (delta 10)
> Receiving objects: 100% (3019/3019), 1.57 MiB | 344 KiB/s, done.
> Resolving deltas: 100% (44/44), done.
>   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
> Current Dload  Upload   Total   Spent    Left  Speed 100 12042    0 12042  
>  0     0   8986      0 --:--:--  0:00:01 --:--:-- 36380 tar: Unrecognized
> archive format
> tar: Error exit delayed from previous errors.
> WARNING: Could not download/extract
> http://archive.org/download/julialang//cctools_bundle.tar.gz into
> /Users/ndv21/.julia/v0.3/Homebrew/deps/usr/bin!
> 
=================================================================[ 
ERROR:
> Homebrew
> 
]==================================================================
> 
> failed process: Process(`tar xz -C
> /Users/ndv21/.julia/v0.3/Homebrew/deps/usr/bin`, ProcessExited(1)) [1]
> while loading /Users/ndv21/.julia/v0.3/Homebrew/src/Homebrew.jl, in
> expression starting on line 196 while loading
> /Users/ndv21/.julia/v0.3/Homebrew/deps/build.jl, in expression starting on
> line 1
> 
> 
============================================================================
> 
==========================================================================
> INFO: Building Images
> 
==================================================================[ 
ERROR:
> Images 
]===================================================================
> 
> None of the selected providers can install dependency libMagickWand-6.Q16
> while loading /Users/ndv21/.julia/v0.3/Images/deps/build.jl, in expression
> starting on line 36
> 
> 
============================================================================
> 
==========================================================================
> 
> 
===================================================================[ 
BUILD
> ERRORS 
]===================================================================
> 
> WARNING: Homebrew and Images had build errors.
> 
>  - packages with build errors remain installed in /Users/ndv21/.julia/v0.3
>  - build a package and all its dependencies with `Pkg.build(pkg)`
>  - build a single package by running its `deps/build.jl` script
> 
> 
============================================================================
> 
==========================================================================
> INFO: Package database updated
> 
> julia> Pkg.status()
> 1 required packages:
>  - Images                        0.2.30
> 8 additional packages:
>  - BinDeps                       0.2.12
>  - Cartesian                     0.1.4
>  - Color                         0.2.8
>  - Homebrew                      0.0.4
>  - SIUnits                       0.0.1
>  - TexExtensions                 0.0.1
>  - URIParser                     0.0.1
>  - Zlib                          0.1.5
> 
> julia> using Images
> ERROR: error compiling init: error compiling init: could not load module :
> dlopen(.dylib, 1): image not found in reload_path at loading.jl:144
>  in _require at loading.jl:59
>  in require at loading.jl:43
> while loading /Users/ndv21/.julia/v0.3/Images/src/Images.jl, in expression
> starting on line 205
> 
> Best regards,
> Nathaniel

Reply via email to