Install re2c on RHEL8 / CentOS 8 / AlmaLinux

You can get the following error during steps dependent on re2c, for example, while executing the make command.

/bin/sh: re2c: command not found

If you get an error like the one above, read how to install it on RHEL / CentOS 8 or AlmaLinux.

1. Find and download the .rpm for re2c: First, download the RPM for re2c, you can use CURL.

curl -LsO https://rpmfind.net/linux/centos/8-stream/PowerTools/x86_64/os/Packages/re2c-0.14.3-2.el8.x86_64.rpm

Note: The latest released version is 0.14.3.2, of which the link is above. However, you could potentially find a newer version yourself on this page (look in the “download” column for your distribution).

2. Install RPM: To install the downloaded RPM, simply execute the following command (make sure the filename matches the file you downloaded in the previous step):

rpm -Uvh re2c-0.14.3-2.el8.x86_64.rpm

If everything went OK you should see the following output:

warning: re2c-0.14.3-2.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:re2c-0.14.3-2.el8 ################################# [100%]
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to restrict direct root access in Linux

We can do it just in two steps. Step One: At first we will create new root user as follows (for...

How to extract .tar.gz files in Linux/UNIX OS

A tarball is a group of files that are bundled together using the tar command. Use the...

How to add welcome message when SSH start?

You need to change the contents of /etc/motd. Unfortunately, by default, /etc/motd is a link to...

How to change root password when SSH logged in

Run the following command: passwd Now type your new passwordOnce done, retype new passwordDone!...

How to install Pinguzo on any Linux/UNIX OS

Login to Pinguzo panel using Softaculous account or create an account of Pinguzo To add new...