Build teXinfo from source

Do not miss this exclusive book on Binary Tree Problems. Get it now for free.

In this article, we have presented the steps to get the source code/ release package of teXinfo and build it from source and install in your system.

Table of contents:

  1. Step 1: Get source code of teXinfo
  2. Step 2: Configure teXinfo
  3. Step 3: Build and install teXinfo
  4. Conclusion

Step 1: Get source code of teXinfo

teXinfo is an open-source project by GNU so you can clone the latest source code from GitHub using the following command:

git clone https://github.com/debian-tex/texinfo.git

If you want to build a specific version, you can checkout the above cloned repository to the specific version using the following command:

cd texinfo
git checkout upstream/6.8

Note: change the version or tag according to your need.

Alternatively, we can download the source code package of teXinfo from the official release page:

http://ftp.gnu.org/gnu/texinfo/

Download a package using the following command:

wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.8.tar.gz

Extract the downloaded package as follows:

tar -xvf texinfo-6.8.tar.gz
cd texinfo-6.8

Step 2: Configure teXinfo

To configure your custom build of teXinfo, use the following command:

./configure

Step 3: Build and install teXinfo

To build and install teXinfo, use the following command:

make -j
make install

This will directly install teXinfo in default location such as /usr/local/bin, /usr/local/lib and others. This is the preferred way to make the newly built teXinfo available to the entire system.

To install it in your custom location, use the following command:

make

Conclusion

In conclusion, the steps to build teXinfo are as follows:

wget http://ftp.gnu.org/gnu/texinfo/texinfo-6.8.tar.gz
tar -xvf texinfo-6.8.tar.gz
cd texinfo-6.8
./configure
make -j
make install

With this article at OpenGenus, you must have the complete idea of how to build teXinfo from source.

Sign up for FREE 3 months of Amazon Music. YOU MUST NOT MISS.