Skip to content

Pkg.add("Winston") fails on OSX 10.7.5 #62

Open
mrstlee opened this Issue Feb 9, 2014 · 21 comments

5 participants

@mrstlee
mrstlee commented Feb 9, 2014

Hi,

I can't get Winston to install because Cairo won't build.
Cairo won't build because of some problem with gettext.

Following up some leads from #43 I include a command history below.

The nub of the thing seems to be that libintl isn't found when attempting to load libgettext.

I'd be grateful for any help you can give.

Thanks,
Rolf

julia> versioninfo()
Julia Version 0.2.0
Commit 05c6461 (2013-11-16 23:44 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin12.5.0)
  WORD_SIZE: 64
  BLAS: libgfortblas
  LAPACK: liblapack
  LIBM: libopenlibm

julia> Pkg.build("Cairo")
INFO: Building Homebrew
HEAD is now at c588ffb Remove git rebasing code that slipped through
HEAD is now at 0854801 Reintroduce freetype and libpng formulae as they're keg-only pre-mountain lion
INFO: Building Cairo
================================[ ERROR: Cairo ]================================

Provider PackageManager failed to satisfy dependency gettext
at /Users/rolfbanting/.julia/Cairo/deps/build.jl:130

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/rolfbanting/.julia
 - build a package and all its dependencies with `Pkg.build(pkg)`
 - build a single package by running its `deps/build.jl` script

================================================================================


julia> using Homebrew



julia> run(`otool -L $(joinpath(Homebrew.brew_prefix,"lib","libgettextlib.dylib"))`)
/Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libgettextlib.dylib:
    @@HOMEBREW_PREFIX@@/lib/libgettextlib-0.18.3.dylib (compatibility version 0.0.0, current version 0.0.0)
    @@HOMEBREW_CELLAR@@/gettext/0.18.3.2/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
    /usr/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.8.0)
    /usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
    /usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 744.19.0)



julia> dlopen( joinpath(Homebrew.brew_prefix,"lib","libgettextlib"))
ErrorException("could not load module /Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libgettextlib: dlopen(/Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libgettextlib.dylib, 1): Library not loaded: @@HOMEBREW_CELLAR@@/gettext/0.18.3.2/lib/libintl.8.dylib\n  Referenced from: /Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libgettextlib.dylib\n  Reason: image not found")


julia> dlopen( joinpath(Homebrew.brew_prefix,"lib","libintl"))
Ptr{Void} @0x0000000114ab3d00


julia> Homebrew.brew_prefix
"/Users/rolfbanting/.julia/Homebrew/deps/usr"

julia> @@HOMEBREW_CELLAR@@

@nolta
The Julia Language member
nolta commented Feb 9, 2014

Related to #49?

@staticfloat
The Julia Language member

@mrstlee what version of git do you have? This is almost certainly a Homebrew.jl issue.

@mrstlee
mrstlee commented Feb 10, 2014

Thanks for the feedback guys.

@staticfloat :
julia> run(git --version)
git version 1.8.2.3

julia> run(which git)
/Applications/Julia-0.2.0.app/Contents/Resources/julia/bin/git

@nolta : Thanks, but the Pkg.checkout doesn't seem to work either.

I've tried going behind the scenes on the command-line:

"Rolfs-MacBook-Pro-8:~ rolfbanting$ /Applications/Julia-0.2.0.app/Contents/Resources/julia/bin/julia-basic ~/.julia/Cairo/deps/build.jl
ERROR: Provider PackageManager failed to satisfy dependency gettext
in error at error.jl:21
in satisfy! at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:435
in satisfy! at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:421
in anonymous at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:463
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in process_options at client.jl:303
in _start at client.jl:389
at /Users/rolfbanting/.julia/Cairo/deps/build.jl:130"

PATH=/Users/rolfbanting/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

I daresay there's something in my environment but I'm stuffed if I can work it out.

Thanks,
Rolf

@mrstlee
mrstlee commented Feb 11, 2014

Could it be anything to do with this?

"/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/xzdec malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/xz malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/lzmainfo malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/lzmadec malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/lib/liblzma.5.dylib malformed object (unknown load command 11)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/xzdec malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/xz malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/lzmainfo malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/bin/lzmadec malformed object (unknown load command 14)
/usr/bin/install_name_tool: object: /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/xz/5.0.5/lib/liblzma.5.dylib malformed object (unknown load command 11)
"
xz is a dependency of gettext.

@staticfloat
The Julia Language member

@mrstlee That doesn't look good, it's true. Is there an update for your Xcode command line tools available? You can check by opening Xcode, going to Preferences, then Downloads.

@mrstlee
mrstlee commented Feb 11, 2014

@staticfloat If I build xz from source the binaries I get are different to the ones that are brew'd.

I'll do as you suggest and see how I get on, thanks for the tip.

@mrstlee
mrstlee commented Feb 11, 2014

@staticfloat The command lines update worked for the xz problem. Pkg.add("Cairo") now fails on dependency pangocairo.

"INFO: Building Cairo
================================[ ERROR: Cairo ]================================

Provider PackageManager failed to satisfy dependency pangocairo
at /Users/rolfbanting/.julia/Cairo/deps/build.jl:130
"

@mrstlee
mrstlee commented Feb 11, 2014

Trying to brew pango from the command-line:

"Rolfs-MacBook-Pro-8:~ rolfbanting$ /Users/rolfbanting/.julia/Homebrew/deps/usr/bin/brew install pango
==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/pango-1.36.1.tar.xz
Already downloaded: /Users/rolfbanting/Library/Caches/Homebrew/pango-1.36.1.tar.xz
==> ./configure --disable-silent-rules --prefix=/Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/pango/1.36.1 --enable-man --with-html-dir
==> make
libtool: link: ( cd ".libs" && rm -f "libpangoft2-1.0.la" && ln -s "../libpangoft2-1.0.la" "libpangoft2-1.0.la" )
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
pango depends on python (Homebrew/legacy-homebrew#26565)
pango failed to build on 10.9 (Homebrew/legacy-homebrew#26484)
Failed to build pango 1.34.1 (Homebrew/legacy-homebrew#19795)
Enable gobject-introspection for pango (Homebrew/legacy-homebrew#23247)
pango: fix test function (Homebrew/legacy-homebrew#15278)
pango 1.30.1 (Homebrew/legacy-homebrew#12721)
"

Guess I'll have to trawl through these.

@staticfloat
The Julia Language member

@mrstlee To install the formulae that I've bottled for Julia, you need to put a staticfloat/juliadeps/ in front of the formula name. So try this instead:

/Users/rolfbanting/.julia/Homebrew/deps/usr/bin/brew install staticfloat/juliadeps/pango

Also, it would be helpful if you could list the lib directory of your brew installation after trying to install pango:

$ ls -la /Users/rolfbanting/.julia/Homebrew/deps/usr/lib
@mrstlee
@mrstlee
mrstlee commented Feb 16, 2014

I've:

  1. Updated my Xcode to 4.6.3 & re-installed julia.
  2. Deleted my home .julia directory.
  3. brew'd cairo on the command-line:
==> Pouring cairo-1.12.16.snow_leopard_or_later.bottle.1.tar.gz
�  /Users/rolfbanting/.julia/Homebrew/deps/usr/Cellar/cairo/1.12.16: 93 files, 7.0M
"Rolfs-MacBook-Pro-8:~ rolfbanting$ ls -la /Users/rolfbanting/.julia/Homebrew/deps/usr/lib
total 448
drwxr-xr-x  59 rolfbanting  staff  2006 Feb 16 15:21 .
drwxr-xr-x  15 rolfbanting  staff   510 Feb 16 13:25 ..
lrwxr-xr-x   1 rolfbanting  staff    33 Feb 16 15:21 cairo -> ../Cellar/cairo/1.12.16/lib/cairo
lrwxr-xr-x   1 rolfbanting  staff    38 Feb 16 15:21 gettext -> ../Cellar/gettext/0.18.3.2/lib/gettext
lrwxr-xr-x   1 rolfbanting  staff    34 Feb 16 13:25 glib-2.0 -> ../Cellar/glib/2.38.2/lib/glib-2.0
lrwxr-xr-x   1 rolfbanting  staff    50 Feb 16 15:21 libasprintf.0.dylib -> ../Cellar/gettext/0.18.3.2/lib/libasprintf.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    44 Feb 16 15:21 libasprintf.a -> ../Cellar/gettext/0.18.3.2/lib/libasprintf.a
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 15:21 libasprintf.dylib -> ../Cellar/gettext/0.18.3.2/lib/libasprintf.dylib
lrwxr-xr-x   1 rolfbanting  staff    63 Feb 16 15:21 libcairo-script-interpreter.2.dylib -> ../Cellar/cairo/1.12.16/lib/libcairo-script-interpreter.2.dylib
lrwxr-xr-x   1 rolfbanting  staff    57 Feb 16 15:21 libcairo-script-interpreter.a -> ../Cellar/cairo/1.12.16/lib/libcairo-script-interpreter.a
lrwxr-xr-x   1 rolfbanting  staff    61 Feb 16 15:21 libcairo-script-interpreter.dylib -> ../Cellar/cairo/1.12.16/lib/libcairo-script-interpreter.dylib
lrwxr-xr-x   1 rolfbanting  staff    44 Feb 16 15:21 libcairo.2.dylib -> ../Cellar/cairo/1.12.16/lib/libcairo.2.dylib
lrwxr-xr-x   1 rolfbanting  staff    38 Feb 16 15:21 libcairo.a -> ../Cellar/cairo/1.12.16/lib/libcairo.a
lrwxr-xr-x   1 rolfbanting  staff    42 Feb 16 15:21 libcairo.dylib -> ../Cellar/cairo/1.12.16/lib/libcairo.dylib
lrwxr-xr-x   1 rolfbanting  staff    41 Feb 16 15:21 libffi-3.0.13 -> ../Cellar/libffi/3.0.13/lib/libffi-3.0.13
lrwxr-xr-x   1 rolfbanting  staff    42 Feb 16 15:21 libffi.6.dylib -> ../Cellar/libffi/3.0.13/lib/libffi.6.dylib
lrwxr-xr-x   1 rolfbanting  staff    36 Feb 16 15:21 libffi.a -> ../Cellar/libffi/3.0.13/lib/libffi.a
lrwxr-xr-x   1 rolfbanting  staff    40 Feb 16 15:21 libffi.dylib -> ../Cellar/libffi/3.0.13/lib/libffi.dylib
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 15:20 libfreetype.6.dylib -> ../Cellar/freetype/2.5.2/lib/libfreetype.6.dylib
lrwxr-xr-x   1 rolfbanting  staff    42 Feb 16 15:20 libfreetype.a -> ../Cellar/freetype/2.5.2/lib/libfreetype.a
lrwxr-xr-x   1 rolfbanting  staff    46 Feb 16 15:20 libfreetype.dylib -> ../Cellar/freetype/2.5.2/lib/libfreetype.dylib
lrwxr-xr-x   1 rolfbanting  staff    57 Feb 16 15:21 libgettextlib-0.18.3.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextlib-0.18.3.dylib
lrwxr-xr-x   1 rolfbanting  staff    50 Feb 16 15:21 libgettextlib.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextlib.dylib
lrwxr-xr-x   1 rolfbanting  staff    51 Feb 16 15:21 libgettextpo.0.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextpo.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    45 Feb 16 15:21 libgettextpo.a -> ../Cellar/gettext/0.18.3.2/lib/libgettextpo.a
lrwxr-xr-x   1 rolfbanting  staff    49 Feb 16 15:21 libgettextpo.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextpo.dylib
lrwxr-xr-x   1 rolfbanting  staff    57 Feb 16 15:21 libgettextsrc-0.18.3.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextsrc-0.18.3.dylib
lrwxr-xr-x   1 rolfbanting  staff    50 Feb 16 15:21 libgettextsrc.dylib -> ../Cellar/gettext/0.18.3.2/lib/libgettextsrc.dylib
lrwxr-xr-x   1 rolfbanting  staff    44 Feb 16 13:25 libgio-2.0.0.dylib -> ../Cellar/glib/2.38.2/lib/libgio-2.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    42 Feb 16 13:25 libgio-2.0.dylib -> ../Cellar/glib/2.38.2/lib/libgio-2.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    45 Feb 16 13:25 libglib-2.0.0.dylib -> ../Cellar/glib/2.38.2/lib/libglib-2.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    43 Feb 16 13:25 libglib-2.0.dylib -> ../Cellar/glib/2.38.2/lib/libglib-2.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 13:25 libgmodule-2.0.0.dylib -> ../Cellar/glib/2.38.2/lib/libgmodule-2.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    46 Feb 16 13:25 libgmodule-2.0.dylib -> ../Cellar/glib/2.38.2/lib/libgmodule-2.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 13:25 libgobject-2.0.0.dylib -> ../Cellar/glib/2.38.2/lib/libgobject-2.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    46 Feb 16 13:25 libgobject-2.0.dylib -> ../Cellar/glib/2.38.2/lib/libgobject-2.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 13:25 libgthread-2.0.0.dylib -> ../Cellar/glib/2.38.2/lib/libgthread-2.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    46 Feb 16 13:25 libgthread-2.0.dylib -> ../Cellar/glib/2.38.2/lib/libgthread-2.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    49 Feb 16 13:25 libharfbuzz.0.dylib -> ../Cellar/harfbuzz/0.9.25/lib/libharfbuzz.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    47 Feb 16 13:25 libharfbuzz.dylib -> ../Cellar/harfbuzz/0.9.25/lib/libharfbuzz.dylib
lrwxr-xr-x   1 rolfbanting  staff    46 Feb 16 15:21 libintl.8.dylib -> ../Cellar/gettext/0.18.3.2/lib/libintl.8.dylib
lrwxr-xr-x   1 rolfbanting  staff    40 Feb 16 15:21 libintl.a -> ../Cellar/gettext/0.18.3.2/lib/libintl.a
lrwxr-xr-x   1 rolfbanting  staff    44 Feb 16 15:21 libintl.dylib -> ../Cellar/gettext/0.18.3.2/lib/libintl.dylib
lrwxr-xr-x   1 rolfbanting  staff    47 Feb 16 14:58 libpango-1.0.0.dylib -> ../Cellar/pango/1.36.1/lib/libpango-1.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    45 Feb 16 14:58 libpango-1.0.dylib -> ../Cellar/pango/1.36.1/lib/libpango-1.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    52 Feb 16 14:58 libpangocairo-1.0.0.dylib -> ../Cellar/pango/1.36.1/lib/libpangocairo-1.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    50 Feb 16 14:58 libpangocairo-1.0.dylib -> ../Cellar/pango/1.36.1/lib/libpangocairo-1.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    50 Feb 16 14:58 libpangoft2-1.0.0.dylib -> ../Cellar/pango/1.36.1/lib/libpangoft2-1.0.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    48 Feb 16 14:58 libpangoft2-1.0.dylib -> ../Cellar/pango/1.36.1/lib/libpangoft2-1.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    47 Feb 16 15:20 libpixman-1.0.dylib -> ../Cellar/pixman/0.32.4/lib/libpixman-1.0.dylib
lrwxr-xr-x   1 rolfbanting  staff    41 Feb 16 15:20 libpixman-1.a -> ../Cellar/pixman/0.32.4/lib/libpixman-1.a
lrwxr-xr-x   1 rolfbanting  staff    45 Feb 16 15:20 libpixman-1.dylib -> ../Cellar/pixman/0.32.4/lib/libpixman-1.dylib
lrwxr-xr-x   1 rolfbanting  staff    36 Feb 16 15:19 libpng.a -> ../Cellar/libpng/1.5.17/lib/libpng.a
lrwxr-xr-x   1 rolfbanting  staff    40 Feb 16 15:19 libpng.dylib -> ../Cellar/libpng/1.5.17/lib/libpng.dylib
lrwxr-xr-x   1 rolfbanting  staff    45 Feb 16 15:19 libpng15.15.dylib -> ../Cellar/libpng/1.5.17/lib/libpng15.15.dylib
lrwxr-xr-x   1 rolfbanting  staff    38 Feb 16 15:19 libpng15.a -> ../Cellar/libpng/1.5.17/lib/libpng15.a
lrwxr-xr-x   1 rolfbanting  staff    42 Feb 16 15:19 libpng15.dylib -> ../Cellar/libpng/1.5.17/lib/libpng15.dylib
lrwxr-xr-x   1 rolfbanting  staff    32 Feb 16 14:58 pango -> ../Cellar/pango/1.36.1/lib/pango
drwxr-xr-x  28 rolfbanting  staff   952 Feb 16 15:21 pkgconfig
  1. Run the Cairo build script:
Rolfs-MacBook-Pro-8:~ rolfbanting$  /Applications/Julia-0.2.0.app/Contents/Resources/julia/bin/julia-basic ~/.julia/Cairo/deps/build.jl
ERROR: Provider PackageManager failed to satisfy dependency pangocairo
 in error at error.jl:21
 in satisfy! at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:435
 in satisfy! at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:421
 in anonymous at /Users/rolfbanting/.julia/BinDeps/src/dependencies.jl:463
 in include at boot.jl:238
 in include_from_node1 at loading.jl:114
 in process_options at client.jl:303
 in _start at client.jl:389
at /Users/rolfbanting/.julia/Cairo/deps/build.jl:130

Anything else I can try?

Thanks!

[edit: aviks: quote shell output]

@staticfloat
The Julia Language member

To run the Cairo package buildscript, it's better to use Pkg.build("Cairo") from within Julia. Could you try that and see what it says? Also, @aviks quoted your shell output, which means he surrounded it in three backticks: ```. Those create the nice little code cells you see in your posts above, and make it easier to read shell output since the font used inside is monospaced. :)

```
This is code
```

Gets turned into:

This is code
@lendle
lendle commented Feb 21, 2014

I'm having the same or a similar issue on a recent dev version of julia with both the most recent tagged version and master version of Cairo.

julia> Pkg.build("Cairo")
INFO: Building Homebrew
HEAD is now at c588ffb Remove git rebasing code that slipped through
HEAD is now at b8b84ed Update hdf5 and szip
Uninstalling /Users/sam/.julia/v0.3/Homebrew/deps/usr/Cellar/zeromq/3.2.4...
==> Downloading http://archive.org/download/julialang/bottles/zeromq-3.2.4.snow_leopard_or_later.bottle.1.t
Already downloaded: /Users/sam/Library/Caches/Homebrew.jl/zeromq-3.2.4.snow_leopard_or_later.bottle.1.tar.gz
==> Pouring zeromq-3.2.4.snow_leopard_or_later.bottle.1.tar.gz
  /Users/sam/.julia/v0.3/Homebrew/deps/usr/Cellar/zeromq/3.2.4: 54 files, 2.3M
INFO: Building Cairo
=============================================[ ERROR: Cairo ]==============================================

Provider PackageManager failed to satisfy dependency pangocairo
while loading /Users/sam/.julia/v0.3/Cairo/deps/build.jl, in expression starting on line 129

===========================================================================================================

=============================================[ BUILD ERRORS ]==============================================

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/sam/.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

==========================================================================================================

Homebrew.add("cairo") and Homebrew.add("pango") both work.

Here's what's in ~/.julia/v0.3/Homebrew/deps/usr/lib

pkgconfig                            libgettextpo.a              libintl.8.dylib
cairo                                libgettextpo.dylib          libintl.a
gettext                              libgettextsrc-0.18.3.dylib  libintl.dylib
glib-2.0                             libgettextsrc.dylib         libnettle.4.5.dylib
libasprintf.0.dylib                  libgio-2.0.0.dylib          libnettle.4.dylib
libasprintf.a                        libgio-2.0.dylib            libnettle.a
libasprintf.dylib                    libglib-2.0.0.dylib         libnettle.dylib
libcairo-script-interpreter.2.dylib  libglib-2.0.dylib           libpango-1.0.0.dylib
libcairo-script-interpreter.a        libgmodule-2.0.0.dylib      libpango-1.0.dylib
libcairo-script-interpreter.dylib    libgmodule-2.0.dylib        libpangocairo-1.0.0.dylib
libcairo.2.dylib                     libgmp.10.dylib             libpangocairo-1.0.dylib
libcairo.a                           libgmp.a                    libpangoft2-1.0.0.dylib
libcairo.dylib                       libgmp.dylib                libpangoft2-1.0.dylib
libffi-3.0.13                        libgmpxx.4.dylib            libpixman-1.0.dylib
libffi.6.dylib                       libgmpxx.a                  libpixman-1.a
libffi.a                             libgmpxx.dylib              libpixman-1.dylib
libffi.dylib                         libgobject-2.0.0.dylib      libpng.a
libfontconfig.1.dylib                libgobject-2.0.dylib        libpng.dylib
libfontconfig.a                      libgthread-2.0.0.dylib      libpng15.15.dylib
libfontconfig.dylib                  libgthread-2.0.dylib        libpng15.a
libfreetype.6.dylib                  libharfbuzz.0.dylib         libpng15.dylib
libfreetype.a                        libharfbuzz.dylib           libzmq.3.dylib
libfreetype.dylib                    libhogweed.2.3.dylib        libzmq.a
libgettextlib-0.18.3.dylib           libhogweed.2.dylib          libzmq.dylib
libgettextlib.dylib                  libhogweed.a                pango
libgettextpo.0.dylib                 libhogweed.dylib
@staticfloat
The Julia Language member

@lendle what happens when you do the following:

julia> dlopen("/Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib")
Ptr{Void} @0x00007fda239677f0
@lendle
lendle commented Feb 21, 2014
julia> dlopen("/Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib")
ERROR: could not load module /Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib: dlopen(/Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib.dylib, 1): image not found
 in dlopen at c.jl:19

It looks like an extra "dylib" was added. If I try without the extension:

julia> dlopen("/Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0")
ERROR: could not load module /Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0: dlopen(/Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib, 1): Library not loaded: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
  Referenced from: /Users/sam/.julia/v0.3/Homebrew/deps/usr/lib/libpangocairo-1.0.dylib
  Reason: image not found
 in dlopen at c.jl:19
@staticfloat
The Julia Language member

Ah. Are you on OSX 10.7 or earlier?

@lendle
lendle commented Feb 21, 2014

@staticfloat OS X 10.7.5.

@staticfloat
The Julia Language member

See this issue for discovery of the problem, discussion of the solution, and a temporary workaround you can enact to get things working on your end right now.

@mrstlee
mrstlee commented Mar 2, 2014

Pkg.add("Cairo") still fails with the libpangocairo error:

Provider PackageManager failed to satisfy dependency pangocairo
at /Users/rolfbanting/.julia/Cairo/deps/build.jl:130

Something wrong with CoreText dependency:

julia> dlopen( joinpath(Homebrew.brew_prefix,"lib","libpangocairo-1.0.0"))
ERROR: could not load module /Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libpangocairo-1.0.0: dlopen(/Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libpangocairo-1.0.0.dylib, 1): Library not loaded: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
  Referenced from: /Users/rolfbanting/.julia/Homebrew/deps/usr/lib/libpangocairo-1.0.0.dylib
  Reason: image not found
 in dlopen at c.jl:29
run(`ls -l /System/Library/Frameworks/CoreText.framework/Versions/A/CoreT 
ls: /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText: No such file or directory
ERROR: failed process: Process(`ls -l /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText`, ProcessExited(1)) [1]
 in pipeline_error at process.jl:476
 in run at process.jl:453

On my system CoreText is here:

/Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
/Applications/Xcode2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText

Can I link/copy the 10.7.sdk version so that libpangocairo will be happy?

Thanks.

@amckinlay

@staticfloat The issue you linked to in #62 (comment) does not exist. Any updates on this issue? I have reported my problems in nolta/Winston.jl#144.

@nolta
The Julia Language member
nolta commented Apr 22, 2014

Maybe JuliaLang/Homebrew.jl#35 (not 350) is the right issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.