Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

emacs marmalade: "Cannot open load file", "package"

I'm using emacs 24 and would like to install marmalade.

I've tried adding the following to my ~/.emacs file, as per the instructions on http://marmalade-repo.org/:

(require 'package)
(add-to-list 'package-archives 
    '("marmalade" .
      "http://marmalade-repo.org/packages/"))
(package-initialize)

When I try to reload e-macs I get the error:

Error in init file: File error: "Cannot open load file", "package".

What might be wrong?

like image 911
The Unfun Cat Avatar asked Nov 20 '13 20:11

The Unfun Cat


2 Answers

Sounds like your version of Emacs does not come with library package.el. Does M-x find-library package find it? If not, you can try downloading it from the web (maybe start with Emacs Wiki), and then putting it in your load-path.

But even in that case it might not work with your Emacs version.

like image 142
Drew Avatar answered Oct 21 '22 19:10

Drew


I got this message when I installed the latest emacs (26) from homebrew, and ran it. The problem was that OS X comes with a really old emacs (22). That was what was running when I ran emacs.

I assume that the new emacs wasn't linked in my current terminal. I fixed this problem by just opening a new terminal and running emacs from there.

like image 7
Mary Rose Cook Avatar answered Oct 21 '22 18:10

Mary Rose Cook