Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues installing Cairo.jl on macOS 10.13 #203

Closed
sivapvarma opened this issue Nov 4, 2017 · 8 comments · Fixed by #292
Closed

Issues installing Cairo.jl on macOS 10.13 #203

sivapvarma opened this issue Nov 4, 2017 · 8 comments · Fixed by #292

Comments

@sivapvarma
Copy link

sivapvarma commented Nov 4, 2017

Below is the command's output

looks like freetype dependency is not being installed by Homebrew.

julia> Pkg.add("Cairo")
INFO: Installing Cairo v0.3.1
INFO: Building Homebrew
Already up-to-date.
INFO: Building Cairo
WARNING: The following packages do not have relocatable bottles, installation may fail!
Please report these packages to https://github.com/JuliaLang/Homebrew.jl:
  staticfloat/juliadeps/fontconfig
==> Installing fontconfig from staticfloat/juliadeps
==> Downloading https://www.freedesktop.org/software/fontconfig/release/fontconf
Already downloaded: /Users/sivapvarma/Library/Caches/Homebrew.jl/fontconfig-2.12.1.tar.bz2
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/3790b
Already downloaded: /Users/sivapvarma/Library/Caches/Homebrew.jl/fontconfig--patch-e7c074109a367bf3966578034b20d11f7e0b4a611785a040aef1fd11359af04d.diff
==> Patching
==> Applying patch-2.12.1-fccache.diff
patching file src/fccache.c
==> ./configure --disable-silent-rules --enable-static --with-add-fonts=/System/
Last 15 lines from /Users/sivapvarma/Library/Logs/Homebrew/fontconfig/01.configure:
checking for struct statfs.f_flags... yes
checking for struct statfs.f_fstypename... yes
checking for struct dirent.d_type... yes
checking for FREETYPE... no
configure: error: in `/private/tmp/fontconfig-20171103-26222-17wwa08/fontconfig-2.12.1':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables FREETYPE_CFLAGS
and FREETYPE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details

If reporting this issue please do so to (not Homebrew/brew or Homebrew/core):
staticfloat/juliadeps

====================================[ ERROR: Cairo ]=====================================

LoadError: failed process: Process(`/Users/sivapvarma/.julia/v0.6/Homebrew/deps/usr/bin/brew install --ignore-dependencies staticfloat/juliadeps/fontconfig`, ProcessExited(1)) [1]
while loading /Users/sivapvarma/.julia/v0.6/Cairo/deps/build.jl, in expression starting on line 162

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

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

WARNING: Cairo had build errors.

 - packages with build errors remain installed in /Users/sivapvarma/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("Cairo")`
 - build a single package by running its `deps/build.jl` script

=========================================================================================
INFO: Package database updated
INFO: METADATA is out-of-date — you may not have the latest version of Cairo
INFO: Use `Pkg.update()` to get the latest versions of your packages

Here is my versioninfo

julia> versioninfo()
Julia Version 0.6.1
Commit 0d7248e (2017-10-24 22:15 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
@sivapvarma sivapvarma changed the title Installing Cairo.jl on macOS 10.13 Issues installing Cairo.jl on macOS 10.13 Nov 4, 2017
@lobingera
Copy link
Contributor

@sivapvarma Have you reported to Homebrew.jl?

@sivapvarma
Copy link
Author

sivapvarma commented Nov 5, 2017

I opened an issue there now.

@v-i-s-h
Copy link

v-i-s-h commented Nov 5, 2017

+1

I tried executing the failed command from terminal and git this output.

iMac-vish:~ vish$ /Users/vish/.julia/v0.6/Homebrew/deps/usr/bin/brew install --ignore-dependencies staticfloat/juliatranslated/fontconfig
Error: No available formula with the name "staticfloat/juliatranslated/fontconfig" 
==> Searching for a previously deleted formula...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.

Is this a problem with homebrew or Cario.jl?

@lobingera
Copy link
Contributor

The error message you see is a brew/Homebrew problem.

@v-i-s-h
Copy link

v-i-s-h commented Nov 5, 2017

Now with Pkg.build("Cairo") it works for me!
Pkg.test( "Cairo" ) reports all tests are passed.

@kchanqvq
Copy link

kchanqvq commented Apr 2, 2019

Now with Pkg.build("Cairo") it works for me!
Pkg.test( "Cairo" ) reports all tests are passed.

How did you fix it? I still have this problem on both Hi Sierra and Mojave.

@kchanqvq
Copy link

kchanqvq commented Apr 2, 2019

Here's my log.

julia> Pkg.build("Cairo")
Building LibCURL ─→ ~/.julia/packages/LibCURL/khRkY/deps/build.log
Building WinRPM ──→ ~/.julia/packages/WinRPM/Y9QdZ/deps/build.log
Building Homebrew → ~/.julia/packages/Homebrew/s09IX/deps/build.log
Building Cairo ───→ ~/.julia/packages/Cairo/CXPG1/deps/build.log
┌ Error: Error building Cairo:

│ signal (11): Segmentation fault: 11
│ in expression starting at /Users/apple/.julia/packages/Cairo/CXPG1/deps/build.jl:165
│ _platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)
│ Allocations: 19340582 (Pool: 19337804; Big: 2778); GC: 43
└ @ Pkg.Operations /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.1/Pkg/src/Operations.jl:1075

@lobingera
Copy link
Contributor

@BlueFlo0d This looks like #271.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants