I am having trouble installing the Crypt::OpenSSL::Random on a Linux machine. I am first getting these warnings:
Note (probably harmless): No library found for -lssl
Note (probably harmless): No library found for -lcrypto
I'm not sure if these are as harmless as they say, because it then fails with:
Can't load 'blib/arch/auto/Crypt/OpenSSL/Random/Random.so' for module
Crypt::OpenSSL::Random: blib/arch/auto/Crypt/OpenSSL/Random/Random.so:
undefined symbol: RAND_egd at
/usr/local/lib/perl5/5.8.8/x86_64-linux/DynaLoader.pm line 230. at
test.pl line 11 Compilation failed in require at test.pl line 11.
OpenSSL 1.0.1 is properly installed on the machine.
Related
I got the following errors while installind Tk module from perl in MacOS catalina 10.15.6
cpan install Tk
And the error I get
Cannot find '/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE/perl.h' have you installed /usr/bin/perl?
Compilation failed in require at Makefile.PL line 37.
BEGIN failed--compilation aborted at Makefile.PL line 39.
Warning: No success on command[/usr/bin/perl Makefile.PL]
SREZIC/Tk-804.035.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Could not read metadata file. Falling back to other methods to determine prerequisites
Could you please help me know what's happening here?
I need to install Image::Magick module in a machine and the credentials are below:
Windows Version - 7
Perl Version 5.18
Also I have tried so many ways like cpan ppm and also copied the module and directly pasted in the c:\perl\lib\ and c:\perl\site\lib and unfortunately no luck.
In cpan installed
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz
Checksum for C:\Perl\cpan\sources\authors\id\J\JC\JCRISTY\PerlMagick-6.89-1.tar.gz ok
./PerlMagick-6.89/
./PerlMagick-6.89/check.sh
./PerlMagick-6.89/Makefile.old
./PerlMagick-6.89/Makefile.nt
./PerlMagick-6.89/check.sh.in
./PerlMagick-6.89/demo/
./PerlMagick-6.89/demo/README
............
./PerlMagick-6.89/t/bzlib/read.t
./PerlMagick-6.89/t/input.fits
./PerlMagick-6.89/Makefile.PL
./PerlMagick-6.89/Makefile.PL.in
./PerlMagick-6.89/MANIFEST.SKIP
./PerlMagick-6.89/Makefile.am
./PerlMagick-6.89/Magick.xs
./PerlMagick-6.89/check
CPAN.pm: Building J/JC/JCRISTY/PerlMagick-6.89-1.tar.gz
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Image::Magick
Writing MYMETA.yml and MYMETA.json
JCRISTY/PerlMagick-6.89-1.tar.gz
[31m C:\Perl\bin\dmake.exe -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
################################## WARNING! ####################
It seems that you are trying to install Perl::Magick on a MS Wi
perl + gcc compiler (e.g. strawberry perl), however we cannot f
binaries installed on your system.
Please check the following prerequisites:
You need to have installed ImageMagick Windows binaries from
https://www.imagemagick.org/script/download.php#windows
We only support dynamic (DLL) ImageMagick binaries
note: it is not possible to mix 32/64-bit binaries of perl a
During installation select that you want to install ImageMag
development files (libraries+headers)
You also need to have ImageMagick's directory in your PATH
note: we are checking the presence of convert.exe and/or ide
You might need Visual C++ Redistributable Package installed
see instructions on ImageMagick's Binary Release webpage
We are gonna continue, but chances for successful build are ver
################################################################
Warning (mostly harmless): No library found for -lMagickCore
Warning (mostly harmless): No library found for -lmoldname
Warning (mostly harmless): No library found for -lkernel32
Warning (mostly harmless): No library found for -luser32
Warning (mostly harmless): No library found for -lgdi32
Warning (mostly harmless): No library found for -lwinspool
Warning (mostly harmless): No library found for -lcomdlg32
Warning (mostly harmless): No library found for -ladvapi32
Warning (mostly harmless): No library found for -lshell32
Warning (mostly harmless): No library found for -lole32
Warning (mostly harmless): No library found for -loleaut32
Warning (mostly harmless): No library found for -lnetapi32
Warning (mostly harmless): No library found for -luuid
Warning (mostly harmless): No library found for -lws2_32
Warning (mostly harmless): No library found for -lmpr
Warning (mostly harmless): No library found for -lwinmm
Warning (mostly harmless): No library found for -lversion
Warning (mostly harmless): No library found for -lodbc32
Warning (mostly harmless): No library found for -lodbccp32
Warning (mostly harmless): No library found for -lcomctl32
to undefined at C:/Perl/lib/ExtUtils/Install.pm line 1198.
C:\Perl\bin\dmake.exe: *** [pm_to_blib] Error 2
Failed during this command:
JCRISTY/PerlMagick-6.89-1.tar.gz : make NO
cpan> exit
Lockfile removed.
After Installation the error displays as:
D:>perl -wc test.pl
Can't locate Image/Magick.pm in #INC (you may need to install the >Image::Magick module) (#INC contains: C:/Perl/site/lib C:/Perl/lib .) at test.pl line 2.
BEGIN failed--compilation aborted at test.pl line 2.
It would be appreciated if someone could suggest the way to close this.
The Perl library Image::Magick is a wrapper around a C library called ImageMagick. You can't install the Perl library if the C library is not installed first. That's why your attempted cpan installation gave all of those "No library found" errors.
You can download the Windows version of ImageMagick from the project's web site. Once you have installed that, you can try to install the Perl library again.
Did you read the errors that you got from cpan? I'm really not sure why, after getting a message saying "install seems impossible" you would try running a test program!
I'm trying to install WWW::WebKit by
cpanm WWW::WebKit
but when it tries to install the X11::Xlib dependency it fails.
See the error log below.
syntax error at inc/Devel/CheckLib.pm line 164, near "$mm_attr_key qw(LIBS INC)"
syntax error at inc/Devel/CheckLib.pm line 171, near "}"
Global symbol "%args" requires explicit package name at inc/Devel/CheckLib.pm line 175.
syntax error at inc/Devel/CheckLib.pm line 179, near "}"
syntax error at inc/Devel/CheckLib.pm line 185, near "}"
Global symbol "#headers" requires explicit package name at inc/Devel/CheckLib.pm line 192.
Global symbol "#libs" requires explicit package name at inc/Devel/CheckLib.pm line 223.
Global symbol "#libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 230.
Global symbol "#libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 236.
Global symbol "#libpaths" requires explicit package name at inc/Devel/CheckLib.pm line 240.
syntax error at inc/Devel/CheckLib.pm line 252, near "}"
inc/Devel/CheckLib.pm has too many errors.
Compilation failed in require at Makefile.PL line 8.
BEGIN failed--compilation aborted at Makefile.PL line 8.
-> N/A
-> FAIL Configure failed for X11-Xlib-0.02. See /home/chankey/.cpanm/work/1412186280.51492/build.log for details.
-> FAIL Installing the dependencies failed: Module 'X11::Xlib' is not installed
-> FAIL Bailing out the installation for WWW-WebKit-0.06.
I searched on Google and found this
Devel::CheckLib syntax errors when trying to install Tree::Suffix
RT ticket says
The bundled Devel::CheckLib uses the deprecated "for qw()" syntax,
which does not work anymore with perl 5.18.x. Please upgrade to a
newer Devel::CheckLib, at least version 0.9.
but I'm already using the 1.02 version of Devel::CheckLib. I don't get where is the issue then?
I've installed all the below packages
sudo apt-get install libx11-dev
sudo apt-get install mesa-common-dev
sudo apt-get install libglu1-mesa-dev
sudo apt-get install libxrandr-dev
sudo apt-get install libxi-dev
The problem is that X11::Xlib bundles an out-of-date copy of Devel::CheckLib with it - if you check the distribution directory, it's in inc/Devel/CheckLib.pm. There are a few choices:
correct the error in the code of that copy of Devel::CheckLib;
remove the whole inc directory so that perl uses the installed version of Devel::CheckLib
comment out the line use lib qw(inc); in Makefile.PL to stop perl from looking for modules in there (there are no other modules in inc).
All have the same effect, and you should be able to continue your installation of X11::Xlib undisturbed!
I have installed Image::Magick in perl. See below install window. But displayed error "Can't locate loadable object for module Image::Magick". Please find the solution.
Install Window:
cpan[1]> install Image::Magick
?[32mReading 'C:\Documents and Settings\sukumar.s\Local Settings\Application Dat
a\.cpan\Metadata'?[0m
?[32m Database was generated on Tue, 05 Nov 2013 20:53:02 GMT?[0m
?[32mImage::Magick is up to date (6.86).?[0m
?[32m?[0m
Error Window:
Can't locate loadable object for module Image::Magick in #INC (#INC contains: C:
/Perl/site/lib C:/Perl/lib .) at e:\1.pl line 2.
Compilation failed in require at e:\1.pl line 2.
BEGIN failed--compilation aborted at e:\1.pl line 2.
My Program:
use strict;
use Image::Magick;
print "Image::Magick is processing ... \n";
Cmd: cpan force install Image::Magick (Error)
Magick.xs:14062: error: dereferencing pointer to incomplete type
Magick.xs:14069: error: `UndefinedException' undeclared (first use in this funct
ion)
Magick.xs: In function `boot_Image__Magick':
Magick.xs:2384: error: `MagickFalse' undeclared (first use in this function)
Magick.xs:2388: warning: assignment makes pointer from integer without a cast
dmake.exe: Error code 129, while making 'Magick.o'
?[32m JCRISTY/PerlMagick-6.86.tar.gz?[0m
?[31m C:\Perl\site\bin\dmake.exe -- NOT OK?[0m
?[32mRunning make test?[0m
?[32m Can't test without successful make?[0m
?[32mRunning make install?[0m
?[32m Make had returned bad status, install seems impossible?[0m
S. Sukumar
Which Perl distribution are you using? PerlMagick runs out of the box with active state ppm.
If you use another distribution you can install this module
by downloading the sources for the Windows version of
ImageMagick (Download Area). Unpack the binaries and type
cd ImageMagick-.../PerlMagick
perl Makefile.net
nmake
nmake install
You can find more information about installing it here.
The ImageMagick troubleshooting forum may help you.
Your installation of Image::Magick is up to date but incomplete. The Perl part of the module is unable to find the binary component.
You should reinstall Image::Magick using
cpan force install Image::Magick
and report back with any errors if they occur.
install IO::Pty cpan
Tty.xs:54:23: sys/ioctl.h: No such file or directory
Tty.xs: In function `make_safe_fd':
Tty.xs:225: error: `F_DUPFD' undeclared (first use in this function)
Tty.xs:225: error: (Each undeclared identifier is reported only once
Tty.xs:225: error: for each function it appears in.)
dmake.exe: Error code 129, while making 'Tty.o'
TODDR/IO-Tty-1.10.tar.gz
C:\Perl\site\bin\dmake.exe -- NOT OK
no SFTP module is getting install.
First, that distribution is called IO::Tty (which contains an IO::Pty module).
You seem to be missing some header files for a C library your module is linking to. You would have to install the headers beforehand. However… ioctl is Unix-specific and a part of the operating system. It is also notoriously unportable.
I could not find any reports of a IO::Tty install working on Windows, so it seems you can't use that module on Windows (without a Cygwin environment). As it happens this is also what the IO::Tty documentation says:
Windows is now supported, but ONLY under the Cygwin environment, see http://sources.redhat.com/cygwin/.