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

Installation fails on OSX - libffi #514

Open
lctrt opened this issue May 22, 2016 · 2 comments
Open

Installation fails on OSX - libffi #514

lctrt opened this issue May 22, 2016 · 2 comments

Comments

@lctrt
Copy link

lctrt commented May 22, 2016

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!

@alekcz
Copy link

alekcz commented Jun 23, 2016

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

@lgouger
Copy link

lgouger commented Nov 27, 2017

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants