Exit Emacs. Does the directory ~/.emacs.d/elpa/cl-lib-<version>
exist? If so remove it. If not, then remove ~/.emacs.d/elpa/{git-commit,magit,magit-popup,with-editor}-<version>
instead. Actually you might want to remove these directories even if the cl-lib
directory existed, but first try without doing that.
Then start Emacs. I believe that Spacemacs should now reinstall missing packages. (Not sure though, I don't use Spacemacs. Or package.el
.)
Since magit
does require cl-lib
, there is no need for you to require it yourself. The problem is something else and the above nuclear option should do the trick.
Also, make sure that you are running an up-to-date version of Git. Magit requires at least v1.9.4.
cl-struct-defiine
. You need torequire
it (or load it in another way).require
in Spacemacs, I would love to give it a try though.