Difference between revisions of "Installing Emacs on BSD"
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Emacs is available | + | Emacs is available on the BSD variants either through precompiled binary packages or user-compiled ports. Installation instructions vary according to exact OS. |
== FreeBSD == | == FreeBSD == | ||
− | + | To install the most recent prebuilt binary package of the (at the time) most recent stable version: | |
− | |||
− | |||
− | |||
− | To install the | ||
− | |||
− | |||
<source lang="text"> | <source lang="text"> | ||
Line 15: | Line 9: | ||
# pkg_add -r emacs | # pkg_add -r emacs | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</source> | </source> | ||
− | + | To install emacs without X11 dependencies: | |
− | |||
− | To install | ||
− | |||
− | |||
<source lang="text"> | <source lang="text"> | ||
− | # pkg_add -r emacs- | + | # pkg_add -r emacs-nox11 |
+ | or: | ||
+ | # pkg install editors/emacs-nox11 | ||
</source> | </source> | ||
− | Or use the ports: | + | Or use the ports to build from source: |
<source lang="text"> | <source lang="text"> | ||
− | # cd /usr/ports/editors/emacs | + | # cd /usr/ports/editors/emacs && make install |
− | |||
− | |||
</source> | </source> | ||
− | + | Developers may find "[http://www.freebsd.org/doc/en/books/developers-handbook/emacs.html Using Emacs as a Development Environment]," from the official FreeBSD project documentation, a good starting point. Some of the config tweaks are a bit dated and might need updating. But overall it's a reference | |
− | [http://www.freebsd.org/doc/en/books/developers-handbook/emacs.html Using Emacs as a Development Environment] from the official FreeBSD project documentation. Some of the config tweaks are a bit dated and might need updating. But overall it's a | ||
− | |||
− | |||
− | |||
− | |||
== OpenBSD == | == OpenBSD == | ||
Line 68: | Line 44: | ||
No premade port or package for Emacs 24 seems to be publicly available currently. | No premade port or package for Emacs 24 seems to be publicly available currently. | ||
− | == | + | == NetBSD, DragonFlyBSD, other pkgsrc systems == |
+ | |||
+ | On systems using [http://www.pkgsrc.org pkgsrc], something like | ||
+ | |||
+ | <source lang="text"> | ||
+ | |||
+ | # cd /usr/pkgsrc/editors/emacs && make install | ||
+ | |||
+ | </source> | ||
+ | |||
+ | should work. | ||
− | + | [[Category:Emacs-24]][[Category:Beginner]][[Category:Install Or Upgrade]] |
Latest revision as of 12:51, 6 October 2014
Emacs is available on the BSD variants either through precompiled binary packages or user-compiled ports. Installation instructions vary according to exact OS.
FreeBSD
To install the most recent prebuilt binary package of the (at the time) most recent stable version:
# pkg_add -r emacs
To install emacs without X11 dependencies:
# pkg_add -r emacs-nox11
or:
# pkg install editors/emacs-nox11
Or use the ports to build from source:
# cd /usr/ports/editors/emacs && make install
Developers may find "Using Emacs as a Development Environment," from the official FreeBSD project documentation, a good starting point. Some of the config tweaks are a bit dated and might need updating. But overall it's a reference
OpenBSD
Set PKG_PATH to an appropriate mirror.
# pkg_add -i emacs
pkg_add will prompt you for which version you want—currently, versions 21, 22, and 23 are available.
You can also install from the ports tree; however, "The [OpenBSD] ports tree is meant for advanced users. Everyone is encouraged to use the pre-compiled binary packages."(OpenBSD FAQ, section 15.3)
No premade port or package for Emacs 24 seems to be publicly available currently.