unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#70071: [FR] Provide official install scripts without requiring root, e.g., by making a static build possible
@ 2024-03-29 12:42 Rudi C
  2024-03-29 13:27 ` Eli Zaretskii
  2024-03-31  8:39 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 2 replies; 15+ messages in thread
From: Rudi C @ 2024-03-29 12:42 UTC (permalink / raw)
  To: 70071

[-- Attachment #1: Type: text/plain, Size: 2948 bytes --]

I've been struggling to install Emacs on university servers where I don't
have root access, and it's been a frustrating experience. It seems like
such a trivial issue to prevent people from using Emacs, especially when
Vim is usually pre-installed on most servers.

After searching the web, I've discovered that there are challenges in
building Emacs in a static way. (E.g.,
https://unix.stackexchange.com/questions/472989/how-to-build-instance-of-emacs-to-run-on-an-x86-64-system-different-from-the-one)
It would be fantastic if Emacs could be modified to allow for static,
portable builds for common Linux architectures. Imagine being able to
install Emacs using a simple command like `curl -sS
https://gnu.com/emacs-install-portable.sh | bash`, which would
automatically detect the correct build, download it, and install it. While
it might be possible to build Emacs without root access on each server from
scratch, it's a difficult and time-consuming process. Unfortunately, there
isn't a reliable official script like `gnu.com/emacs-install-no-root.sh` to
streamline this process. I've tried using Linuxbrew to build Emacs from
source without root, and while it sometimes (50%) works, it's very slow. As
brew is primarily developed for macOS, not Linux, the bugs are not fixed.
(See, e.g., https://github.com/d12frosted/homebrew-emacs-plus/issues/603)

To address these issues, I have three suggestions, listed in order of
preference:

1. Provide portable builds of Emacs, along with a script that automatically
installs the correct build without requiring root access.
2. Offer semi-portable builds of Emacs that only require building a handful
of libraries on the host. This should be handled by an official install
script, allowing users to simply run `curl ... | bash`.
3. Create an official install script that builds Emacs from source,
thoroughly tested on popular distributions like Ubuntu (including different
versions, not just the latest). This should still be as straightforward as
running `curl ... | bash`, even if it takes some time to complete.

I consider myself a persistent and patient person, and I've explored
various options, including `nix-env`, `guix`, and more. However, I've
reached my wit's end; installing Emacs is simply too complicated. While I
HAVE installed emacs on many servers and I use it remotely almost every
day, on servers that I use less often, I often resort to vim or editing
files locally and using Git to sync my changes back to the server. I'm
aware of Tramp, but it's buggy and slow on my setup, and I don't have the
time to debug it or fix the extensions that are causing issues. Similarly,
sshfs is unreliable on my unstable connections. All I want is a way to
easily install Emacs on a server without root access, without having to
manually inspect the installation process or engage in a debugging session.
Is a one-liner installer too much to ask for in 2024?!

PS: Please use reply-to-all.

[-- Attachment #2: Type: text/html, Size: 3413 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-04-06 10:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-29 12:42 bug#70071: [FR] Provide official install scripts without requiring root, e.g., by making a static build possible Rudi C
2024-03-29 13:27 ` Eli Zaretskii
2024-03-29 14:24   ` Rudi C
2024-03-29 14:33     ` Eli Zaretskii
2024-03-30  1:19     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-30 12:55       ` Rudi C
2024-03-30 13:28         ` Eli Zaretskii
2024-03-30 14:31           ` Rudi C
2024-03-31  0:37             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-31  6:02             ` Eli Zaretskii
2024-03-31  8:39 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-31  9:06   ` Rudi C
2024-03-31  9:31     ` Eli Zaretskii
2024-04-02 21:41       ` Richard Stallman
2024-04-06 10:31         ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).