I want the latest version of emacs to run on my raspberry pi.The raspberry pi runs raspbian and it seems that the repository only has version 23.4.1 which I can not use for it breaks the packages I use in emacs.So has anyone installed emacs24.4 on the raspberry pi successfully?
Ok, so a method you can try to install it, will be to compile it. To do this, follow the steps in terminal:
- Download it from GNU:
tar -xzvf emacs-24.4.tar.gz
- Navigate to the unzipped directory
- After the command from step 4 is done, type:
- Finally type in terminal:
sudo make install
Somehow, what I described previously are the steps to compile & and install a software on Linux distributions from sources. Also, note that you'll can have some missing dependencies, to install it(emacs) you'll have also to install the dependencies but that can be done with
sudo apt-get install <dependency_name> or by repeating the steps for each dependency.
Hope I could help you!
Emacs 24.4 compiles and runs perfectly on the new Raspberry pi 2, using these instructions:
sudo apt-get install texinfo libncurses5-dev
Install X related dependencies:
sudo apt-get install xorg-dev libpng12-dev libjpeg8-dev libgif-dev libtiff5 libtiff5-dev
Run configure script:
./configure --prefix /opt/emacs
Add --without-x to the end of the configure command if you don't need X support.
Check emacs binary was built and works:
If Emacs loaded up alright, quit it and run make install:
Alternatively use jessie which has emacs 24.4.1 in the repository.
harry ~ $ cat /etc/os-release PRETTY_NAME="Raspbian GNU/Linux jessie/sid" NAME="Raspbian GNU/Linux" ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" harry ~ $ emacs --v GNU Emacs 24.4.1 Copyright (C) 2014 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. harry ~ $
If you are only going to use
emacs in the terminal, you may spare the trouble of installing GUI-related developmental packages by doing
tar -xzvf emacs-24.4.tar.gz cd emacs-24.4 ./configure --without-x make sudo make install
Yes. I was able to install successfully:
pi@raspberrypi:~ $ emacs --version
GNU Emacs 24.4.1
Copyright (C) 2014 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Here are the steps:
1) upgrade the apt-get:
sudo apt-get update
2) install emacs:
sudo apt-get install emacs