unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to install several Emacs versions on the same system?
@ 2015-10-01 18:23 Marcin Borkowski
  2015-10-01 19:13 ` Eli Zaretskii
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Marcin Borkowski @ 2015-10-01 18:23 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi all,

I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
installed, too.  What is the fastest way to achive that?  (I would
prefer to compile from source - I have the Git repository anyway, though
only shallow clone, but I can clone the whole thing, too.)

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



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

* Re: How to install several Emacs versions on the same system?
  2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
@ 2015-10-01 19:13 ` Eli Zaretskii
  2015-10-01 19:26 ` Kaushal Modi
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2015-10-01 19:13 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Thu, 01 Oct 2015 20:23:43 +0200
> 
> I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
> installed, too.  What is the fastest way to achive that?  (I would
> prefer to compile from source - I have the Git repository anyway, though
> only shallow clone, but I can clone the whole thing, too.)

Just do it, it's already supported.  When say "make install", 2
identical binaries are installed, one of them with the name
"emacs-X.Y.Z", the other called just "emacs".  The latter will be
overwritten on the next install, but the former stays.  And each
version has its own share/emacs/ subdirectory.

IOW, it should "just work".



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

* Re: How to install several Emacs versions on the same system?
  2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
  2015-10-01 19:13 ` Eli Zaretskii
@ 2015-10-01 19:26 ` Kaushal Modi
  2015-10-01 20:11 ` Bob Proulx
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Kaushal Modi @ 2015-10-01 19:26 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list

I use this script to install the different versions of emacs on the same
machine without root access:
https://gist.github.com/kaushalmodi/8a39c21bf32ae5e4e31b

There's another little script (work proprietary) using which I update the
PATH, MANPATH and INFOPATH env vars.

I then set up version specific directories/files for stuff like elpa/,
custom.el, etc in my emacs config:
https://github.com/search?type=Code&q=extension:el+user:kaushalmodi+emacs-version-short


--
Kaushal Modi

On Thu, Oct 1, 2015 at 2:23 PM, Marcin Borkowski <mbork@mbork.pl> wrote:

> Hi all,
>
> I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
> installed, too.  What is the fastest way to achive that?  (I would
> prefer to compile from source - I have the Git repository anyway, though
> only shallow clone, but I can clone the whole thing, too.)
>
> TIA,
>
> --
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Faculty of Mathematics and Computer Science
> Adam Mickiewicz University
>
>


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

* Re: How to install several Emacs versions on the same system?
  2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
  2015-10-01 19:13 ` Eli Zaretskii
  2015-10-01 19:26 ` Kaushal Modi
@ 2015-10-01 20:11 ` Bob Proulx
  2015-10-02  0:07 ` Emanuel Berg
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: Bob Proulx @ 2015-10-01 20:11 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski wrote:
> I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
> installed, too.  What is the fastest way to achive that?  (I would
> prefer to compile from source - I have the Git repository anyway, though
> only shallow clone, but I can clone the whole thing, too.)

You have previously mentioned that you are running Ubuntu.  In which
case it should be the same as my Debian.  Just install the other
versions.  They will install side by side without conflict.

  apt-get install emacs24
  apt-get install emacs23
  ...

Or use one of the varients.  I am partial to emacs24-lucid for
graphical desktops and emacs24-nox for headless servers.

Bob



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

* Re: How to install several Emacs versions on the same system?
  2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
                   ` (2 preceding siblings ...)
  2015-10-01 20:11 ` Bob Proulx
@ 2015-10-02  0:07 ` Emanuel Berg
  2015-10-07 14:28 ` Oleh Krehel
       [not found] ` <mailman.54.1444228092.916.help-gnu-emacs@gnu.org>
  5 siblings, 0 replies; 8+ messages in thread
From: Emanuel Berg @ 2015-10-02  0:07 UTC (permalink / raw)
  To: help-gnu-emacs

Marcin Borkowski <mbork@mbork.pl> writes:

> I'm on GNU Emacs 25.0.50.1, but I'd like to have an
> older Emacs installed, too. What is the fastest way
> to achive that? (I would prefer to compile from
> source - I have the Git repository anyway, though
> only shallow clone, but I can clone the whole
> thing, too.)

Generally speaking use your distro's package manager,
but as you say you want to compile it from the source,
then the answer is, get the source, and compile it.
Are you afraid the compilation process will mess up
the other version(s)? That shouldn't happen.

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

* Re: How to install several Emacs versions on the same system?
  2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
                   ` (3 preceding siblings ...)
  2015-10-02  0:07 ` Emanuel Berg
@ 2015-10-07 14:28 ` Oleh Krehel
  2015-10-07 15:08   ` Tassilo Horn
       [not found] ` <mailman.54.1444228092.916.help-gnu-emacs@gnu.org>
  5 siblings, 1 reply; 8+ messages in thread
From: Oleh Krehel @ 2015-10-07 14:28 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Help Gnu Emacs mailing list

Marcin Borkowski <mbork@mbork.pl> writes:

> Hi all,
>
> I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
> installed, too.  What is the fastest way to achive that?  (I would
> prefer to compile from source - I have the Git repository anyway, though
> only shallow clone, but I can clone the whole thing, too.)

I've soft-linked:

- /usr/local/bin/emacs to /usr/local/bin/emacs-24.5
- /usr/local/bin/newemacs to /home/oleh/git/gnu-emacs/src/emacs

This way I always have access to the newest git version with only "make"
(no "make install"). And also to the latest stable version in case the
git version breaks.

As for the Git repository, currently it's 742M in the compiled
state. I'm sure the download amount is much less.

    Oleh



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

* Re: How to install several Emacs versions on the same system?
  2015-10-07 14:28 ` Oleh Krehel
@ 2015-10-07 15:08   ` Tassilo Horn
  0 siblings, 0 replies; 8+ messages in thread
From: Tassilo Horn @ 2015-10-07 15:08 UTC (permalink / raw)
  To: Oleh Krehel; +Cc: Help Gnu Emacs mailing list

Oleh Krehel <ohwoeowho@gmail.com> writes:

>> I'm on GNU Emacs 25.0.50.1, but I'd like to have an older Emacs
>> installed, too.  What is the fastest way to achive that?  (I would
>> prefer to compile from source - I have the Git repository anyway,
>> though only shallow clone, but I can clone the whole thing, too.)
>
> I've soft-linked:
>
> - /usr/local/bin/emacs to /usr/local/bin/emacs-24.5
> - /usr/local/bin/newemacs to /home/oleh/git/gnu-emacs/src/emacs

Same for me except that "emacs" is the bleeding edge version and for the
current release I have to use emacs-24.5.

> This way I always have access to the newest git version with only
> "make" (no "make install").  And also to the latest stable version in
> case the git version breaks.

Too bad my ~/.emacs already contains code which won't work on 24.5.  But
that's a good thing.  If the HEAD breaks, I'm forced to bisect for the
last working commit, and then most of the effort of a good bug report is
done already. ;-)

> As for the Git repository, currently it's 742M in the compiled
> state. I'm sure the download amount is much less.

Yes, mine which contains some local branches and stuff is about 800 MB,
too.

Bye,
Tassilo



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

* Re: How to install several Emacs versions on the same system?
       [not found] ` <mailman.54.1444228092.916.help-gnu-emacs@gnu.org>
@ 2015-10-07 15:17   ` J G Miller
  0 siblings, 0 replies; 8+ messages in thread
From: J G Miller @ 2015-10-07 15:17 UTC (permalink / raw)
  To: help-gnu-emacs

On Wednesday, October 7th, 2015, at 16:28:20h +0200, Oleh Krehel wrote:

> This way I always have access to the newest git version with only "make"
> (no "make install"). And also to the latest stable version in case the
> git version breaks.

May I suggest that you have a look at the "stow" utility which allows
multiple versions of "locally installed from source" software to be present
on a system and allows for very easy removal.

    <http://blog.danieroux.COM/2005/08/07/using-gnu-stow-to-manage-source-installs/>

Latest version of stow at

    <https://github.COM/aspiers/stow>

Under a stow build (using prefix /usr/local) and install
(to install-prefix or DESTDIR /usr/local/stow/{package_name}
you can then see all your locally installed from source
software under /usr/local/stow.

You can activate/deactivate which ones appear in the path with the
stow/unstow method, or even have multiple versions present if they are have
version dependent installation directories and names eg
emacs-23, emacs-24 rather than just emacs.


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

end of thread, other threads:[~2015-10-07 15:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 18:23 How to install several Emacs versions on the same system? Marcin Borkowski
2015-10-01 19:13 ` Eli Zaretskii
2015-10-01 19:26 ` Kaushal Modi
2015-10-01 20:11 ` Bob Proulx
2015-10-02  0:07 ` Emanuel Berg
2015-10-07 14:28 ` Oleh Krehel
2015-10-07 15:08   ` Tassilo Horn
     [not found] ` <mailman.54.1444228092.916.help-gnu-emacs@gnu.org>
2015-10-07 15:17   ` J G Miller

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).