Posted: . At: 10:50 AM. This was 5 years ago. Post ID: 13715
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.



Sponsored



How to install a program from a tar.gz file on Linux easily.


I am needing to install Emacs on my computer and I have decided to install from source. This is easy on Linux, I had to ensure I had the latest build of Emacs. Then I could compile the source code.

Download the source here: http://ftp.gnu.org/gnu/emacs/emacs-26.3.tar.xz.

Firstly, extract the source to a folder.

4.4 Wed Oct 30 jason@Yog-Sothoth 0: $ tar -xvf emacs-26.3.tar.xz

Then cd into the source tree and run this command to prepare for build by checking if we have all the dependencies.

4.4 Wed Oct 30 jason@Yog-Sothoth 0: $ ./configure --prefix=/usr/local

If it completes with no errors, then we can compile the source and build binaries and associated files ready for installation.

4.4 Wed Oct 30 jason@Yog-Sothoth 0: $ make

Then, once that completes, install the compiled files to the prefix directory, which in our case is /usr/local.

4.4 Wed Oct 30 jason@Yog-Sothoth 0: $ sudo make install

This will install Emacs on your Linux system.

Emacs 26.3 successfully installed.
Emacs 26.3 successfully installed.

That is how easy it is to install a program from source code on your Linux system. This does work very well.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.