strawberry perl on windows install Prima failed with no tiff.h - perl

I use strawberry perl on windows. I tried to install Prima module, running
install Prima
in CPAN console, I got
> img\codec_tiff.c:14:10: fatal error: tiff.h: No such file or directory
> #include <tiff.h>
> ^~~~~~~~ compilation terminated. dmake.exe: Error code 129, while making 'img\codec_tiff.o' KARASIK/Prima-1.53.tar.gz
> C:\STRAWB~1\c\bin\dmake.exe -- NOT OK Stopping: 'install' failed for
> 'Prima'. Failed during this command: KARASIK/Prima-1.53.tar.gz
> : make NO
so finally it failed to install Prima. So what to fix missing tiff.h problem?
update
Now I reinstalled the latest strawberry perl version 5.28.1.1
However, installing Prima failed for another reason. Error message as below:
dlltool -l blib/arch/auto/Prima/libPrima.a -d Prima.def -D PRIMA.xs.dll blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 755 blib\arch\auto\Prima\Prima.xs.dll
"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e cp -- Prima/VB/VB.pl blib\script\VB.pl
pl2bat.bat blib\script\VB.pl
process_begin: CreateProcess(NULL, pl2bat.bat blib\script\VB.pl, ...) failed.
make (e=2): The system cannot find the file specified.
gmake: *** [Makefile:1165: blib\script\VB.pl] Error 2
KARASIK/Prima-1.53.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Prima'.
Failed during this command:
KARASIK/Prima-1.53.tar.gz : make NO
And if I run install Prima the second time, it shows
Running install for module 'Prima'
KARASIK/Prima-1.53.tar.gz
Has already been unwrapped into directory C:\STRAWB~1\cpan\build\Prima-1.53-0
KARASIK/Prima-1.53.tar.gz
Has already been prepared
KARASIK/Prima-1.53.tar.gz
Could not make: Unknown error
What should I do?

Related

cpan install of DBD::mysql failing on tests and symbol not found. OSX Mojave

This looks like it's been around for years - but I can't find anything recent and related to Mac, and dealing only with just installing the CPAN module DBD::mysql I've been trawling the internet for days now...
# Failed test 'use DBD::mysql;'
# at t/00base.t line 15.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _mysql_affected_rows
# Referenced from: /Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: flat namespace
# in /Users/robert/.cpanm/work/1542100720.91387/DBD-mysql-4.048/blib/arch/auto/DBD/mysql/mysql.bundle at /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
# ^# at t/00base.t line 15.
# Compilation failed in require at t/00base.t line 15.
# BEGIN failed--compilation aborted at t/00base.t line 15.
Bailout called. Further testing stopped: Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
-> FAIL Installing DBD::mysql failed. See /Users/robert/.cpanm/work/1542100720.91387/build.log for details. Retry with --force to force install it.
This is the cpanm line I'm using.
sudo cpanm --configure-args="--libs='-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib' --cflags='-I/usr/local/opt/openssl/include -I/usr/local/include/mysql -I/usr/local/Cellar/mysql/8.0.12/include/mysql'" DBD::mysql
I have installed mysql with Homebrew, and everything else for that matter. I've even copied a few libs into system directories - but nothing seems to want to get this cpan module to install and work.
EDIT: Additions after this line.
Let's try Making the package by hand
sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib -lssl -lcrypto"
The Result of Make. Looking good. I see no errors here.Apparently all libs are available for compiling.
zeus:DBD-mysql-4.048-0 robert$ sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib"
I will use the following settings for compiling and testing:
cflags (mysql_config ) = -I/usr/local/Cellar/mysql/8.0.12/include/mysql
embedded (guessed ) =
libs (User's choice) = -L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib
mysql_config (Users choice ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
nossl (default ) = 0
testdb (User's choice) = test
testhost (default ) =
testpassword (default ) =
testport (default ) =
testsocket (default ) =
testuser (User's choice) = root
To change these settings, see 'perl Makefile.PL --help' and
'perldoc DBD::mysql::INSTALL'.
Checking if libs are available for compiling...
Looks good.
Checking if your kit is complete...
Looks good
Using DBI 1.642 (for perl 5.028000 on darwin-thread-multi-2level) installed in /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
zeus:DBD-mysql-4.048-0 robert$
Now let's see if a make works.
Looking good. 1 warning about WIDEST_UTYPE but it's only a warning...
Then, mysql.bundle is made
chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle
Manifying 3 pod documents
Ok, now the big test. make test.
... and it fails.
zeus:DBD-mysql-4.048-0 robert$ sudo make test
"/usr/local/Cellar/perl/5.28.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
PERL_DL_NONLAZY=1 "/usr/local/Cellar/perl/5.28.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00base.t .............................. 1/6
# Failed test 'use DBD::mysql;'
# at t/00base.t line 15.
# Tried to use 'DBD::mysql'.
# Error: Can't load '/Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _mysql_affected_rows
# Referenced from: /Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle
# Expected in: flat namespace
# in /Users/robert/.cpan/build/DBD-mysql-4.048-0/blib/arch/auto/DBD/mysql/mysql.bundle at /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/DynaLoader.pm line 197.
# at t/00base.t line 15.
# Compilation failed in require at t/00base.t line 15.
# BEGIN failed--compilation aborted at t/00base.t line 15.
Bailout called. Further testing stopped: Unable to load DBD::mysql
FAILED--Further testing stopped: Unable to load DBD::mysql
make: *** [test_dynamic] Error 255
... and there it is. The same error. Now I also tried MariaDB - same result, although slightly different error messages.
What am I missing here.
So I finally found it. Of course, it was locating the libraries and include files properly.
So I went into the cpan directory on my system
/Users/robert/.cpan/build/DBD-mysql-4.048-0
After checking just where the brew installations were for both openssl and mysql, I woke up.
sudo perl Makefile.PL --libs="-L/usr/local/opt/openssl/lib -lssl -lcrypto -L/usr/local/lib -L/usr/local/Cellar/mysql/8.0.12/lib -lmysqlclient"
Now. that worked because after looking in the mysaql lib directory, I see that the library is 'mysqlclient' and not mysql. As you see above.
Now that worked doing the Makefile.PL thing as above.
Then 'make' worked. As above. Not showing any errors... as above
Then sudo make test worked - this time.
All tests successful.
Files=73, Tests=9, 11 wallclock secs ( 0.24 usr 0.15 sys + 8.25 cusr 1.23 csys = 9.87 CPU)
Result: PASS
Finally - make install. Worked
zeus:DBD-mysql-4.048-0 robert$ sudo make install
"/usr/local/Cellar/perl/5.28.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- mysql.bs blib/arch/auto/DBD/mysql/mysql.bs 644
Manifying 3 pod documents
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/auto/DBD/mysql/mysql.bundle
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/Bundle/DBD/mysql.pm
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql.pm
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql/INSTALL.pod
Installing /usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level/DBD/mysql/GetInfo.pm
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/Bundle::DBD::mysql.3
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/DBD::mysql::INSTALL.3
Installing /usr/local/Cellar/perl/5.28.0/share/man/man3/DBD::mysql.3
Appending installation info to /usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/perllocal.pod
zeus:DBD-mysql-4.048-0 robert$ pwd
/Users/robert/.cpan/build/DBD-mysql-4.048-0
Well finally. Now why did I want this? I can't remember.

Can't install perl package Games::Irrlicht - fatal error

I'm trying to install the CPAN module Games::Irrlicht to deal with graphics. Some file isn't getting downloaded properly or something, resulting in a fatal error.
What's wrong?
My terminal output:
cpan[1]> install Games::Irrlicht
Reading '/home/me/.cpan/Metadata'
Database was generated on Sat, 05 Mar 2016 02:17:02 GMT
Running install for module 'Games::Irrlicht'
Checksum for /home/me/.cpan/sources/authors/id/T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz ok
Scanning cache /home/me/.cpan/build for sizes
............................................................................DONE
'YAML' not installed, will not store persistent state
Configuring T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Warning: prerequisite Config::Simple 4.55 not found.
Warning (mostly harmless): No library found for -lIrrlicht
Generating a Unix-style Makefile
Writing Makefile for Games::Irrlicht
Writing MYMETA.yml and MYMETA.json
TELS/games/Games-Irrlicht-0.04.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz
---- Unsatisfied dependencies detected during ----
---- TELS/games/Games-Irrlicht-0.04.tar.gz ----
Config::Simple [requires]
Running install for module 'Config::Simple'
Checksum for /home/me/.cpan/sources/authors/id/S/SH/SHERZODR/Config-Simple-4.58.tar.gz ok
Configuring S/SH/SHERZODR/Config-Simple-4.58.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Config::Simple
Writing MYMETA.yml and MYMETA.json
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for S/SH/SHERZODR/Config-Simple-4.58.tar.gz
cp Simple.pm blib/lib/Config/Simple.pm
AutoSplitting blib/lib/Config/Simple.pm (blib/lib/auto/Config/Simple)
Manifying blib/man3/Config::Simple.3pm
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/bug.t ............. ok
t/create.t .......... ok
t/import.t .......... ok
t/ini.t ............. ok
t/is_modified.t ..... ok
t/read-rv.t ......... ok
t/simple.t .......... ok
t/simplified-ini.t .. ok
t/tie.t ............. ok
All tests successful.
Files=9, Tests=75, 1 wallclock secs ( 0.06 usr 0.00 sys + 0.24 cusr 0.04 csys = 0.34 CPU)
Result: PASS
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make test -- OK
Running make install
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/import_from.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/EXISTS.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/TIEHASH.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/NEXTKEY.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/hashref.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/CLEAR.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/FIRSTKEY.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/verbose.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/param_hash.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/block.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/vars.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/autosplit.ix
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/errstr.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/dump.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/import_names.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/DELETE.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/FETCH.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/write_string.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/STORE.al
Installing /usr/local/share/perl/5.20.2/auto/Config/Simple/error.al
Installing /usr/local/share/perl/5.20.2/Config/Simple.pm
Installing /usr/local/man/man3/Config::Simple.3pm
Appending installation info to /usr/local/lib/x86_64-linux-gnu/perl/5.20.2/perllocal.pod
SHERZODR/Config-Simple-4.58.tar.gz
/usr/bin/make install -- OK
TELS/games/Games-Irrlicht-0.04.tar.gz
Has already been unwrapped into directory /home/me/.cpan/build/Games-Irrlicht-0.04-7adKre
TELS/games/Games-Irrlicht-0.04.tar.gz
Has already been prepared
Running make for T/TE/TELS/games/Games-Irrlicht-0.04.tar.gz
cp lib/Games/Irrlicht/Group.pm blib/lib/Games/Irrlicht/Group.pm
cp lib/Games/Irrlicht/EventHandler.pm blib/lib/Games/Irrlicht/EventHandler.pm
cp lib/Games/Irrlicht/Constants.pm blib/lib/Games/Irrlicht/Constants.pm
cp lib/Games/Irrlicht/Timer.pm blib/lib/Games/Irrlicht/Timer.pm
cp lib/Games/Irrlicht/Thingy.pm blib/lib/Games/Irrlicht/Thingy.pm
cp lib/Games/Irrlicht.pm blib/lib/Games/Irrlicht.pm
Running Mkbootstrap for Games::Irrlicht ()
chmod 644 Irrlicht.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp -C++ -typemap /usr/share/perl/5.20/ExtUtils/typemap Irrlicht.xs > Irrlicht.xsc && mv Irrlicht.xsc Irrlicht.c
Warning: Found a 'CODE' section which seems to be using 'RETVAL' but no 'OUTPUT' section. in Irrlicht.xs, line 458
g++ -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE" Irrlicht.c
Irrlicht.xs:6:31: fatal error: Irrlicht/irrlicht.h: No such file or directory
compilation terminated.
Makefile:362: recipe for target 'Irrlicht.o' failed
make: *** [Irrlicht.o] Error 1
TELS/games/Games-Irrlicht-0.04.tar.gz
/usr/bin/make -- NOT OK
Failed during this command:
TELS/games/Games-Irrlicht-0.04.tar.gz : make NO
This is in a terminal in Ubuntu 15.10
The README says to put "precompiled files" and "header files" into specific directories, but I can't find those files.
The README file says
You need to install the Irrlicht engine from http://irrlicht.sf.net
It looks from your log like you haven't done that
You should also read the rest of the README as there are a few other places where things may go wrong

Perl can't install Net::SSL

In order to install RT4.2, I tried to install Net::SSL, but without success. This is the output: (Ubuntu Server12.04, perl 5.14.2)
When I choice N selection that don't test connection, also can't success.
sudo cpan install Net::SSL
[sudo] password for hengaini:
Going to read '/home/hengaini/.cpan/Metadata'
Database was generated on Thu, 20 Feb 2014 09:41:02 GMT
Running install for module 'Net::SSL'
Running make for N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
Checksum for /home/hengaini/.cpan/sources/authors/id/N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz ok
CPAN.pm: Going to build N/NA/NANIS/Crypt-SSLeay-0.64.tar.gz
The test suite can attempt to connect to public servers to ensure that the
code is working properly. If you are behind a strict firewall or have no
network connectivity, these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N] y
Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -lssl32
Warning (mostly harmless): No library found for -lssleay32
Warning (mostly harmless): No library found for -leay32
Generating a Unix-style Makefile
Writing Makefile for Crypt::SSLeay
Writing MYMETA.yml and MYMETA.json
cp lib/Crypt/SSLeay/X509.pm blib/lib/Crypt/SSLeay/X509.pm
cp lib/Net/SSL.pm blib/lib/Net/SSL.pm
cp lib/Crypt/SSLeay/MainContext.pm blib/lib/Crypt/SSLeay/MainContext.pm
cp lib/Crypt/SSLeay/Conn.pm blib/lib/Crypt/SSLeay/Conn.pm
cp lib/Crypt/SSLeay/CTX.pm blib/lib/Crypt/SSLeay/CTX.pm
cp SSLeay.pm blib/lib/Crypt/SSLeay.pm
cp lib/Crypt/SSLeay/Err.pm blib/lib/Crypt/SSLeay/Err.pm
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.64\" -DXS_VERSION=\"0.64\" -fPIC "-I/usr/lib/perl/5.14/CORE" SSLeay.c
rm -f blib/arch/auto/Crypt/SSLeay/SSLeay.so
LD_RUN_PATH="/lib/x86_64-linux-gnu" cc -shared -O2 -g -L/usr/local/lib -fstack-protector SSLeay.o -o blib/arch/auto/Crypt/SSLeay/SSLeay.so \
-lz -lssl -lcrypto \
chmod 755 blib/arch/auto/Crypt/SSLeay/SSLeay.so
/usr/bin/perl -MExtUtils::Command::MM -e 'cp_nonempty' -- SSLeay.bs blib/arch/auto/Crypt/SSLeay/SSLeay.bs 644
Manifying blib/man3/Crypt::SSLeay.3pm
Manifying blib/man3/Net::SSL.3pm
NANIS/Crypt-SSLeay-0.64.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic.t .... ok
t/01-connect.t .. 1/8
# Failed test 'Net::SSL->new'
# at t/01-connect.t line 28.
# Connect failed: connect: 拒绝连接; 拒绝连接 at t/01-connect.t line 11.
# Looks like you failed 1 test of 8.
t/01-connect.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
(less 7 skipped subtests: 0 okay)
t/02-live.t ..... # Reading configuration from 'test.config' on linux
# network_tests : 1
t/02-live.t ..... 1/? # [RT #73755] Cheat by disabling LWP::UserAgent host verification
t/02-live.t ..... ok
Test Summary Report
-------------------
t/01-connect.t (Wstat: 256 Tests: 8 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=3, Tests=28, 2 wallclock secs ( 0.03 usr 0.00 sys + 0.53 cusr 0.30 csys = 0.86 CPU)
Result: FAIL
Failed 1/3 test programs. 1/28 subtests failed.
make: *** [test_dynamic] 错误 255
NANIS/Crypt-SSLeay-0.64.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports NANIS/Crypt-SSLeay-0.64.tar.gz
Running make install
make test had returned bad status, won't install without force
A very old question, but I was stuck searching for this as well
Instead of attempting to install Perl's SSL modules with CPAN, you should, as #TLP stated in their comment on the original question, use the Ubuntu package manager
apt-cache search net-ssl
Will give a list of packages. For example:
apt install libnet-ssleay-perl
apt install libcrypt-ssleay-perl
These worked for me on Perl v5.20 and v5.30. You will have to search to see which libraries work for yours using apt-cache search
Better yet, I hope you are using a perlbrew or plenv based environment, and since you have at least bothered to install cpan rather than rely on the default packages.
So you seem to missing the libraries and headers for SSL on your system, fix this by:
sudo apt-get install libssl-dev
And if you haven'y already, look into setting up your environment with one of the methods as linked above and look into cpanminus as well for a very useful tool that compliments either of these.
Your problem is that testing after build was not successful and error is occurred in this file t/01-connect.t line 11.
eval {
$sock = Net::SSL->new(
PeerAddr => '127.0.0.1',
PeerPort => 443,
Timeout => 3,
);
};
I can assume that some process is already listening on 127.0.0.1 443 port. Try to stop it and reinstall it again in the way you would like. Tests should always be passed.

Unable To Install LWP::Simple (Perl module) On Solaris 11

I'm running...
Perl 5.12
Solaris 11.1
... and I can't seem to get LWP::Simple installed by using the "cpan" tool. When I attempt to do so, I receive...
cpan[1]> install LWP::Simple
Reading '/root/.cpan/Metadata'
Database was generated on Mon, 20 Jan 2014 11:17:02 GMT
Running install for module 'LWP::Simple'
Running make for G/GA/GAAS/libwww-perl-6.05.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/libwww-perl-6.05.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
CPAN.pm: Building G/GA/GAAS/libwww-perl-6.05.tar.gz
Can't connect: IO::Socket::INET: connect: Invalid argument
The can-we-talk-to-ourself test failed.
Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Entities 0 not found.
Warning: prerequisite HTML::HeadParser 0 not found.
Writing Makefile for LWP
Could not read metadata file. Falling back to other methods to determine prerequisites
---- Unsatisfied dependencies detected during ----
---- GAAS/libwww-perl-6.05.tar.gz ----
HTML::Entities [requires]
HTML::HeadParser [requires]
Running make test
Delayed until after prerequisites
Running make install
Delayed until after prerequisites
Running install for module 'HTML::Entities'
Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz
Checksum for /root/.cpan/sources/authors/id/G/GA/GAAS/HTML-Parser-3.71.tar.gz ok
CPAN.pm: Building G/GA/GAAS/HTML-Parser-3.71.tar.gz
Checking if your kit is complete...
Looks good
Processing hints file hints/solaris.pl
Writing Makefile for HTML::Parser
cp lib/HTML/PullParser.pm blib/lib/HTML/PullParser.pm
cp Parser.pm blib/lib/HTML/Parser.pm
cp lib/HTML/Entities.pm blib/lib/HTML/Entities.pm
cp lib/HTML/LinkExtor.pm blib/lib/HTML/LinkExtor.pm
cp lib/HTML/TokeParser.pm blib/lib/HTML/TokeParser.pm
cp lib/HTML/HeadParser.pm blib/lib/HTML/HeadParser.pm
cp lib/HTML/Filter.pm blib/lib/HTML/Filter.pm
/usr/perl5/5.12/bin/perl mkhctype >hctype.h
/usr/perl5/5.12/bin/perl mkpfunc >pfunc.h
/usr/perl5/5.12/bin/perl /usr/perl5/5.12/lib/ExtUtils/xsubpp -typemap /usr/perl5/5.12/lib/ExtUtils/typemap -typemap typemap Parser.xs > Parser.xsc && mv Parser.xsc Parser.c
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO4 -DVERSION=\"3.71\" -DXS_VERSION=\"3.71\" -KPIC "-I/usr/perl5/5.12/lib/sun4-solaris-64int/CORE" -DMARKED_SECTION Parser.c
sh: line 1: cc: not found
*** Error code 127
make: Fatal error: Command failed for target `Parser.o'
GAAS/HTML-Parser-3.71.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running install for module 'HTML::HeadParser'
Running make for G/GA/GAAS/HTML-Parser-3.71.tar.gz
Has already been unwrapped into directory /root/.cpan/build/HTML-Parser-3.71-gMF8Mw
Could not make: Unknown error
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Running make for G/GA/GAAS/libwww-perl-6.05.tar.gz
Has already been unwrapped into directory /root/.cpan/build/libwww-perl-6.05-HwKLBD
CPAN.pm: Building G/GA/GAAS/libwww-perl-6.05.tar.gz
Warning: Prerequisite 'HTML::Entities => 0' for 'GAAS/libwww-perl-6.05.tar.gz' failed when processing 'GAAS/HTML-Parser-3.71.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'HTML::HeadParser => 0' for 'GAAS/libwww-perl-6.05.tar.gz' failed when processing 'GAAS/HTML-Parser-3.71.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
cp lib/LWP/RobotUA.pm blib/lib/LWP/RobotUA.pm
cp lib/LWP/Debug.pm blib/lib/LWP/Debug.pm
cp lib/LWP/Authen/Ntlm.pm blib/lib/LWP/Authen/Ntlm.pm
cp lib/LWP.pm blib/lib/LWP.pm
cp lib/LWP/Protocol.pm blib/lib/LWP/Protocol.pm
cp lib/LWP/ConnCache.pm blib/lib/LWP/ConnCache.pm
cp lwptut.pod blib/lib/lwptut.pod
cp lib/LWP/Protocol/ftp.pm blib/lib/LWP/Protocol/ftp.pm
cp lib/LWP/Authen/Digest.pm blib/lib/LWP/Authen/Digest.pm
cp lib/LWP/Protocol/gopher.pm blib/lib/LWP/Protocol/gopher.pm
cp lib/LWP/Protocol/cpan.pm blib/lib/LWP/Protocol/cpan.pm
cp lwpcook.pod blib/lib/lwpcook.pod
cp lib/LWP/Protocol/file.pm blib/lib/LWP/Protocol/file.pm
cp lib/LWP/Protocol/GHTTP.pm blib/lib/LWP/Protocol/GHTTP.pm
cp lib/LWP/DebugFile.pm blib/lib/LWP/DebugFile.pm
cp lib/LWP/Protocol/data.pm blib/lib/LWP/Protocol/data.pm
cp lib/LWP/Protocol/nogo.pm blib/lib/LWP/Protocol/nogo.pm
cp lib/LWP/Authen/Basic.pm blib/lib/LWP/Authen/Basic.pm
cp lib/LWP/Protocol/nntp.pm blib/lib/LWP/Protocol/nntp.pm
cp lib/LWP/UserAgent.pm blib/lib/LWP/UserAgent.pm
cp lib/LWP/Simple.pm blib/lib/LWP/Simple.pm
cp lib/LWP/Protocol/loopback.pm blib/lib/LWP/Protocol/loopback.pm
cp lib/LWP/Protocol/mailto.pm blib/lib/LWP/Protocol/mailto.pm
cp lib/LWP/Protocol/http.pm blib/lib/LWP/Protocol/http.pm
cp lib/LWP/MemberMixin.pm blib/lib/LWP/MemberMixin.pm
cp bin/lwp-dump blib/script/lwp-dump
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-dump
cp bin/lwp-mirror blib/script/lwp-mirror
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-mirror
cp bin/lwp-download blib/script/lwp-download
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-download
cp bin/lwp-request blib/script/lwp-request
/usr/perl5/5.12/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/lwp-request
Manifying blib/man1/lwp-dump.1
Manifying blib/man1/lwp-mirror.1
Manifying blib/man1/lwp-download.1
Manifying blib/man1/lwp-request.1
Manifying blib/man3/LWP::RobotUA.3
Manifying blib/man3/LWP::Debug.3
Manifying blib/man3/lwpcook.3
Manifying blib/man3/LWP::Authen::Ntlm.3
Manifying blib/man3/LWP.3
Manifying blib/man3/LWP::ConnCache.3
Manifying blib/man3/LWP::Protocol.3
Manifying blib/man3/lwptut.3
Manifying blib/man3/LWP::Simple.3
Manifying blib/man3/LWP::UserAgent.3
Manifying blib/man3/LWP::MemberMixin.3
GAAS/libwww-perl-6.05.tar.gz
/usr/bin/make -- OK
Running make test
/usr/perl5/5.12/bin/perl t/TEST 0
base/protocols.t ...... ok
base/ua.t ............. 1/35 # Failed test 13 in base/ua.t at line 56
# base/ua.t line 56 is: ok($res->header("Content-Style-Type", "text/css"));
# Failed test 14 in base/ua.t at line 57
# base/ua.t line 57 is: ok($res->header("Content-Script-Type", "text/javascript"));
base/ua.t ............. Failed 2/35 subtests
robot/ua-get.t ........ skipped: Can't talk to ourself (misconfigured system)
robot/ua.t ............ skipped: Can't talk to ourself (misconfigured system)
local/autoload-get.t .. Failed 1/1 subtests
local/autoload.t ...... 1/1 # Failed test 1 in local/autoload.t at line 22
# local/autoload.t line 22 is: ok($response->is_success);
local/autoload.t ...... Failed 1/1 subtests
local/get.t ........... ok
local/http.t .......... skipped: Can't talk to ourself (misconfigured system)
local/protosub.t ...... ok
Test Summary Report
-------------------
base/ua.t (Wstat: 0 Tests: 35 Failed: 2)
Failed tests: 13-14
local/autoload-get.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
local/autoload.t (Wstat: 0 Tests: 1 Failed: 1)
Failed test: 1
Files=9, Tests=51, 4 wallclock secs ( 0.27 usr 0.09 sys + 3.04 cusr 0.34 csys = 3.74 CPU)
Result: FAIL
Failed 3/9 test programs. 4/51 subtests failed.
*** Error code 255
make: Fatal error: Command failed for target `test'
GAAS/libwww-perl-6.05.tar.gz
2 dependencies missing (HTML::HeadParser,HTML::Entities); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports GAAS/libwww-perl-6.05.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
GAAS/HTML-Parser-3.71.tar.gz : make NO
GAAS/libwww-perl-6.05.tar.gz : make_test NO 2 dependencies missing (HTML::HeadParser,HTML::Entities); additionally test harness failed
cpan[2]>
What gives?
I realize there may be a few failures contributing to this.
Thanks in advance,
Gary
Look at your first error message:
cc -c -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DPERL_USE_SAFE_PUTENV -xO4 -DVERSION=\"3.71\" -DXS_VERSION=\"3.71\" -KPIC "-I/usr/perl5/5.12/lib/sun4-solaris-64int/CORE" -DMARKED_SECTION Parser.c
sh: line 1: cc: not found
*** Error code 127
Some parts of HTML::Parser, which is a prerequisite to LWP::Simple, are written in C and need a c compiler, which you don't have installed.
Ran across this post when i was having a similar problem with openindiana and compiling lwp. The wrapper in the blog below actually solved all my problems I just put in /usr/bin/cc and have had great luck. Hope it helps anyone else having the problem.
http://blog.zorinaq.com/?e=30
In case the blog ever goes away here is the python code wrapper
#!/usr/bin/python
# cc(1) wrapper to build CPAN Perl modules with GCC on OpenSolaris. -mrb
import os, sys
path = '/usr/bin/gcc'
args = []
i = 0
while i < len(sys.argv):
if i == 0:
args.append(path)
elif sys.argv[i] == '-KPIC':
args.append('-fPIC')
elif sys.argv[i] == '-xO3':
args.append('-O3')
elif sys.argv[i] == '-xspace':
pass
elif sys.argv[i] == '-xildoff':
pass
else:
args.append(sys.argv[i])
i += 1
os.execv(path, args)
If you want to build CPAN modules to install in the supported perl tree, then you need to use Solaris Studio 12.1 ( for Solaris 11 and 11.1). You can download this from the url which Guntram mentioned.

Cannot install module pp on windows 7 64 bit with Strawberry-Perl

I would like to create exe files from my perl scripts so therefore I tried to install the modul pp. But the installation failed with this output.
cpan> install pp
Database was generated on Tue, 31 Jul 2012 14:02:56 GMT
Running install for module 'pp'
Running make for R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz
Checksum for C:\strawberry\cpan\sources\authors\id\R\RS\RSCHUPP\PAR-Packer-1.013
.tar.gz ok
Scanning cache C:\strawberry\cpan\build for sizes
............................................................................DONE
CPAN.pm: Going to build R/RS/RSCHUPP/PAR-Packer-1.013.tar.gz
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at C:/strawberry/perl/lib/Ex
tUtils/MakeMaker.pm line 219
Writing Makefile for par.exe
Writing MYMETA.yml and MYMETA.json
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
cp lib/App/Packer/PAR.pm blib\lib\App\Packer\PAR.pm
cp lib/PAR/Packer.pm blib\lib\PAR\Packer.pm
cp lib/PAR/Filter/Obfuscate.pm blib\lib\PAR\Filter\Obfuscate.pm
cp lib/PAR/Filter/PodStrip.pm blib\lib\PAR\Filter\PodStrip.pm
cp lib/PAR/StrippedPARL/Base.pm blib\lib\PAR\StrippedPARL\Base.pm
cp lib/PAR/Filter.pm blib\lib\PAR\Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib\lib\PAR\Filter\PatchContent.pm
cp lib/PAR/Filter/Bytecode.pm blib\lib\PAR\Filter\Bytecode.pm
cp lib/pp.pm blib\lib\pp.pm
cp lib/PAR/Filter/Bleach.pm blib\lib\PAR\Filter\Bleach.pm
C:\strawberry\perl\bin\perl.exe file2c.pl -s ..\script\par.pl my_par_pl.c load_m
y_par_pl
C:\strawberry\perl\bin\perl.exe sha1.c.PL
gcc -c -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CON
TEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX -I"C:\straw
berry\perl\lib\CORE" -DPARL_EXE=\"parl.exe\" -s -O2 main.c
windres -F pei-i386 -i winres\pp.rc -o winres\pp.res
windres: can't open file `pp.manifest': No such file or directory
dmake: Error code 129, while making 'ppresource.coff'
dmake.EXE: Error code 255, while making 'subdirs'
RSCHUPP/PAR-Packer-1.013.tar.gz
C:\strawberry\c\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
Failed during this command:
RSCHUPP/PAR-Packer-1.013.tar.gz : make NO
Does anyone know what the reason is?
Thanks for your help
There is a problem with the pp makefile.
1.Download the PM manually (Here).
2.Unzip the file and find the myldr/winres folder.
3.There will be files like pp.ico, pp.manifest, pp.rc etc. Copy these files to myldr/ directory.
4.Run the install manually.
perl Makefile.pl
dmake
dmake test
dmake install
Note- There might be dependancies so you may have to install those manually or using CPAN.
I had a similar problem, but it was because I had ActiveState Perl installed. I had to uninstall ActiveState and edit my environmental variables to remove any reference to ActiveState Perl.