tag:gpgtools.tenderapp.com,2011-11-04:/discussions/problems/36916-unable-to-update-to-gnupg-212-on-mac-os-102-yosemite-make-install-failure-missing-fileGPGTools: Discussion 2018-10-18T19:56:20Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-03-29T20:11:58Z2015-03-29T20:11:59ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>I should add that the reason I'm trying to get gnupg-2.1.2
installed is because in spite of trying various suggestions for
allowing me to enter my passphrase in a Terminal/shell window, I
cannot. Instead I have to enter the passphrase into a pinentry
dialog box. This prevents me from using gpg in shell scripts,
etc.</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-01T15:32:52Z2015-04-01T17:25:20ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Jim,</p>
<p>unfortunately we have not started working on integrating gnupg
2.1.x yet, but you could use it via homebrew.</p>
<p>As for the pinentry dialog, did you already try to follow the
instructions in this knowledge base article?<br>
<a href="https://gpgtools.tenderapp.com/kb/faq/how-to-enter-your-passphrase-directly-in-the-terminal">
https://gpgtools.tenderapp.com/kb/faq/how-to-enter-your-passphrase-...</a></p></div>Luke Letag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-01T21:49:52Z2015-04-01T21:49:52ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Luke,<br>
Thanks for responding to my call for help. I did try the
approach<br>
wherein $PINENTRY_USER_DATA<br>
USE_CURSES=1 but that didn't seem to work for me. I've pasted
some<br>
debug information below (delimited by the lines of pound signs) in
case<br>
it is helpful.</p>
<p>Best regards,</p>
<p>Jim</p>
<p>
#################################################################
bash-3.2$ gpg2 --version<br>
gpg (GnuPG) 2.1.2<br>
libgcrypt 1.6.3<br>
Copyright (C) 2015 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later<br>
<a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a><br>
This is free software: you are free to change and redistribute
it.<br>
There is NO WARRANTY, to the extent permitted by law.</p>
<p>Home: ~/.gnupg<br>
Supported algorithms:<br>
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA<br>
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256,
TWOFISH,<br>
CAMELLIA128, CAMELLIA192, CAMELLIA256 Hash: SHA1, RIPEMD160,
SHA256, SHA384, SHA512, SHA224<br>
Compression: Uncompressed, ZIP, ZLIB, BZIP2<br>
#################################################################</p>
<p>
#################################################################
bash-3.2$ echo $PINENTRY_USER_DATA<br>
USE_CURSES=1<br>
#################################################################</p>
<p>
#################################################################
bash-3.2$ cat test<br>
hello world<br>
#################################################################</p>
<p>
#################################################################
bash-3.2$ gpg2 -c < test > test.gpg<br>
gpg: can't connect to the agent: IPC connect call failed<br>
gpg: problem with the agent: No agent running<br>
gpg: can't connect to the agent: IPC connect call failed<br>
gpg: problem with the agent: No agent running<br>
gpg: error creating passphrase: Operation cancelled<br>
gpg: symmetric encryption of '[stdin]' failed: Operation
cancelled<br>
#################################################################</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-03T12:31:22Z2015-04-03T12:31:23ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>To get GPG 2.1.2 working on a system with GPGTools and maintain
an older version (1.4.19), this works:</p>
<p>1) Install GPG 1.4.x in /usr/local/ (standard configure
&& make && make install).</p>
<p>2) Make a copy of ~/.gnupg/ to something like ~/.gnupg2/</p>
<p>3) Install GPGTools as normal.</p>
<p>4) /usr/local/bin/gpg2 will be a symlink to
/usr/local/MacGPG2/bin/gpg2 so delete /usr/local/bin/gpg2</p>
<p>5) Install GPG 2.1.2 using MacPorts and tell it to compile
everything from source: sudo port -v -s install gnupg21</p>
<ul>
<li>This has a lot of dependencies and will take a while.</li>
<li>When it is done it will be installed to
/opt/local/bin/gpg2</li>
</ul>
<p>6) Create a bash script which contains the following: exec
/opt/local/bin/gpg2 --homedir $HOME/.gnupg2 "$@"</p>
<ul>
<li>This will call GPG 2.1 in such a way that it does not convert
the original config files in ~/.gnupg, but allows you to use the
gpg2 command normally.</li>
<li>Using this with Enigmail is simply a matter of changing the
preferences to use /usr/local/bin/gpg2 instead of
/usr/local/bin/gpg (the default).</li>
<li>GPGTools should continue to call the same file (which is why it
created the symlink in the first place, because /usr/local/bin is
already in your path and /usr/local/MacGPG2 is not)</li>
</ul>
<p>None of the above covers customising any of the versions
installed, but that's usually just a case of recompiling or
compiling a new version in some other location (though usually
relying on the libraries installed with the MacPorts version) and
then updating the shell script to point to that instead.</p>
<p>Depending on which programs have already been used you may or
may not need to (or want to) update the gpg-agent.conf file to
specify a particular pinentry program to use with gpg-agent. If
there is more than one person using the system, this will work for
all users (just as long as the GPG home directories are in the same
locations in each user account). And here's the result as it
appears for me with the only thing I have to worry about is
remembering to import new keys into both GPG 1.4 and GPG 2.1.</p>
<pre>
<code>bash4-4.3$ which gpg
/usr/local/bin/gpg
bash4-4.3$ ls -l /usr/local/bin/gpg
-rwxr-xr-x 1 root admin 1136964 3 Apr 22:14 /usr/local/bin/gpg
bash4-4.3$ file /usr/local/bin/gpg
/usr/local/bin/gpg: Mach-O 64-bit x86_64 executable
bash4-4.3$ which gpg2
/usr/local/bin/gpg2
bash4-4.3$ ls -l /usr/local/bin/gpg2
-rwxr-xr-x 1 root admin 194 29 Mar 23:30 /usr/local/bin/gpg2
bash4-4.3$ file /usr/local/bin/gpg2
/usr/local/bin/gpg2: Bourne-Again shell script, ASCII text executable
bash4-4.3$ ls -l /opt/local/bin/gpg2
-rwxr-xr-x 1 root admin 917612 3 Apr 21:15 /opt/local/bin/gpg2
bash4-4.3$ file /opt/local/bin/gpg2
/opt/local/bin/gpg2: Mach-O 64-bit x86_64 executable
bash4-4.3$ ls -l /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
-rwxr-xr-x 1 root wheel 145568 18 Mar 23:52 /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
bash4-4.3$ file /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac
/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac: Mach-O 64-bit x86_64 executable
bash4-4.3$ ls -l /Applications/MacPorts/pinentry-mac.app/Contents/MacOS/pinentry-mac
-rwxr-xr-x 1 root wheel 76108 3 Apr 19:24 /Applications/MacPorts/pinentry-mac.app/Contents/MacOS/pinentry-mac
bash4-4.3$ file /Applications/MacPorts/pinentry-mac.app/Contents/MacOS/pinentry-mac
/Applications/MacPorts/pinentry-mac.app/Contents/MacOS/pinentry-mac: Mach-O 64-bit x86_64 executable
bash4-4.3$ gpg --version
gpg (GnuPG) 1.4.19
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
bash4-4.3$ gpg2 --version
gpg (GnuPG) 2.1.2
libgcrypt 1.6.3
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /Users/username/.gnupg2
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
bash4-4.3$</code>
</pre></div>Bentag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-03T14:17:34Z2015-04-03T14:17:34ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Ben,<br>
Thanks for your notes. Using brew, I was able to install gpg
2.1.2.<br>
What I've not been able to get working is the following (second
note I<br>
posted on the web page):</p>
<blockquote>
<p>I should add that the reason I'm trying to get gnupg-2.1.2
installed is because in spite of trying various suggestions for
allowing me to enter my passphrase in a Terminal/shell window, I
cannot. Instead I have to enter the passphrase into a pinentry
dialog box. This prevents me from using gpg in shell scripts,
etc.</p>
</blockquote>
<p>Have you been able to use "gpg2 -c < plainTextFile >
encryptedFile.gpg"<br>
to encrypt a file AND have the code prompt for the passphrase in
the<br>
Terminal (shell) window? When I try this command I get the
following<br>
results:</p>
<blockquote>
<p>gpg: can't connect to the agent: IPC connect call failed gpg:
problem with the agent: No agent running gpg: can't connect to the
agent: IPC connect call failed gpg: problem with the agent: No
agent running gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of '[stdin]' failed: Operation
cancelled</p>
</blockquote>
<p>When I try the same command with gpg (i.e. not gpg2), I get
the<br>
following prompt in the Terminal window:</p>
<blockquote>
<p>[jclMac:~] jcl% gpg -c < test > test.gpg Enter
passphrase:</p>
</blockquote>
<p>Thanks!</p>
<p>Jim</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-03T15:19:30Z2015-04-03T15:19:30ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Try this instead:</p>
<p>echo "Some text or whatever" | gpg -c > gpgtest-1.gpg<br>
echo "Some other text or whatever" | gpg2 -c > gpgtest-2.gpg</p></div>Bentag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-03T22:33:11Z2015-04-03T22:33:11ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Ben,<br>
I tried your suggestion to pipe text into gpg2 but got the same
error as<br>
follows:</p>
<blockquote>
<p>[jclMac:~] jcl% which gpg2 /usr/local/bin/gpg2 [jclMac:~] jcl%
gpg2 --version gpg (GnuPG) 2.1.2 libgcrypt 1.6.3 Copyright (C) 2015
Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or
later <a href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.</p>
<p>Home: ~/.gnupg Supported algorithms: Pubkey: RSA, ELG, DSA,
ECDH, ECDSA, EDDSA Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES,
AES192, AES256, TWOFISH, CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 Compression:
Uncompressed, ZIP, ZLIB, BZIP2 [jclMac:~] jcl% [jclMac:~] jcl%
[jclMac:~] jcl% echo "Some other text or whatever" | gpg2 -c >
gpgtest-2.gpg gpg: can't connect to the agent: IPC connect call
failed gpg: problem with the agent: No agent running gpg: can't
connect to the agent: IPC connect call failed gpg: problem with the
agent: No agent running gpg: error creating passphrase: Operation
cancelled gpg: symmetric encryption of '[stdin]' failed: Operation
cancelled [jclMac:~] jcl%</p>
</blockquote>
<p>Cheers,</p>
<p>Jim</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-04T05:15:09Z2015-04-04T05:15:10ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Try this then:</p>
<pre>
<code>ps auxww | grep gpg-agent</code>
</pre>
<p>The output should be three lines, one containing something
like<br>
"gpg-agent --use-standard-socket --daemon", the next with
"/bin/bash /usr/local/MacGPG2/libexec/shutdown-gpg-agent" and the
last with the command just run "grep gpg-agent".</p>
<p>If there are no lines or just the last one then either gpg-agent
needs<br>
to be started or it is having problems running. Since it is
bundled<br>
with GPG 2.1.2 then it is possible that there is a flaw with
the<br>
homebrew build. And, given it's homebrew, when I say possible I
really<br>
mean likely. Homebrew may claim to have more packages, but MacPorts
is<br>
far more reliable with what it does have (and what it does have
is<br>
enough to build <em>everything</em> else).</p>
<p>Anyway, if gpg-agent is not running, try running this
command:</p>
<pre>
<code>gpg-agent --use-standard-socket --daemon</code>
</pre>
<p>Also check your gpg-agent.conf file and make sure it includes
the<br>
following two lines:</p>
<pre>
<code>log-file ~/Logs/gpg-agent.txt
debug-level guru</code>
</pre>
<p>This will create a Logs/ directory in your ~/.gnupg/ directory
which<br>
contains debugging information about gpg-agent if it runs.</p></div>Bentag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-04T15:49:34Z2015-04-04T15:49:34ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Ben,<br>
Thanks for your continued help on this problem. Below is what I got
upon<br>
checking the process listing:</p>
<blockquote>
<p>[jclMac:~] jcl% ps auxww | grep gpg-agent jcl 401 0.0 0.0
2434392 928 ?? S 3:06PM<br>
0:00.01 /bin/bash /usr/local/MacGPG2/libexec/shutdown-gpg-agent</p>
<p>[jclMac:~] jcl% gpg-agent --use-standard-socket --daemon
Assertion failed: (!res), function leave_npth, file npth.c, line
129. Abort</p>
<p>[jclMac:~] jcl% sudo kill -HUP 401 Password:</p>
<p>[jclMac:~] jcl% gpg-agent --use-standard-socket --daemon
Assertion failed: (!res), function leave_npth, file npth.c, line
129. Abort</p>
</blockquote>
<p>Perhaps the easiest thing for me to try next is try to use
macports for<br>
the installation. As you say, it could be a brew install-related
problem.</p>
<p>Thanks,</p>
<p>Jim</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-04T16:19:31Z2015-04-04T16:19:32ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Well, npth is one of the dependencies of GPG 2.1 and if it
hasn't been<br>
compiled correctly by brew (not surprising, it's a little fiddly
with<br>
them because they must be done in a very specific order) then
things<br>
will definitely break.</p>
<p>As for brew vs. macports, well, brew is a ruby based project to
try to<br>
shoe-horn compiling anything on os x in the most general way
possible<br>
(to get more stuff faster). Whereas MacPorts is essentially a port
of the FreeBSD package management system. It's a little more robust
(and<br>
still has <em>plenty</em> of stuff).</p>
<p>For my part I turned my back on Homebrew with my old MBP on OS X
10.5<br>
when it told me I could not install my own compiled version of
Python or<br>
the official Python release from python.org; it was its way or
the<br>
highway. So I introduced it to the "srm -rfmz" command (secure
delete).</p></div>Bentag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-04-04T16:22:56Z2015-04-04T16:22:56ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Thanks, again, Ben. I'll move on to macports and see how things
go. I've<br>
used both macports and fink in the past but decided to try brew<br>
recently. Brew has worked well for some packages.</p>
<p>Cheers,</p>
<p>Jim</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002015-08-14T12:49:02Z2017-06-13T20:41:12ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>I have attached our ticket to integrate gnupg 2.1 so you'll be notified if there are news in that regard.</p>
<p>Closing this discussion for the time being. You can always re-open if you want.</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002017-06-13T20:41:29Z2017-06-13T20:41:29ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Jim and Ben,</p>
<p>we have a first <a href="https://releases.gpgtools.org/nightlies/GPG_Suite-gnupg2.1-3n.dmg">GPG Suite</a> test build which integrates gpg 2.1. Here is the <a href="https://releases.gpgtools.org/nightlies/GPG_Suite-gnupg2.1-3n.dmg.sig">signature file</a> for that release.</p>
<p>It would be great if you could test this build and let us know if run into any trouble. Please note, that downgrading to the current beta release will require additional steps in case new keys were created using this test build. Depending on the test results, gpg 2.1 may soon land in the beta branch.</p>
<p>All the best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002017-06-14T12:49:09Z2017-06-14T12:49:09ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Hi Steve,<br>
My Mac system failed about 6 months ago and I decided then to switch to<br>
linux so I'm not in a position to test the new Mac GPG suite.</p>
<p>Best regards,</p>
<p>Jim</p></div>jim.lubytag:gpgtools.tenderapp.com,2011-11-04:Comment/364179002017-06-14T13:35:38Z2017-06-14T13:35:38ZUnable to update to gnupg-2.1.2 on 10.10.2 (make install failure, missing file)<div><p>Thanks for the feedback. No problem at all. I'll close this. If you Ben, have any feedback just re-open anytime.</p></div>Steve