
Installation failes: "You must have GnuPG installed"
Reported by Skyrazer | May 19th, 2011 @ 11:25 AM
The error message above is shown during the installation process, but GnuPG is installed (GPGTools-20110322).
The terminal command "which gpg" says: "/usr/local/bin/gpg"
This problem refers to the installer of GPGServices 1.6.
Comments and changes to this ticket
-
Skyrazer May 19th, 2011 @ 11:25 AM
- Title changed from Installation failes: "You must ahve GnuPG installed" to Installation failes: "You must have GnuPG installed"
-
Alex (via GPGTools) May 19th, 2011 @ 03:16 PM
- Assigned user changed from ronin-140089 (at lighthouseapp) to Alex (via GPGTools)
Mh, can you identify what the issue might be on your machine (this is the responsible script):
https://github.com/GPGTools/GPGTools_Core/blob/master/scripts/check...
Maybe "which" is not located at "/usr/bin/which"?
Could you also attach some debug information:
$ curl -OL http://github.com/GPGTools/GPGTools_Core/raw/master/scripts/debugGPGTools.sh $ sh debugGPGTools.sh
-
Alex (via GPGTools) May 19th, 2011 @ 03:17 PM
- State changed from new to hold
-
-
Skyrazer May 21st, 2011 @ 11:55 AM
Sorry, was busy the last days. which is at /usr/bin/which. check_for_gpg.sh exits with status 1.
I attached the debug output (slightly altered).
-
Alex (via GPGTools) May 21st, 2011 @ 12:15 PM
Thanks. Ok, you've gpg installed ;) Still, don't know what the issue on you system is. What is the output of this script?
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin [ -r "$HOME/.profile" ] && . "$HOME/.profile" if ( /usr/bin/which -s gpg ) then echo 1; fi if ( /usr/bin/which -s gpg2 ) then echo 2; fi
What is the content of your ~/.profile?
-
Skyrazer May 21st, 2011 @ 12:28 PM
The output is:
1
2This is the content of .profile:
export ANT_HOME=/usr/local/ant export PATH=${PATH}:${ANT_HOME}/bin export PATH=/usr/local/Trolltech/Qt-4.3.4/bin:/opt/local/bin:/opt/local/sbin:$PATH export MANPATH=/opt/local/man/:$MANPATH export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad alias ll='ls -la' alias ..='cd ..' source .smbcn
-
Alex (via GPGTools) May 21st, 2011 @ 12:51 PM
Ok, maybe it's the missing "space". I guess this works now?
curl https://github.com/GPGTools/GPGTools_Core/raw/master/scripts/check_for_gpg.sh | sh; echo $?
It should print "0".
-
-
Alex (via GPGTools) May 21st, 2011 @ 01:03 PM
- State changed from hold to resolved
Nice. It was s.th. like:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin [ -r "$HOME/.profile" ] && . "$HOME/.profile" if( /usr/bin/which -s gpg ) then echo 1; fi if( /usr/bin/which -s gpg2 ) then echo 2; fi
Now it is:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin [ -r "$HOME/.profile" ] && . "$HOME/.profile" if ( /usr/bin/which -s gpg ) then echo 1; fi if ( /usr/bin/which -s gpg2 ) then echo 2; fi
(exit replaced by echo)
-
Skyrazer May 21st, 2011 @ 01:10 PM
(You posted two times the same code as far as I can see. But it's good, that it going to work now. Will you publish a new version of the installer?)
-
Alex (via GPGTools) May 21st, 2011 @ 01:21 PM
It's about the space between "if" and "(". Not sure about the new installer. I assume your issue was an isolated incident (maybe you've changed the default shell?) and I'll upload a new installer in case we get another report.
In any case the change will be part of version 1.7. -
Skyrazer May 21st, 2011 @ 01:36 PM
Ah, ok. Didn't recognize this. I changed the script inside the installer package by hand to test this. The problem still remained. So the problem wasn't about the spaces. Indeed the script still echoed "1". I than found an error in my .profile: .smbcn didn't exit. After removing this line it now works.
Sorry for making so much trouble and thank you for your help!
One last thought: Maybe it would be good to change the behaviour of the installation routine? In the moment everybody who has an incorrect .profile-file won't be able to install GPGServices. Maybe there's a better way to check if gpg exists?
-
-
steve June 18th, 2015 @ 04:22 PM
- State changed from resolved to released
- Importance cleared.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป