I’ve been using Homebrew on our Mac for a while now. I like it very much. I’ve recently run into an issue, though. Sending emails from Emacs stopped working. I was getting was this:
Opening STARTTLS connection to `fencepost.gnu.org:25'...failed network-stream-get-response: Wrong type argument: processp, nil
The important setting to remember to learn more is this:
(setq smtpmail-debug-info t)
Resent the mail and switch to a buffer called `*trace of SMTP session to fencepost.gnu.org*`.
There:
220 fencepost.gnu.org ESMTP Exim 4.71 Mon, 07 Apr 2014 01:00:52 -0400 250-fencepost.gnu.org Hello 178-83-163-103.dynamic.hispeed.ch [178.83.163.103] 250-SIZE 52428800 250-PIPELINING 250-AUTH CRAM-MD5 250-STARTTLS 250 HELP Process smtpmail deleted dyld: Library not loaded: /usr/local/lib/libnettle.4.7.dylib Referenced from: /usr/local/bin/gnutls-cli Reason: image not found Process smtpmail trace/BPT trap: 5
Oops, it seems that I uninstalled something that gnutls required!
Time to check things:
alex@Megabombus:/usr/local/bin (master)$ brew update ... alex@Megabombus:/usr/local/bin (master)$ brew upgrade nettle Error: nettle-2.7.1 already installed alex@Megabombus:/usr/local/bin (master)$ brew upgrade gnutls Error: gnutls-3.2.12.1 already installed alex@Megabombus:/usr/local/bin (master)$ ls /usr/local/lib/libnettle.* /usr/local/lib/libnettle.4.5.dylib /usr/local/lib/libnettle.a /usr/local/lib/libnettle.4.dylib /usr/local/lib/libnettle.dylib alex@Megabombus:/usr/local/bin (master)$ brew reinstall gnutls ==> Reinstalling gnutls ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/gnutls-3.2. Already downloaded: /Library/Caches/Homebrew/gnutls-3.2.12.1.mavericks.bottle.tar.gz ==> Pouring gnutls-3.2.12.1.mavericks.bottle.tar.gz 🍺 /usr/local/Cellar/gnutls/3.2.12.1: 931 files, 8,4M alex@Megabombus:/usr/local/bin (master)$ brew reinstall nettle ==> Reinstalling nettle Warning: nettle-2.7.1 already installed, it's just not linked alex@Megabombus:/usr/local/bin (master)$ brew link nettle Linking /usr/local/Cellar/nettle/2.7.1... 16 symlinks created alex@Megabombus:/usr/local/bin (master)$ gnutls-cli --version gnutls-cli 3.2.12 Copyright (C) 2000-2014 Free Software Foundation, and others, all rights reserved. This is free software. It is licensed for use, modification and redistribution under the terms of the GNU General Public License, version 3 or later <http://gnu.org/licenses/gpl.html> Please send bug reports to: <bugs@gnutls.org>
That seems to have fixed it!
I wonder how this happened in the first place.
#Software #Emacs