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

OSX: Package 'libffi', required by 'gobject-2.0', not found #104

Closed
claucece opened this issue Mar 11, 2019 · 11 comments
Closed

OSX: Package 'libffi', required by 'gobject-2.0', not found #104

claucece opened this issue Mar 11, 2019 · 11 comments
Labels
bug importance low An issue that is not very important. If we can have it, great - if not, it's OK too

Comments

@claucece
Copy link
Member

Currently, I can't run ./configure as it says:

OSX: Package 'libffi', required by 'gobject-2.0', not found. By doing

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/, it works again.

Unsure if this is local, if the homebrew formula was broken, etc; but I opened it here for reference.

@claucece claucece added bug importance low An issue that is not very important. If we can have it, great - if not, it's OK too labels Mar 11, 2019
@olabini
Copy link
Contributor

olabini commented Mar 11, 2019

Yes, this is the same problem we had with the CoyIM build on OS X Travis. Something seems to have changed with the libffi package, or something with brew. Not sure. We can't do anything about it though, so my recommendation is that we put this information in the README and close this issue.

@claucece
Copy link
Member Author

Isolating this, this is related to the newer formula of glib in Homebrew (2.60).

@lotuc
Copy link

lotuc commented Mar 28, 2019

mesonbuild/meson#2273 (comment)

This works.

@claucece
Copy link
Member Author

Yes, the same, when I use export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" it works. When working on this I noticed that if I switch the glib version to an older one (2.56.1), everything works correctly. @lotuc

@evandrix
Copy link

well, you were warned:

$ brew info libffi
libffi: stable 3.2.1 (bottled), HEAD [keg-only]
Portable Foreign Function Interface library
https://sourceware.org/libffi/
/usr/local/Cellar/libffi/3.2.1 (16 files, 296.8KB)
  Poured from bottle on 2019-01-14 at 03:51:17
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/libffi.rb
==> Options
--HEAD
	Install HEAD version
==> Caveats
libffi 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 libffi you may need to set:
  export LDFLAGS="-L/usr/local/opt/libffi/lib"

For pkg-config to find libffi you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

==> Analytics
install: 120,865 (30 days), 367,289 (90 days), 1,244,416 (365 days)
install_on_request: 3,645 (30 days), 10,974 (90 days), 39,185 (365 days)
build_error: 0 (30 days)

@claucece
Copy link
Member Author

Yes, @evandrix ... that was noted, but for older versions that was not needed. I think that is why people got confused ;)

@gaslitbytech
Copy link

OSX: Package 'libffi', required by 'gobject-2.0', not found. By doing

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/, it works again.

I had this issue while trying pip install pycairo and this solution worked perfectly except I had to let autocomplete find a newer version of libffi

export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/

@shiv1m
Copy link

shiv1m commented Sep 6, 2019

I am facing the same issue, Package 'libffi', required by 'gobject-2.0', not found MACOS-10.12.6 Sierra #113

Tried both export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig",
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/

Not working for me. I am using node version 12.7.0

@pkkr
Copy link

pkkr commented Sep 7, 2019

I am facing the same issue, Package 'libffi', required by 'gobject-2.0', not found MACOS-10.12.6 Sierra #113

Tried both export PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/local/opt/libffi/lib/pkgconfig",
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.2.1/lib/pkgconfig/

Not working for me. I am using node version 12.7.0

Sam issue not fixed by adding the export

@claucece
Copy link
Member Author

claucece commented Sep 8, 2019

Hey!

This library is not about the brew formula or libffi. Were those logs shown when trying to run this library @shiv1m @pkkr ?

Thanks!

@rririanto
Copy link

Yes, the same, when I use export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig" it works. When working on this I noticed that if I switch the glib version to an older one (2.56.1), everything works correctly. @lotuc

I fIxed by brew install libffi and adding export PKG_CONFIG_PATH .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug importance low An issue that is not very important. If we can have it, great - if not, it's OK too
Projects
None yet
Development

No branches or pull requests

8 participants