3

I want to install https://github.com/syohex/emacs-helm-gtags, and here is the installation instruction:

helm-gtags is available on MELPA and MELPA stable

You can install helm-gtags with the following command.

M-x package-install [RET] helm-gtags [RET]

But after M-x package-install [RET] helm-gtags [RET], I got "no match".

How shall I solve this problem? Thanks.


update:

1) Running M-x package-refresh-contents [RET] will stay at "Contacting host: elpa.gnu.org:80" forever, so doesn't seem to solve the problem. Why doesn't finish running?

2) Even without waiting for "Contacting host: elpa.gnu.org:80" to go away, running package-install on helm-gtags still results in "no match".

3) Do I need to add the repository of helm-gtags somewhere, and what is its repository?

6

helm-gtags is not available in elpa repository. You should add melpa repository to your packages archives to install helm-gtags. Add the following code in your emacs init file,

(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
                     ("melpa" . "https://melpa.org/packages/")))

Then press C-x C-s to save and M-x eval-buffer for the changes to apply. Then try to refresh packages and search for helm-gtags package. More information about emacs packages repository can be found in Emacs Wiki.

  • I get certificate warnings when naively copy/pasting this solution. ("The TLS connection to marmalade-repo.org:443 is insecure for the following reason: certificate has expired") The Marmalade project seems to be defunct. emacswiki.org/emacs/MarmaladeRepo – clozach Jan 17 at 18:36
1

M-x package-refresh-contents [RET] M-x package-install [RET] helm-gtags [RET]

Or

M-x package-list-packages [RET] C-s helm-gtags [RET] i x

  • You might want to elaborate a bit. Explain what the no match error means and what your answer does that takes care of it. – Drew Jul 8 '16 at 23:28
  • 1) Running -x package-refresh-contents [RET] will stay at "Contacting host: elpa.gnu.org:80" forever, so doesn't seem to solve the problem. Why doesn't finish running? 2) Even without waiting for "Contacting host: elpa.gnu.org:80" to go away, running package-install on helm-gtags still results in "no match". 3) Do I need to add the repository of helm-gtags somewhere, and what is its repository? – Tim Jul 9 '16 at 0:45
  • If refresh doesn't help, one workaround is to exchange the https repository URL for http, as seen in this comment: emacs.stackexchange.com/questions/2490/… – Graham Aug 14 '17 at 12:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.