Can't install package Cairo on MacOSX

258 views
Skip to first unread message

Glenn Fulford

unread,
Aug 26, 2013, 12:32:18 AM8/26/13
to julia...@googlegroups.com
Hi,

I get the following error when I try to add package Cairo, Pkg.add("Cairo"), on mac osx, while trying to get the Winston plot package working.

julia> versioninfo()
Julia Version 0.2.0-prerelease+3432
Commit 6374414 2013-08-25 04:44:18 UTC
Platform Info:
  System: Darwin (x86_64-apple-darwin12.4.0)
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY)
  LAPACK: libopenblas
  LIBM: libopenlibm

Pkg.add("Cairo")
INFO: Installing Cairo v0.2.6
INFO: Installing BinDeps v0.2.2
INFO: Installing URIParser v0.0.0
INFO: Running build script for package Cairo
Array((DependencyProvider,Dict{Symbol,Any}),(6,)) [(Homebrew(HomebrewInstall("glib",[],[])),Dict{Symbol,Any}()),(AptGet("libglib2.0-0"),Dict{Symbol,Any}()),(Yum("glib"),Dict{Symbol,Any}()),(RemoteBinaries(URI(http://julialang.googlecode.com/files/Cairo.tar.gz)),[:os=>:Windows]),(RemoteBinaries(URI(http://julialang.googlecode.com/files/OSX.tar.gz)),[:os=>:Darwin]),(Autotools(nothing,Dict{Any,Any}()),Dict{Symbol,Any}())]

ERROR: could not start process `unxz -c /Users/fulford/.julia/Cairo/deps/downloads/glib-2.34.3.tar.xz`: no such file or directory (ENOENT)
 in test_success at process.jl:422

I have checked and I do have xz installed (using homebrew) and
unxz -c /Users/fulford/.julia/Cairo/deps/downloads/glib-2.34.3.tar.xz
appears to work from the command line, so I am not sure what is wrong?

I have PyCall working now, so I am not too worried, but I thought people might like to know about this before the 0.2 release.

Glenn






Thomas Brunoli

unread,
Aug 26, 2013, 6:03:25 AM8/26/13
to julia...@googlegroups.com
I also get the exact same issue on my mac. I think it may be because the startup script sets it's own PATH.

Elliot Saba

unread,
Aug 26, 2013, 12:39:19 PM8/26/13
to julia...@googlegroups.com
Yes, this is likely because of that.  Try editing the `PATH=...` line in the script file contained inside of the .app file

Glenn Fulford

unread,
Aug 26, 2013, 8:11:59 PM8/26/13
to julia...@googlegroups.com
OK, thanks,
Manually adding 'usr/local/bin to the command
do script ("exec bash -c \"PATH='/usr/local/bin:{ROOT}/julia/bin:${
fixed this problem. But I am not sure why it is not picking this up in .bash_profile, I think it has something to do with the way macosx deals with interactive shells (on non login shells>) ?


Pkg.add("Cairo") now gets past the unxz problem, but further errors occur.
ERROR: failed process: Process(`/Users/fulford/.julia/Cairo/deps/src/glib-2.34.3/configure --prefix=/Users/fulford/.julia/Cairo/deps/usr`, ProcessExited(1)) [1]
 in error at error.jl:22

Should I make this an issue? I don't want to put something there if I have just been doing something stupid (I am just beginning with julia). However, I like the Julia language and would like to help out, if possible.





Jameson Nash

unread,
Aug 26, 2013, 8:23:06 PM8/26/13
to julia...@googlegroups.com
all unixes do not execute the `.profile` customization script for non-login shells. you can add additional configuration to your `.bashrc` or your `.juliarc.jl` file instead.

@loladiro, shouldn't it be picking up the OSX binaries that I see in the dependencies list?

Keno Fischer

unread,
Aug 26, 2013, 8:30:27 PM8/26/13
to julia...@googlegroups.com
I'm pretty sure the version we're shipping is broken.

andrew cooke

unread,
Aug 26, 2013, 9:16:59 PM8/26/13
to julia...@googlegroups.com
Not sure this is helpful (as it's not OSX), but for what it's worth I installed Cairo earlier today, on Linux, and it worked fine (after I installed gettext-tools).
Reply all
Reply to author
Forward
0 new messages