Open smithwinston opened 3 years ago
Apologies for not getting back to you sooner. Have you had any luck solving this?
I'm afraid I've not seen this issue before, and I haven't been able to think of a way to re-produce it either.
Only thing I can think of is that might have some environment variable set in
your shell in such a way that it interferes with Emacs' configure script. I
would guess prime suspects would be CFLAGS
, LDFLAGS
, PKG_CONFIG_PATH
, and
LIBRARY_PATH
.
I never did figure it out and stuck with the previously working commit.
Hmm, it seems the configure script runs this to determine if gnutls is available:
pkg-config --exists --print-errors 'gnutls >= 2.12.2'
On success it'll return a exit code of 0 and print nothing.
Potentially your gnutls is out of date? Otherwise I'd try to reinstall the gnutls
homebrew formula for good measure:
brew reinstall gnutls
@smithwinston is still is an issue for you? Did you manage to get it working?
You may want to check that you have a usable pkg-config
installed. That resolvedthe issue for me when I hit this problem.
I had the same issue with emacs-plus@29 on a Mac Intel.
gnutls depends on the p11-kit package.
The command pkg-config --exists --print-errors 'gnutls >= 2.12.2'
complained about the p11-kit-1 package :
Package p11-kit-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `p11-kit-1.pc' to the PKG_CONFIG_PATH environment variable Package 'p11-kit-1', required by 'gnutls', not found
brew doctor
told me this packages was installed, but not linked. However, I had another issue when I tried to link it :
Error: Could not symlink lib/pkcs11/p11-kit-client.so /usr/local/lib/pkcs11 is not writable.
sudo chown -R `whoami`:admin /usr/local/lib
brew link p11-kit
brew install emacs-plus --with-native-comp
I was able to resolve this on M1 Mac by installing pkg-utils
(brew install pkg-utils
).
on Mac Book Air M3 macos 14.6
configure: WARNING: Unable to locate a usable pkg-config configure: error: The following required libraries were not found: gnutls
gnutls or gnuntls-dev did not fix. Resolved by sudo port install pkgconfig
Hmmm, if you run make bootstrap
it will install all required dependencies, both Ruby and Homebrew packages. The latter does include pkg-config
.
You can look at the Brewfile
to see Homebrew dependencies, and Gemfile
for Ruby dependencies.
Hmmm, if you run
make bootstrap
it will install all required dependencies, both Ruby and Homebrew packages. The latter does includepkg-config
.You can look at the
Brewfile
to see Homebrew dependencies, andGemfile
for Ruby dependencies.
will try 'make bootstrap' ; I am on a macport system and they call the package pkgconfig
@thynus Ah, I'm afraid you're a bit on your own then, cause the build script is quite tightly integrated with Homebrew, and not just via the use of a Brewfile
.
For example, one of the final steps the build script does to make the Emacs.app bundle as self-contained as possible is to embed all external shared libraries located within Homebrew into the app bundle.
So you might need to tweak things a bit for the build script to properly detect shared libraries linked to via macports.
For some reason
build-emacs-for-macos
started failing recently during the Emacs configure phase -- not being able to findgnutls
:However it's definitely installed, it's listed in the
Brewfile
and I've manually reinstalled it:This is macOS 10.15 Catalina with Xcode 12.4 and an up-to-date homebrew install: