Click here to Skip to main content
15,885,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to install mycrypt-1.0.4 on RHEL 8 and it says mycrypt.h error Reinstall libmcrypt. So, I am trying to install libmcrypt and I copied libmcrypt-2.5.8.tar.gz into tmp folder. Now when I ran this command


sudo dnf install /tmp/libmcrypt-2.5.8.tar.gz 



it throws error. What I am doing wrong here? Please correct me.

Error: Unable to find a match: /tmp/libmcrypt-2.5.8

What I have tried:

sudo dnf install /tmp/libmcrypt-2.5.8.tar.gz
Posted
Updated 23-Mar-22 5:49am
v2
Comments
Richard MacCutchan 23-Mar-22 10:56am    
"it throws error."
Sorry, we cannot see your screen or read your mind. You need to provide full details.
Member 14362033 23-Mar-22 11:18am    
Hello Richard, I updated this question. Could you please look into this.

1 solution

The file /tmp/libmcrypt-2.5.8.tar.gz is almost certainly a source code tar-ball, not a RedHat RPM. For RedHat based distros, libmcrypt is part of epel, so you will have to do something like
Bash
sudo dnf update
sudo install epel-release
sudo install libmcyrpt-devel

That will install not only libmcrypt headers, but also libmcrypt, and any package dependencies.

To build mcrypt from source the procedure is something like:
Bash
tar xf /tmp/libmcypt-2.5.8.tar.gz
cd libmcrypt.2.5.8
./configure
make
sudo make install 

That will probably install under /usr/local, so you may have to either add LD_LIBRARY_PATH=/usr/local/lib64 to your .profile, or add an entry /usr/local/lib64 to /etc/ld.config.d/ and then sudo ldconfig
 
Share this answer
 
Comments
Member 14362033 23-Mar-22 13:28pm    
Thank you for your reply. Can you tell me where can I download rpm version of libmcrypt?
k5054 23-Mar-22 13:57pm    
dnf downloads and installs packages for you. All you need to do is as noted above
sudo dnf install libmcrypt-devel
That will download and install the latest libmcrypt-devel package (headers and probably a pkg-config profile). If you do not already have the latest libmcrypt package installed, that will be downloaded and installed or updated too. If libmcrypt or libmcyrpt-devel requres another package, for example say libImNeedtedToo, then it will be downloaded and installed for you too, as will anything libImNeededToo requires, and so on.
Member 14362033 24-Mar-22 3:50am    
Hello k5054,
I followed your solution and it worked. Thank you so much :-) You saved me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900