Open-Source Internship opportunity by OpenGenus for programmers. Apply now.
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:
- Step 1: Get source code of teXinfo
- Step 2: Configure teXinfo
- Step 3: Build and install teXinfo
- 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.