Pretty Emacs: Compile guide for unsupported platforms
If you are using a platform other than a i386, you will need to compile my Emacs packages yourself. So, here a simple guide how to do this.
- First, make sure you have the source repository enabled, by adding
deb-src http://ppa.launchpad.net/avassalotti/ubuntu gutsy main
to your/etc/apt/sources.list
. - Install the build-dependencies and some packaging tools:
sudo apt-get update sudo apt-get build-dep emacs-snapshot sudo apt-get install dpkg-dev devscripts fakeroot emacsen-common
- Download the source package and compile it with:
fakeroot apt-get --compile source emacs-snapshot
- Finally, install the newly built packages:
sudo dpkg -i emacs-snapshot*.deb
Note, this final step may fail if you have an older version of the package already installed. If it is the case, just do it again.
Justin said,
April 17, 2007 @ 5:29 am
Thanks for this!
rgrant said,
June 7, 2007 @ 5:15 pm
very helpful, thanks! step 3 needs fakeroot.
Alexandre said,
June 7, 2007 @ 5:20 pm
Fixed, thanks!
Ryan said,
June 28, 2007 @ 12:07 am
I had to sudo aptitude install emacsen-common before step 4 would work for me.
Alexandre said,
June 30, 2007 @ 5:38 pm
Fixed too, thanks!
Tomasz said,
July 1, 2007 @ 11:07 pm
Works like a charm!
ob said,
July 3, 2007 @ 7:25 pm
Does this work on Debian? I tried it on debian 4.0 and I’m getting a core dump from the shell
Alexandre said,
July 4, 2007 @ 11:36 am
Ouch…
It should work on Debian. Honestly, I don’t know why you are getting a segfault. Do you mind sending me the full build log to my email address? Please include the core file if you still have it.
amicky said,
July 14, 2007 @ 5:47 am
I have juste finished compiling and installing emacs under ubuntu festy fawn 7.4 and everything is well done!! thank you.
borrey said,
July 30, 2007 @ 7:40 pm
I can’t get it to work either
Alexandre said,
July 30, 2007 @ 9:40 pm
borrey, I have you correctly added my source repository by adding
deb-src http://debs.peadrop.com feisty backports
to your/etc/apt/sources.list
?Bill said,
August 1, 2007 @ 11:03 am
I am having exactly the same problem as borrey. Yes, I did append “deb-src http://debs.peadrop.com feisty backports” to the end of /etc/apt/sources.list Also, for what it’s worth, this is a fairly virgin Ubuntu installation.
Alexandre said,
August 1, 2007 @ 2:44 pm
You need to run
sudo apt-get update
beforesudo apt-get build-dep emacs-snapshot
.Bill said,
August 4, 2007 @ 2:27 pm
I should have mentioned my problem in the earlier step (sudo apt-get update):
Failed to fetch http://debs.peadrop.com/dists/feisty/Release Unable to find expected entry backports/binary-amd64/Packages in Meta-index file (malformed Release file?)
Alexandre said,
August 4, 2007 @ 3:08 pm
Bill, you got this error message because my repository doesn’t have binary packages for the amd64. Just remove
deb http://debs.peadrop.com feisty backports
, while keeping thedeb-src
one, from yoursources.list
.Dave said,
August 18, 2007 @ 10:51 am
After fakeroot apt-get –compile source emacs-snapshot
I get this error:
Dave said,
August 18, 2007 @ 10:57 am
I found this old thread from 2005 fixing a bug in GCC http://gcc.gnu.org/ml/gcc-bugs/2005-08/msg02891.html
Here is my GCC
wilk said,
August 27, 2007 @ 2:21 am
I’ve been happily using your configured versions of emacs for a while now, without any problem. I need to manually compile it since I’m running a 64bit machine (on Ubuntu gutsy)
There is one tiny problem though. At the moment, the emacs-snapshot from the official repos is newer than yours and update-notifier is always proposing to upgrade yours… What’s the cleanest way to modify the Makefile to add a suffix to the programs compiled ?
Thanks a lot for Pretty Emacs.