ueno / ruby-gpgme

a ruby interface to GnuPG Made Easy (GPGME).
GNU Lesser General Public License v2.1
232 stars 99 forks source link

Unable to get gpgme installed #98

Open scorpion7-7 opened 7 years ago

scorpion7-7 commented 7 years ago

All,

Not a ruby developer - so hopefully someone can make "heads or tails" of this. Apologies for lack of Ruby background.

Basics:

In an effort to breakdown what is happening, I did the following (please feel free to let me know if any of this wouldn't be valid to try to determine source of issue):

Back tracking this, it appears (I think) to be related to this: doc/Makefile.am Line 71: sed '/^##/ d' $< >$@

Suspect that "$<" is not evaluated to a value? Noting the lack of input filename (would think that should be present, no? Thus fulfilling the "$<" variable declaration in the above)

Hopefully someone has some thoughts on this and/or possible fix? Wasn't sure how critical the errorref.txt.x file is, so didn't want to try to figure out a means to bypass and end up with an application issue.

THANKS!

scorpion7-7 commented 7 years ago
zx96 commented 6 years ago

I was running into the same issue trying to get GitLab running on FreeBSD 11.1. When you pointed out that there was an issue in the make process, it reminded me of an issue I had with another dependency (grpc).

You need to build on FreeBSD with GNU Make, which is installed as gmake instead of make. To resolve that, I ran:

mkdir ~/bin
ln -s $(which gmake) ~/bin/make
PATH="~/bin:$PATH" bundle install  # or gem install gpgme

After that, I still had issues with posix-io.c, but I decided to take the easy route of resolving that and adding the --use-system-libraries flag as suggested by gpgme. Obviously, this isn't a long-term fix, but... If you're also using Bundle, you can set that with:

bundle config build.gpgme --use-system-libraries

Now, onto fixing the next dependency!