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

The Unfun Cat picture The Unfun Cat · Nov 20, 2013 · Viewed 13k times · Source

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?

Answer

Drew picture Drew · Nov 20, 2013

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.