Benutzer:Rdiez/BuildingEmacsFromSource: Unterschied zwischen den Versionen

Aus /dev/tal
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „{{BenutzerSeitenNichtVeraendernWarnung|rdiez}} = Building emacs from source =“)
 
Zeile 2: Zeile 2:
  
 
= Building emacs from source =
 
= Building emacs from source =
 +
 +
* Remove all other emacs versions from the system. <br/> Otherwise, you may get confused later on, when the wrong emacs version accidentally starts when double-clicking on some file.
 +
 +
* Download:
 +
 +
  wget http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.gz
 +
  tar -xzf emacs-24.4.tar.gz
 +
  cd emacs-24.4
 +
 +
* Install dependencies:
 +
 +
# Satisfy most dependencies automatically.
 +
sudo apt-get install build-essential
 +
sudo apt-get build-dep emacs24
 +
 +
Apparently that does not satisfy the Xaw3d dependency:
 +
  Does Emacs use -lXaw3d?  no
 +
But I do not actually know what type of scroll bar or whatever that Xaw3d package is. If you know more, please [[Benutzer:rdiez|drop me a line]].
 +
 +
* Build:
 +
 +
  ./configure --with-x-toolkit=gtk3 --prefix="$HOME/emacs-24.4-bin"
 +
  make -j "$(( $(getconf _NPROCESSORS_ONLN) + 1 ))"
 +
  make install
 +
 +
* Adjust your system:
 +
** Change your $EDITOR shell variable.
 +
** Create a KDE shortcut like this: <br/> "$HOME/emacs-24.4-bin/bin/emacs" %F
 +
** The icon is here: <br/> $HOME/emacs-24.4-bin/share/icons/hicolor/scalable/apps
 +
** Configure double-click file opening like this: <br/> /home/<user>/emacs-24.4-bin/bin/emacsclient --no-wait
 +
** If you autostart emacs, adjust that too.
 +
** If you have any scripts that use emacs or emacsclient, adjust them too.

Version vom 7. November 2014, 19:14 Uhr

Warning sign
Dies sind die persönlichen Benutzerseiten von rdiez, bitte nicht verändern! Ausnahmen sind nur einfache Sprachkorrekturen wie Tippfehler, falsche Präpositionen oder Ähnliches. Alles andere bitte nur dem Benutzer melden!


Building emacs from source

  • Remove all other emacs versions from the system.
    Otherwise, you may get confused later on, when the wrong emacs version accidentally starts when double-clicking on some file.
  • Download:
 wget http://ftp.gnu.org/gnu/emacs/emacs-24.4.tar.gz
 tar -xzf emacs-24.4.tar.gz
 cd emacs-24.4
  • Install dependencies:
# Satisfy most dependencies automatically.
sudo apt-get install build-essential
sudo apt-get build-dep emacs24

Apparently that does not satisfy the Xaw3d dependency:

 Does Emacs use -lXaw3d?  no

But I do not actually know what type of scroll bar or whatever that Xaw3d package is. If you know more, please drop me a line.

  • Build:
 ./configure --with-x-toolkit=gtk3 --prefix="$HOME/emacs-24.4-bin"
 make -j "$(( $(getconf _NPROCESSORS_ONLN) + 1 ))"
 make install
  • Adjust your system:
    • Change your $EDITOR shell variable.
    • Create a KDE shortcut like this:
      "$HOME/emacs-24.4-bin/bin/emacs" %F
    • The icon is here:
      $HOME/emacs-24.4-bin/share/icons/hicolor/scalable/apps
    • Configure double-click file opening like this:
      /home/<user>/emacs-24.4-bin/bin/emacsclient --no-wait
    • If you autostart emacs, adjust that too.
    • If you have any scripts that use emacs or emacsclient, adjust them too.