Skip to content

Installation fails on OSX - libffi #514

Open

Description

@lctrt

I am following the installation process described in the wiki, using homebrew, but I am getting the following error :

ValueError: running 'pkg-config libffi --cflags-only-I' failed:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
and the default ['/usr/include/ffi'] is not a valid directory
make: *** [build_with_jit] Error 1

I am using OSX El Capitan 10.11.1, I think it has to be related to '/usr/include' not being a folder anymore, but brew install libffi doesn't create a libffi.pc file anyway.

Any idea to solve this?

Cheers!

Activity

  1. alekcz commented on Jun 23, 2016

    @alekcz

    I built pixie today on OSX 10.11.4. See #491 and check out the updates on the wiki. Between the two of them you should come right. If not just give me a shout

  2. lgouger commented on Nov 27, 2017

    @lgouger

    I've seen this error while building when libffi was installed using brew.

    I resolved this build issue by setting the 'PKG_CONFIG_PATH' environment variable based on information from brew info libffi

    Portable Foreign Function Interface library
    https://sourceware.org/libffi/
    /usr/local/Cellar/libffi/3.0.13 (15 files, 374.5KB)
      Poured from bottle on 2016-07-21 at 14:50:28
    /usr/local/Cellar/libffi/3.2.1 (16 files, 296.9KB)
      Poured from bottle on 2017-03-13 at 08:38:55
    From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libffi.rb
    ==> Caveats
    This formula is keg-only, which means it was not symlinked into /usr/local,
    because some formulae require a newer version of libffi.
    
    For compilers to find this software you may need to set:
        LDFLAGS:  -L/usr/local/opt/libffi/lib
    For pkg-config to find this software you may need to set:
        PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig
    

    so for me
    export PKG_CONFIG_PATH='/usr/local/opt/libffi/lib/pkgconfig'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions