Sponsored Content
Top Forums Programming Fatal error: mcrypt.h: No such file or directory Post 302958775 by zaxxon on Monday 26th of October 2015 09:47:11 AM
Old 10-26-2015
You will have to install the package libmcrypt-dev as it provides mcrypt.h.
This User Gave Thanks to zaxxon For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

ld: fatal error

dear all , iam trying to compile a progam using gcc compiler on a sun 280 R machine running solaris 9 . iam getting an error in the last step when the compiler tries to link the objects , although the compiler executes some applicarions that contains no objects smoothly, the error that... (1 Reply)
Discussion started by: ppass
1 Replies

2. Programming

ld: fatal error

i am trying to compile my program using a makefile and i keep getting this message: Undefined first referenced symbol in file main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o ld: fatal: Symbol referencing errors. No output written to prog5 collect2: ld returned 1 exit status ***... (2 Replies)
Discussion started by: betterdayz
2 Replies

3. Solaris

Error- ld.so.1: expr: fatal: libgmp.so.3: open failed:No such file or directory

Hi Friends I have a compiler(Sun Forte,I believe) running in my Solaris 9 box. since y'day my development team is finding this error when they compile: ld.so.1: expr: fatal: libgmp.so.3: open failed: No such file or directory I ran a search for this file and found it in one of my file... (2 Replies)
Discussion started by: Hari_Ganesh
2 Replies

4. Shell Programming and Scripting

fatal: cannot open file `TNAME' for reading (No such file or directory)

Hi, I am running this command through a shell script and getting the error mentioned in the subject line: testing.awk -f x.txt TNAME My testing.awk file contains something like ++++++++++++++++++ #!/usr/bin/awk -f BEGIN{ TAB_NAME="INSERT_ONE_" ARGV ; } if ( $1=="JAM_ONE" &&... (1 Reply)
Discussion started by: kunwar
1 Replies

5. Shell Programming and Scripting

help with email to be triggered based on fatal error detection from batch run log file neded

Hi, I require need help in two aspects actually: 1) Fatal error that gets generated as %F% from a log file say ABClog.dat to trigger a mail. At present I manually grep the log file as <grep %F% ABClog.dat| cut-d "%" -f1>. The idea is to use this same logic to grep the log file which is... (1 Reply)
Discussion started by: zico1986
1 Replies

6. Solaris

fatal error: stdio.h: No such file or directory

Trying to compile a C program recievin this hello.c:1:19: fatal error: stdio.h: No such file or directory gcc is installed on the system. echo $PATH /usr/bin:/usr/sbin:/usr/gcc/4.5/include/c++/4.5.2/tr1 root@Sol11swtb01:/media/NO NAME/Programming/C/Testing# cd... (2 Replies)
Discussion started by: Fingerz
2 Replies

7. Solaris

./curl -V showing fatal: libldap.so.5: open failed: No such file or directory

Hi Guys, I am facing this Error bash-2.03$ ./curl -V ld.so.1: curl: fatal: libldap.so.5: open failed: No such file or directory Killed bash-2.03$ while executing ./curl -V in /opt/sfw/bin directory. I am using Sun Solaris 10. which package upgrage can give me this missing... (9 Replies)
Discussion started by: manalisharmabe
9 Replies

8. Solaris

Install Apache 2.4.20 on Solaris 10 --- Error "ld: fatal: file ab.o: wrong ELF class: ELFCLASS32"

I am following the "Compilling and Installing" guide from Apache > HTTP Server > Documentation > Version 2.4 page The configure running OK: # export CC="gcc -m64" # ./configure \ --prefix=/usr/local/apache2/httpd-2.4.20 \ --with-port=80 \ --with-mpm=worker \ --enable-mods-shared=most \... (0 Replies)
Discussion started by: jhuang
0 Replies

9. What is on Your Mind?

PHP Fatal Errors During SSL Cert Management - PHP Fatal error: xc_fcntl_mutex failed

Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup. However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies

10. UNIX for Beginners Questions & Answers

Fatal error: 'Xm/Xm.h' file not found , motif installed

Hello, i have installed open-motif -2.3.8_1 X11 Toolkit on freebsd32bit machine. wanna compile a little script. script is ok. already compiled on other machine (linux) the message is as follows cc -o button button.c -lXm -lXt -lX11 button.c:3:10: fatal error: 'Xm/Xm.h' file not found... (5 Replies)
Discussion started by: Sennenmut
5 Replies
Mcrypt(3)						User Contributed Perl Documentation						 Mcrypt(3)

NAME
Mcrypt - Perl extension for the Mcrypt cryptography library SYNOPSIS
use Mcrypt; # Procedural routines $td = Mcrypt::mcrypt_load($algorithm, $algorithm_dir, $mode, $mode_dir); Mcrypt::mcrypt_get_key_size($td); # in bytes Mcrypt::mcrypt_get_iv_size($td); # in bytes Mcrypt::mcrypt_get_block_size($td); # in bytes Mcrypt::mcrypt_init($td, $key, $iv); $encryptedstr = Mcrypt::mcrypt_encrypt($td, $decryptedstr); $decryptedstr = Mcrypt::mcrypt_decrypt($td, $encryptedstr); Mcrypt::mcrypt_end($td); # Object-oriented methods $td = Mcrypt->new( algorithm => $algorithm, mode => $mode ); $keysize = $td->{KEY_SIZE}; $ivsize = $td->{IV_SIZE}; $blksize = $td->{BLOCK_SIZE}; $td->init($key, $iv); $encryptedstr = $td->encrypt($decryptedstr); $decryptedstr = $td->decrypt($encryptedstr); # If the $td goes out of context, # the destructor will do this for you $td->end(); DESCRIPTION
This module wraps the libmcrypt encryption library for easy and convenient use from within perl. Encryption and decryption using a variety of algorithms is as easy as a few simple lines of perl. Exported constants The predefined groups of exports in the use statements are as follows: use Mcrypt qw(:ALGORITHMS); Exports the BLOWFISH DES 3DES GOST CAST_128 XTEA RC2 TWOFISH CAST_256 SAFERPLUS LOKI97 SERPENT RIJNDAEL_128 RIJNDAEL_192 RIJNDAEL_256 ENIGMA ARCFOUR WAKE libmcrypt algorithms. See the mcrypt(3) man page for more details. use Mcrypt qw(:MODES); Exports the CBC ECB CFB OFB bOFB STREAM modes of encryption. See the mcrypt(3) man page for more details. use Mcrypt qw(:FUNCS); Exports the following functions: mcrypt_load, mcrypt_unload, mcrypt_init, mcrypt_end, mcrypt_encrypt, mcrypt_decrypt, mcrypt_get_block_size, mcrypt_get_iv_size, mcrypt_get_key_size. EXAMPLES
# Procedural approach: # create an ecryption descriptor: # ALGORITHM: blowfish (256 bit key + 16 byte IV) # MODE: cfb # The user application has set: # $method to either "encrypt" or "decrypt" # $infile to the input filename # $outfile to the output filename my($td) = Mcrypt::mcrypt_load( Mcrypt::BLOWFISH, '', Mcrypt::CFB, '' ); my($key) = "32 bytes of your apps secret key"; # secret key my($iv) = "16 bytes of rand"; # shared initialization vector Mcrypt::mcrypt_init($td, $key, $iv) || die "Could not initialize td"; print Mcrypt::mcrypt_encrypt($td, $_) while(<>); Mcrypt::mcrypt_end($td); # OO approach of the above except decrypting my($td) = Mcrypt->new( algorithm => Mcrypt::BLOWFISH, mode => Mcrypt::CFB, verbose => 0 ); my($key) = "k" x $td->{KEY_SIZE}; my($iv) = "i" x $td->{IV_SIZE}; $td->init($key, $iv); print $td->decrypt($_) while (<>); $td->end(); AUTHOR
Theo Schlossnagle <jesus@omniti.com> SEE ALSO
The libmcrypt man page: mcrypt(3). Other libmcrypt information is available at http://mcrypt.hellug.gr/. perl v5.12.1 2010-07-05 Mcrypt(3)
All times are GMT -4. The time now is 02:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy