Why will it not install DBI? - perl

I have installed XAMPP on windows 10.
Running Apache and mySQL, works fine. I was testing Perl, and it worked too. However it can't connect to mySQL, so I tried to install DBI, but neither PPM or CPAN was recognized by DOS. So I installed ActiveState-Perl, and then used CPAN to install DBI, and you can see the result below.
Any ideas will help! Thanks!!
Reading 'C:\Perl64\cpan\Metadata'
Database was generated on Tue, 24 Dec 2019 06:29:03 GMT
Running install for module 'DBI'
Checksum for C:\Perl64\cpan\sources\authors\id\T\TI\TIMB\DBI-1.642.tar.gz ok
Scanning cache C:\Perl64/cpan/build for sizes
........................................................................----DONE
DEL(1/1): C:\Perl64\cpan\build\DBI-1.642-0.yml
DBI-1.642/
DBI-1.642/DBI.pm
DBI-1.642/dbipport.h
DBI-1.642/INSTALL
DBI-1.642/dbixs_rev.pl
DBI-1.642/Perl.xs
DBI-1.642/dbivport.h
DBI-1.642/LICENSE
DBI-1.642/dbi_sql.h
DBI-1.642/Changes
DBI-1.642/dbilogstrip.PL
DBI-1.642/MANIFEST
DBI-1.642/ex/
DBI-1.642/dbiprof.PL
DBI-1.642/Driver.xst
DBI-1.642/t/
DBI-1.642/DBI.xs
DBI-1.642/test.pl
DBI-1.642/README.md
DBI-1.642/dbd_xsh.h
DBI-1.642/typemap
DBI-1.642/dbixs_rev.h
DBI-1.642/dbiproxy.PL
DBI-1.642/DBIXS.h
DBI-1.642/META.yml
DBI-1.642/lib/
DBI-1.642/Makefile.PL
DBI-1.642/Driver_xst.h
DBI-1.642/META.json
DBI-1.642/lib/DBI/
DBI-1.642/lib/Bundle/
DBI-1.642/lib/DBD/
DBI-1.642/lib/Win32/
DBI-1.642/lib/Win32/DBIODBC.pm
DBI-1.642/lib/DBD/DBM.pm
DBI-1.642/lib/DBD/NullP.pm
DBI-1.642/lib/DBD/File/
DBI-1.642/lib/DBD/Proxy.pm
DBI-1.642/lib/DBD/ExampleP.pm
DBI-1.642/lib/DBD/Gofer/
DBI-1.642/lib/DBD/File.pm
DBI-1.642/lib/DBD/Mem.pm
DBI-1.642/lib/DBD/Gofer.pm
DBI-1.642/lib/DBD/Sponge.pm
DBI-1.642/lib/DBD/Gofer/Transport/
DBI-1.642/lib/DBD/Gofer/Policy/
DBI-1.642/lib/DBD/Gofer/Policy/classic.pm
DBI-1.642/lib/DBD/Gofer/Policy/pedantic.pm
DBI-1.642/lib/DBD/Gofer/Policy/Base.pm
DBI-1.642/lib/DBD/Gofer/Policy/rush.pm
DBI-1.642/lib/DBD/Gofer/Transport/pipeone.pm
DBI-1.642/lib/DBD/Gofer/Transport/null.pm
DBI-1.642/lib/DBD/Gofer/Transport/stream.pm
DBI-1.642/lib/DBD/Gofer/Transport/corostream.pm
DBI-1.642/lib/DBD/Gofer/Transport/Base.pm
DBI-1.642/lib/DBD/File/Developers.pod
DBI-1.642/lib/DBD/File/Roadmap.pod
DBI-1.642/lib/DBD/File/HowTo.pod
DBI-1.642/lib/Bundle/DBI.pm
DBI-1.642/lib/DBI/ProfileDumper.pm
DBI-1.642/lib/DBI/Util/
DBI-1.642/lib/DBI/PurePerl.pm
DBI-1.642/lib/DBI/Profile.pm
DBI-1.642/lib/DBI/Gofer/
DBI-1.642/lib/DBI/ProfileData.pm
DBI-1.642/lib/DBI/Const/
DBI-1.642/lib/DBI/DBD.pm
DBI-1.642/lib/DBI/W32ODBC.pm
DBI-1.642/lib/DBI/ProxyServer.pm
DBI-1.642/lib/DBI/DBD/
DBI-1.642/lib/DBI/ProfileSubs.pm
DBI-1.642/lib/DBI/ProfileDumper/
DBI-1.642/lib/DBI/SQL/
DBI-1.642/lib/DBI/SQL/Nano.pm
DBI-1.642/lib/DBI/ProfileDumper/Apache.pm
DBI-1.642/lib/DBI/DBD/SqlEngine/
DBI-1.642/lib/DBI/DBD/Metadata.pm
DBI-1.642/lib/DBI/DBD/SqlEngine.pm
DBI-1.642/lib/DBI/DBD/SqlEngine/Developers.pod
DBI-1.642/lib/DBI/DBD/SqlEngine/HowTo.pod
DBI-1.642/lib/DBI/Const/GetInfoType.pm
DBI-1.642/lib/DBI/Const/GetInfoReturn.pm
DBI-1.642/lib/DBI/Const/GetInfo/
DBI-1.642/lib/DBI/Const/GetInfo/ODBC.pm
DBI-1.642/lib/DBI/Const/GetInfo/ANSI.pm
DBI-1.642/lib/DBI/Gofer/Serializer/
DBI-1.642/lib/DBI/Gofer/Transport/
DBI-1.642/lib/DBI/Gofer/Execute.pm
DBI-1.642/lib/DBI/Gofer/Response.pm
DBI-1.642/lib/DBI/Gofer/Request.pm
DBI-1.642/lib/DBI/Gofer/Transport/pipeone.pm
DBI-1.642/lib/DBI/Gofer/Transport/stream.pm
DBI-1.642/lib/DBI/Gofer/Transport/Base.pm
DBI-1.642/lib/DBI/Gofer/Serializer/DataDumper.pm
DBI-1.642/lib/DBI/Gofer/Serializer/Storable.pm
DBI-1.642/lib/DBI/Gofer/Serializer/Base.pm
DBI-1.642/lib/DBI/Util/_accessor.pm
DBI-1.642/lib/DBI/Util/CacheMemory.pm
DBI-1.642/t/pod.t
DBI-1.642/t/90sql_type_cast.t
DBI-1.642/t/80proxy.t
DBI-1.642/t/51dbm_file.t
DBI-1.642/t/16destroy.t
DBI-1.642/t/lib.pl
DBI-1.642/t/73cachedkids.t
DBI-1.642/t/40profile.t
DBI-1.642/t/02dbidrv.t
DBI-1.642/t/86gofer_fail.t
DBI-1.642/t/53sqlengine_adv.t
DBI-1.642/t/06attrs.t
DBI-1.642/t/65transact.t
DBI-1.642/t/01basics.t
DBI-1.642/t/48dbi_dbd_sqlengine.t
DBI-1.642/t/03handle.t
DBI-1.642/t/05concathash.t
DBI-1.642/t/41prof_dump.t
DBI-1.642/t/14utf8.t
DBI-1.642/t/07kids.t
DBI-1.642/t/11fetch.t
DBI-1.642/t/19fhtrace.t
DBI-1.642/t/91_store_warning.t
DBI-1.642/t/87gofer_cache.t
DBI-1.642/t/54_dbd_mem.t
DBI-1.642/t/72childhandles.t
DBI-1.642/t/49dbd_file.t
DBI-1.642/t/85gofer.t
DBI-1.642/t/12quote.t
DBI-1.642/t/04mods.t
DBI-1.642/t/10examp.t
DBI-1.642/t/52dbm_complex.t
DBI-1.642/t/35thrclone.t
DBI-1.642/t/50dbm_simple.t
DBI-1.642/t/15array.t
DBI-1.642/t/31methcache.t
DBI-1.642/t/09trace.t
DBI-1.642/t/60preparse.t
DBI-1.642/t/20meta.t
DBI-1.642/t/pod-coverage.t
DBI-1.642/t/70callbacks.t
DBI-1.642/t/42prof_data.t
DBI-1.642/t/13taint.t
DBI-1.642/t/43prof_env.t
DBI-1.642/t/30subclass.t
DBI-1.642/t/08keeperr.t
DBI-1.642/ex/profile.pl
DBI-1.642/ex/corogofer.pl
DBI-1.642/ex/perl_dbi_nulls_test.pl
Configuring T/TI/TIMB/DBI-1.642.tar.gz with Makefile.PL
Your perl was compiled with gcc (version 4.6.3), okay.
Use of uninitialized value $DBI::DBD::Config{"cc"} in string eq at lib/DBI/DBD.pm line 3315.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
t/zvg_03handle.t
t/zvg_04mods.t
t/zvg_05concathash.t
t/zvg_06attrs.t
t/zvg_07kids.t
t/zvg_08keeperr.t
t/zvg_09trace.t
t/zvg_10examp.t
t/zvg_11fetch.t
t/zvg_12quote.t
t/zvg_13taint.t
t/zvg_14utf8.t
t/zvg_15array.t
t/zvg_16destroy.t
t/zvg_19fhtrace.t
t/zvg_20meta.t
t/zvg_30subclass.t
t/zvg_31methcache.t
t/zvg_35thrclone.t (use threads)
t/zvg_40profile.t
t/zvg_41prof_dump.t
t/zvg_42prof_data.t
t/zvg_43prof_env.t
t/zvg_48dbi_dbd_sqlengine.t
t/zvg_49dbd_file.t
t/zvg_50dbm_simple.t
t/zvg_51dbm_file.t
t/zvg_52dbm_complex.t
t/zvg_53sqlengine_adv.t
t/zvg_54_dbd_mem.t
t/zvg_60preparse.t
t/zvg_65transact.t
t/zvg_70callbacks.t
t/zvg_72childhandles.t
t/zvg_73cachedkids.t
t/zvg_80proxy.t
t/zvg_85gofer.t
t/zvg_86gofer_fail.t
t/zvg_87gofer_cache.t
t/zvg_90sql_type_cast.t
t/zvg_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano:
t/zvn_48dbi_dbd_sqlengine.t
t/zvn_49dbd_file.t
t/zvn_50dbm_simple.t
t/zvn_51dbm_file.t
t/zvn_52dbm_complex.t
t/zvn_85gofer.t
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t
t/zvp_02dbidrv.t
t/zvp_03handle.t
t/zvp_04mods.t
t/zvp_05concathash.t
t/zvp_06attrs.t
t/zvp_07kids.t
t/zvp_08keeperr.t
t/zvp_09trace.t
t/zvp_10examp.t
t/zvp_11fetch.t
t/zvp_12quote.t
t/zvp_13taint.t
t/zvp_14utf8.t
t/zvp_15array.t
t/zvp_16destroy.t
t/zvp_19fhtrace.t
t/zvp_20meta.t
t/zvp_30subclass.t
t/zvp_31methcache.t
t/zvp_35thrclone.t (use threads)
t/zvp_40profile.t
t/zvp_41prof_dump.t
t/zvp_42prof_data.t
t/zvp_43prof_env.t
t/zvp_48dbi_dbd_sqlengine.t
t/zvp_49dbd_file.t
t/zvp_50dbm_simple.t
t/zvp_51dbm_file.t
t/zvp_52dbm_complex.t
t/zvp_53sqlengine_adv.t
t/zvp_54_dbd_mem.t
t/zvp_60preparse.t
t/zvp_65transact.t
t/zvp_70callbacks.t
t/zvp_72childhandles.t
t/zvp_73cachedkids.t
t/zvp_80proxy.t
t/zvp_85gofer.t
t/zvp_86gofer_fail.t
t/zvp_87gofer_cache.t
t/zvp_90sql_type_cast.t
t/zvp_91_store_warning.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano:
t/zvxgn_48dbi_dbd_sqlengine.t
t/zvxgn_49dbd_file.t
t/zvxgn_50dbm_simple.t
t/zvxgn_51dbm_file.t
t/zvxgn_52dbm_complex.t
t/zvxgn_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::PurePerl:
t/zvxgp_01basics.t
t/zvxgp_02dbidrv.t
t/zvxgp_03handle.t
t/zvxgp_04mods.t
t/zvxgp_05concathash.t
t/zvxgp_06attrs.t
t/zvxgp_07kids.t
t/zvxgp_08keeperr.t
t/zvxgp_09trace.t
t/zvxgp_10examp.t
t/zvxgp_11fetch.t
t/zvxgp_12quote.t
t/zvxgp_13taint.t
t/zvxgp_14utf8.t
t/zvxgp_15array.t
t/zvxgp_16destroy.t
t/zvxgp_19fhtrace.t
t/zvxgp_20meta.t
t/zvxgp_30subclass.t
t/zvxgp_31methcache.t
t/zvxgp_35thrclone.t (use threads)
t/zvxgp_40profile.t
t/zvxgp_41prof_dump.t
t/zvxgp_42prof_data.t
t/zvxgp_43prof_env.t
t/zvxgp_48dbi_dbd_sqlengine.t
t/zvxgp_49dbd_file.t
t/zvxgp_50dbm_simple.t
t/zvxgp_51dbm_file.t
t/zvxgp_52dbm_complex.t
t/zvxgp_53sqlengine_adv.t
t/zvxgp_54_dbd_mem.t
t/zvxgp_60preparse.t
t/zvxgp_65transact.t
t/zvxgp_70callbacks.t
t/zvxgp_72childhandles.t
t/zvxgp_73cachedkids.t
t/zvxgp_80proxy.t
t/zvxgp_85gofer.t
t/zvxgp_86gofer_fail.t
t/zvxgp_87gofer_cache.t
t/zvxgp_90sql_type_cast.t
t/zvxgp_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl:
t/zvxnp_48dbi_dbd_sqlengine.t
t/zvxnp_49dbd_file.t
t/zvxnp_50dbm_simple.t
t/zvxnp_51dbm_file.t
t/zvxnp_52dbm_complex.t
t/zvxnp_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl:
t/zvxgnp_48dbi_dbd_sqlengine.t
t/zvxgnp_49dbd_file.t
t/zvxgnp_50dbm_simple.t
t/zvxgnp_51dbm_file.t
t/zvxgnp_52dbm_complex.t
t/zvxgnp_85gofer.t
Checking if your kit is complete...
Looks good
Use of uninitialized value $m[8] in join or string at C:/Perl64/site/lib/ExtUtils/MM_Unix.pm line 343.
I see you're using perl 5.028001 on MSWin32-x64-multi-thread, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
Windows users need to use the correct make command.
That may be nmake or dmake depending on which Perl you are using.
If using the Win32 ActiveState build then it is recommended that you
use the ppm utility to fetch and install a prebuilt DBI instead.
Generating a dmake-style Makefile
Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
TIMB/DBI-1.642.tar.gz
C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TI/TIMB/DBI-1.642.tar.gz
'dmake' is not recognized as an internal or external command,
operable program or batch file.
TIMB/DBI-1.642.tar.gz
dmake -- NOT OK
Failed during this command:
TIMB/DBI-1.642.tar.gz : make NO
cpan>```

Previously, ActiveState Perl would automatically install dmake and MinGW for you, see “ppm.bat install failed: Can't find any package that provides MinGW”.
I tried to install perl version 5.28.1 using the new ActiveState Platform, see notice at the PPM index:
Notice! PPM is being replaced with the ActiveState Platform, which
enhances PPM’s build and deploy capabilities. Create your free
Platform account to download ActivePerl or customize Perl with the
packages you require and get automatic updates.
but there is no MinGW package when I choose "Add packages" from the "Configuration" tab at my Perl project from the ActiveState Platform.
However, for the old PPM with perl version 5.24 there is a MinGW package.
Also, if I try run from the Command Prompt:
>ppm install MinGW
ppm install failed: Can't find any package that provides MinGW
I would recommend using Strawberry Perl until this problem with ActivePerl is fixed.

Related

mod_perl cannot use threaded MPM without ithreads enabled Perl

Firstly, I have asked a similar previous question years ago for an older version Compile Perl without threads but my previous answer doesn't seem to work now.
My set up is a custom compiled version of Perl
This is perl 5, version 34, subversion 1 (v5.34.1) built for x86_64-linux
CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC -Dprefix=/opt/perl
Which to my understanding shows that threads aren't enabled (I think it would say at the end if so)
I have trying to get this running with Apache 2.4.53 (but I don't think it's getting that far anyway).
Apache config options..
./configure --enable-proxy --enable-rewrite --enable-headers --enable-ssl --with-apr=/usr/local/apr/
As far as I'm aware, and previous answer, was if using Perl without threads, you can compile mod_perl without threads also, this is done by using
mod_perl version is 2.0.12
MP_NO_THREADS=1
So my full command for trying to compile mod_perl is
perl Makefile.PL MP_NO_THREADS=1 MP_APXS=/usr/local/apache2/bin/apxs
the readme says...
# For httpd-2.4, we can't use mpm_is_threaded(), because MPMs are loadable
# modules. We therefore treat httpd as a whole project as threaded. It is
# still possible to disable threading by using MP_NO_THREADS=1
I can also see a bit of code in the Makefile.PL
if ($build->{MP_NO_THREADS}) {
$build_threaded = 0;
}
and I can see $build_threaded indeed gets set to 0.
However, when I
make && make test
I get
[Thu Apr 28 12:18:02.392480 2022] [perl:error] [pid 38185:tid 140616570507840]
cannot use threaded MPM without ithreads enabled Perl
I can't really see anything in the code (other than checks) that does anything different depending on that code though, but I'm not familiar with it at all, so probably missing something important ?
I have also tried with -Uuseithreads -Uusethreads -Dusethreads=undef
Edit: the bit of code producing the error looks like
## src/modules/perl/mod_perl.c
#ifndef USE_ITHREADS
if (modperl_threaded_mpm()) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, base_server,
"cannot use threaded MPM without ithreads enabled Perl");
exit(1);
}
#endif
and
Apache2::Build::PERL_HAS_ITHREADS ? "w/" : "w/o";
shows as "w/o" when running
Digging further I see the code seems to call ap_mpm_query() so checking with Apache and in apachectl -v this looks incorrect...I think threaded should be no, so checking on why that is..
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Which is odd..so I think
Looks like something changed with Apache, so seem to have to specify the mpm mode, so if I change Apache compile to --with-mpm=prefork this seems to work.
./configure --enable-proxy --enable-rewrite --enable-headers --enable-ssl --with-apr=/usr/local/apr/ --with-mpm=prefork

'dmake' is not recognized as an internal or external command [duplicate]

I have installed XAMPP on windows 10.
Running Apache and mySQL, works fine. I was testing Perl, and it worked too. However it can't connect to mySQL, so I tried to install DBI, but neither PPM or CPAN was recognized by DOS. So I installed ActiveState-Perl, and then used CPAN to install DBI, and you can see the result below.
Any ideas will help! Thanks!!
Reading 'C:\Perl64\cpan\Metadata'
Database was generated on Tue, 24 Dec 2019 06:29:03 GMT
Running install for module 'DBI'
Checksum for C:\Perl64\cpan\sources\authors\id\T\TI\TIMB\DBI-1.642.tar.gz ok
Scanning cache C:\Perl64/cpan/build for sizes
........................................................................----DONE
DEL(1/1): C:\Perl64\cpan\build\DBI-1.642-0.yml
DBI-1.642/
DBI-1.642/DBI.pm
DBI-1.642/dbipport.h
DBI-1.642/INSTALL
DBI-1.642/dbixs_rev.pl
DBI-1.642/Perl.xs
DBI-1.642/dbivport.h
DBI-1.642/LICENSE
DBI-1.642/dbi_sql.h
DBI-1.642/Changes
DBI-1.642/dbilogstrip.PL
DBI-1.642/MANIFEST
DBI-1.642/ex/
DBI-1.642/dbiprof.PL
DBI-1.642/Driver.xst
DBI-1.642/t/
DBI-1.642/DBI.xs
DBI-1.642/test.pl
DBI-1.642/README.md
DBI-1.642/dbd_xsh.h
DBI-1.642/typemap
DBI-1.642/dbixs_rev.h
DBI-1.642/dbiproxy.PL
DBI-1.642/DBIXS.h
DBI-1.642/META.yml
DBI-1.642/lib/
DBI-1.642/Makefile.PL
DBI-1.642/Driver_xst.h
DBI-1.642/META.json
DBI-1.642/lib/DBI/
DBI-1.642/lib/Bundle/
DBI-1.642/lib/DBD/
DBI-1.642/lib/Win32/
DBI-1.642/lib/Win32/DBIODBC.pm
DBI-1.642/lib/DBD/DBM.pm
DBI-1.642/lib/DBD/NullP.pm
DBI-1.642/lib/DBD/File/
DBI-1.642/lib/DBD/Proxy.pm
DBI-1.642/lib/DBD/ExampleP.pm
DBI-1.642/lib/DBD/Gofer/
DBI-1.642/lib/DBD/File.pm
DBI-1.642/lib/DBD/Mem.pm
DBI-1.642/lib/DBD/Gofer.pm
DBI-1.642/lib/DBD/Sponge.pm
DBI-1.642/lib/DBD/Gofer/Transport/
DBI-1.642/lib/DBD/Gofer/Policy/
DBI-1.642/lib/DBD/Gofer/Policy/classic.pm
DBI-1.642/lib/DBD/Gofer/Policy/pedantic.pm
DBI-1.642/lib/DBD/Gofer/Policy/Base.pm
DBI-1.642/lib/DBD/Gofer/Policy/rush.pm
DBI-1.642/lib/DBD/Gofer/Transport/pipeone.pm
DBI-1.642/lib/DBD/Gofer/Transport/null.pm
DBI-1.642/lib/DBD/Gofer/Transport/stream.pm
DBI-1.642/lib/DBD/Gofer/Transport/corostream.pm
DBI-1.642/lib/DBD/Gofer/Transport/Base.pm
DBI-1.642/lib/DBD/File/Developers.pod
DBI-1.642/lib/DBD/File/Roadmap.pod
DBI-1.642/lib/DBD/File/HowTo.pod
DBI-1.642/lib/Bundle/DBI.pm
DBI-1.642/lib/DBI/ProfileDumper.pm
DBI-1.642/lib/DBI/Util/
DBI-1.642/lib/DBI/PurePerl.pm
DBI-1.642/lib/DBI/Profile.pm
DBI-1.642/lib/DBI/Gofer/
DBI-1.642/lib/DBI/ProfileData.pm
DBI-1.642/lib/DBI/Const/
DBI-1.642/lib/DBI/DBD.pm
DBI-1.642/lib/DBI/W32ODBC.pm
DBI-1.642/lib/DBI/ProxyServer.pm
DBI-1.642/lib/DBI/DBD/
DBI-1.642/lib/DBI/ProfileSubs.pm
DBI-1.642/lib/DBI/ProfileDumper/
DBI-1.642/lib/DBI/SQL/
DBI-1.642/lib/DBI/SQL/Nano.pm
DBI-1.642/lib/DBI/ProfileDumper/Apache.pm
DBI-1.642/lib/DBI/DBD/SqlEngine/
DBI-1.642/lib/DBI/DBD/Metadata.pm
DBI-1.642/lib/DBI/DBD/SqlEngine.pm
DBI-1.642/lib/DBI/DBD/SqlEngine/Developers.pod
DBI-1.642/lib/DBI/DBD/SqlEngine/HowTo.pod
DBI-1.642/lib/DBI/Const/GetInfoType.pm
DBI-1.642/lib/DBI/Const/GetInfoReturn.pm
DBI-1.642/lib/DBI/Const/GetInfo/
DBI-1.642/lib/DBI/Const/GetInfo/ODBC.pm
DBI-1.642/lib/DBI/Const/GetInfo/ANSI.pm
DBI-1.642/lib/DBI/Gofer/Serializer/
DBI-1.642/lib/DBI/Gofer/Transport/
DBI-1.642/lib/DBI/Gofer/Execute.pm
DBI-1.642/lib/DBI/Gofer/Response.pm
DBI-1.642/lib/DBI/Gofer/Request.pm
DBI-1.642/lib/DBI/Gofer/Transport/pipeone.pm
DBI-1.642/lib/DBI/Gofer/Transport/stream.pm
DBI-1.642/lib/DBI/Gofer/Transport/Base.pm
DBI-1.642/lib/DBI/Gofer/Serializer/DataDumper.pm
DBI-1.642/lib/DBI/Gofer/Serializer/Storable.pm
DBI-1.642/lib/DBI/Gofer/Serializer/Base.pm
DBI-1.642/lib/DBI/Util/_accessor.pm
DBI-1.642/lib/DBI/Util/CacheMemory.pm
DBI-1.642/t/pod.t
DBI-1.642/t/90sql_type_cast.t
DBI-1.642/t/80proxy.t
DBI-1.642/t/51dbm_file.t
DBI-1.642/t/16destroy.t
DBI-1.642/t/lib.pl
DBI-1.642/t/73cachedkids.t
DBI-1.642/t/40profile.t
DBI-1.642/t/02dbidrv.t
DBI-1.642/t/86gofer_fail.t
DBI-1.642/t/53sqlengine_adv.t
DBI-1.642/t/06attrs.t
DBI-1.642/t/65transact.t
DBI-1.642/t/01basics.t
DBI-1.642/t/48dbi_dbd_sqlengine.t
DBI-1.642/t/03handle.t
DBI-1.642/t/05concathash.t
DBI-1.642/t/41prof_dump.t
DBI-1.642/t/14utf8.t
DBI-1.642/t/07kids.t
DBI-1.642/t/11fetch.t
DBI-1.642/t/19fhtrace.t
DBI-1.642/t/91_store_warning.t
DBI-1.642/t/87gofer_cache.t
DBI-1.642/t/54_dbd_mem.t
DBI-1.642/t/72childhandles.t
DBI-1.642/t/49dbd_file.t
DBI-1.642/t/85gofer.t
DBI-1.642/t/12quote.t
DBI-1.642/t/04mods.t
DBI-1.642/t/10examp.t
DBI-1.642/t/52dbm_complex.t
DBI-1.642/t/35thrclone.t
DBI-1.642/t/50dbm_simple.t
DBI-1.642/t/15array.t
DBI-1.642/t/31methcache.t
DBI-1.642/t/09trace.t
DBI-1.642/t/60preparse.t
DBI-1.642/t/20meta.t
DBI-1.642/t/pod-coverage.t
DBI-1.642/t/70callbacks.t
DBI-1.642/t/42prof_data.t
DBI-1.642/t/13taint.t
DBI-1.642/t/43prof_env.t
DBI-1.642/t/30subclass.t
DBI-1.642/t/08keeperr.t
DBI-1.642/ex/profile.pl
DBI-1.642/ex/corogofer.pl
DBI-1.642/ex/perl_dbi_nulls_test.pl
Configuring T/TI/TIMB/DBI-1.642.tar.gz with Makefile.PL
Your perl was compiled with gcc (version 4.6.3), okay.
Use of uninitialized value $DBI::DBD::Config{"cc"} in string eq at lib/DBI/DBD.pm line 3315.
Creating test wrappers for DBD::Gofer:
t/zvg_01basics.t
t/zvg_02dbidrv.t
t/zvg_03handle.t
t/zvg_04mods.t
t/zvg_05concathash.t
t/zvg_06attrs.t
t/zvg_07kids.t
t/zvg_08keeperr.t
t/zvg_09trace.t
t/zvg_10examp.t
t/zvg_11fetch.t
t/zvg_12quote.t
t/zvg_13taint.t
t/zvg_14utf8.t
t/zvg_15array.t
t/zvg_16destroy.t
t/zvg_19fhtrace.t
t/zvg_20meta.t
t/zvg_30subclass.t
t/zvg_31methcache.t
t/zvg_35thrclone.t (use threads)
t/zvg_40profile.t
t/zvg_41prof_dump.t
t/zvg_42prof_data.t
t/zvg_43prof_env.t
t/zvg_48dbi_dbd_sqlengine.t
t/zvg_49dbd_file.t
t/zvg_50dbm_simple.t
t/zvg_51dbm_file.t
t/zvg_52dbm_complex.t
t/zvg_53sqlengine_adv.t
t/zvg_54_dbd_mem.t
t/zvg_60preparse.t
t/zvg_65transact.t
t/zvg_70callbacks.t
t/zvg_72childhandles.t
t/zvg_73cachedkids.t
t/zvg_80proxy.t
t/zvg_85gofer.t
t/zvg_86gofer_fail.t
t/zvg_87gofer_cache.t
t/zvg_90sql_type_cast.t
t/zvg_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano:
t/zvn_48dbi_dbd_sqlengine.t
t/zvn_49dbd_file.t
t/zvn_50dbm_simple.t
t/zvn_51dbm_file.t
t/zvn_52dbm_complex.t
t/zvn_85gofer.t
Creating test wrappers for DBI::PurePerl:
t/zvp_01basics.t
t/zvp_02dbidrv.t
t/zvp_03handle.t
t/zvp_04mods.t
t/zvp_05concathash.t
t/zvp_06attrs.t
t/zvp_07kids.t
t/zvp_08keeperr.t
t/zvp_09trace.t
t/zvp_10examp.t
t/zvp_11fetch.t
t/zvp_12quote.t
t/zvp_13taint.t
t/zvp_14utf8.t
t/zvp_15array.t
t/zvp_16destroy.t
t/zvp_19fhtrace.t
t/zvp_20meta.t
t/zvp_30subclass.t
t/zvp_31methcache.t
t/zvp_35thrclone.t (use threads)
t/zvp_40profile.t
t/zvp_41prof_dump.t
t/zvp_42prof_data.t
t/zvp_43prof_env.t
t/zvp_48dbi_dbd_sqlengine.t
t/zvp_49dbd_file.t
t/zvp_50dbm_simple.t
t/zvp_51dbm_file.t
t/zvp_52dbm_complex.t
t/zvp_53sqlengine_adv.t
t/zvp_54_dbd_mem.t
t/zvp_60preparse.t
t/zvp_65transact.t
t/zvp_70callbacks.t
t/zvp_72childhandles.t
t/zvp_73cachedkids.t
t/zvp_80proxy.t
t/zvp_85gofer.t
t/zvp_86gofer_fail.t
t/zvp_87gofer_cache.t
t/zvp_90sql_type_cast.t
t/zvp_91_store_warning.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano:
t/zvxgn_48dbi_dbd_sqlengine.t
t/zvxgn_49dbd_file.t
t/zvxgn_50dbm_simple.t
t/zvxgn_51dbm_file.t
t/zvxgn_52dbm_complex.t
t/zvxgn_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::PurePerl:
t/zvxgp_01basics.t
t/zvxgp_02dbidrv.t
t/zvxgp_03handle.t
t/zvxgp_04mods.t
t/zvxgp_05concathash.t
t/zvxgp_06attrs.t
t/zvxgp_07kids.t
t/zvxgp_08keeperr.t
t/zvxgp_09trace.t
t/zvxgp_10examp.t
t/zvxgp_11fetch.t
t/zvxgp_12quote.t
t/zvxgp_13taint.t
t/zvxgp_14utf8.t
t/zvxgp_15array.t
t/zvxgp_16destroy.t
t/zvxgp_19fhtrace.t
t/zvxgp_20meta.t
t/zvxgp_30subclass.t
t/zvxgp_31methcache.t
t/zvxgp_35thrclone.t (use threads)
t/zvxgp_40profile.t
t/zvxgp_41prof_dump.t
t/zvxgp_42prof_data.t
t/zvxgp_43prof_env.t
t/zvxgp_48dbi_dbd_sqlengine.t
t/zvxgp_49dbd_file.t
t/zvxgp_50dbm_simple.t
t/zvxgp_51dbm_file.t
t/zvxgp_52dbm_complex.t
t/zvxgp_53sqlengine_adv.t
t/zvxgp_54_dbd_mem.t
t/zvxgp_60preparse.t
t/zvxgp_65transact.t
t/zvxgp_70callbacks.t
t/zvxgp_72childhandles.t
t/zvxgp_73cachedkids.t
t/zvxgp_80proxy.t
t/zvxgp_85gofer.t
t/zvxgp_86gofer_fail.t
t/zvxgp_87gofer_cache.t
t/zvxgp_90sql_type_cast.t
t/zvxgp_91_store_warning.t
Creating test wrappers for DBI::SQL::Nano + DBI::PurePerl:
t/zvxnp_48dbi_dbd_sqlengine.t
t/zvxnp_49dbd_file.t
t/zvxnp_50dbm_simple.t
t/zvxnp_51dbm_file.t
t/zvxnp_52dbm_complex.t
t/zvxnp_85gofer.t
Creating test wrappers for DBD::Gofer + DBI::SQL::Nano + DBI::PurePerl:
t/zvxgnp_48dbi_dbd_sqlengine.t
t/zvxgnp_49dbd_file.t
t/zvxgnp_50dbm_simple.t
t/zvxgnp_51dbm_file.t
t/zvxgnp_52dbm_complex.t
t/zvxgnp_85gofer.t
Checking if your kit is complete...
Looks good
Use of uninitialized value $m[8] in join or string at C:/Perl64/site/lib/ExtUtils/MM_Unix.pm line 343.
I see you're using perl 5.028001 on MSWin32-x64-multi-thread, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.
Windows users need to use the correct make command.
That may be nmake or dmake depending on which Perl you are using.
If using the Win32 ActiveState build then it is recommended that you
use the ppm utility to fetch and install a prebuilt DBI instead.
Generating a dmake-style Makefile
Writing Makefile for DBI
Writing MYMETA.yml and MYMETA.json
TIMB/DBI-1.642.tar.gz
C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- OK
Running make for T/TI/TIMB/DBI-1.642.tar.gz
'dmake' is not recognized as an internal or external command,
operable program or batch file.
TIMB/DBI-1.642.tar.gz
dmake -- NOT OK
Failed during this command:
TIMB/DBI-1.642.tar.gz : make NO
cpan>```
Previously, ActiveState Perl would automatically install dmake and MinGW for you, see “ppm.bat install failed: Can't find any package that provides MinGW”.
I tried to install perl version 5.28.1 using the new ActiveState Platform, see notice at the PPM index:
Notice! PPM is being replaced with the ActiveState Platform, which
enhances PPM’s build and deploy capabilities. Create your free
Platform account to download ActivePerl or customize Perl with the
packages you require and get automatic updates.
but there is no MinGW package when I choose "Add packages" from the "Configuration" tab at my Perl project from the ActiveState Platform.
However, for the old PPM with perl version 5.24 there is a MinGW package.
Also, if I try run from the Command Prompt:
>ppm install MinGW
ppm install failed: Can't find any package that provides MinGW
I would recommend using Strawberry Perl until this problem with ActivePerl is fixed.

How do I make Alien use an existing tarball instead of downloading?

My distro does not offer any gsl <2.6 any more.
Given:
Alien::GSL 1.01
/tmp/gsl-2.5.tar.gz
How do I force it to compile that gsl instead of downloading from GNU FTP version 2.6, which I already have on the system anyway but is not delectable to Math::GSL 0.40?
I unsuccessfully tried:
copying the tarball into the unpacked Alien::GSL base directory
messing with alien_repository
This is for a throw-away project. I'm okay with manual installation instructions and patching toolchain code.
ikegami found the decisive hint:
It looks like you can set protocol of local to use a local file
Tested step-by-step instructions, plus some additional work-arounds; to me it looks like the build systems of the two modules are buggy/insufficiently tested:
cpanm --look Alien::GSL
patch Build.PL
diff --git a/Build.PL b/Build.PL
index 32f3057..6537138 100644
--- a/Build.PL
+++ b/Build.PL
## -20,10 +20,9 ## my $builder = Alien::Base::ModuleBuild->new(
alien_name => 'gsl',
alien_repository => [
{
- protocol => 'ftp',
- host => 'ftp.gnu.org',
- location => '/gnu/gsl',
- pattern => qr/^gsl-([\d\.]+)\.tar\.gz$/,
+ protocol => 'local',
+ location => '/tmp',
+ pattern => 'gsl-2.5.tar.gz',
},
],
meta_merge => {
--
2.23.0
perl Build.PL
./Build
Pay attention to the generated configure/libtool commands here, they match the Perl configuration. A manual installation without those various options is not guaranteed to be compatible or usable. (This is not superstition: a similar problem historically shows up when installing mod_perl2 and libapreq2 from source on a system httpd; perl needs to be compiled first, then httpd to match, then the other packages, otherwise it won't work.) This shows the value of installing through Alien, since it delegates to M::B, the correct options will be figured out. It's above my level of knowledge to accurately create them from scratch.
./Build test
gsl-config in blib now erroneously contains build paths, not install paths, fix:
perl -MConfig -i -lpe'
s|/.*(/auto/share/dist/Alien-GSL)|$Config{installsitelib}$1|
' blib/lib/auto/share/dist/Alien-GSL/bin/gsl-config
./Build install
exit # cpanm
cpanm --look Math::GSL
# let it pick up gsl-config on PATH
export PATH=$PATH:$(perl -mAlien::GSL -e'print Alien::GSL->bin_dir')
perl Build.PL
./Build
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(gsl-config --libs | perl -lne'/-L(\S+) / && print $1')
./Build test
./Build install
exit # cpanm
Finally rëexport the variables whenever you want to use Math::GSL.

Missing a lot of files in Perl kit

EDIT: Solution was "apt-get install libwww-per" from charlesbridge in the comments
EDIT: Attempted to install by both going into the cpan console and running install LWP::Simple as well as perl -MCPAN -e'install "LWP::Simple"' (from here).
The first time I ran CPAN I just let it configure itself with all the defaults. The below is not a description of the dependencies but all of the missing dependencies are included in this warning message, so I figure if I can solve that then I can solve the rest of it.
Original post:
I've been trying to install some missing Perl packages (namely LWP::Simple) but every time I do it spits back a trillion errors and ends with "Missing 17 dependencies". Most (if not all) are listed below at the very start of the install process. I've tried installing individual ones but I get similar dependency errors. Is there some way to fix this?
Checking if your kit is complete...
Warning: the following files are missing in your kit:
eg/hanchors
eg/hdump
eg/hform
eg/hlc
eg/hrefsub
eg/hstrip
eg/htext
eg/htextsub
eg/htitle
hints/solaris.pl
lib/HTML/Entities.pm
lib/HTML/Filter.pm
lib/HTML/HeadParser.pm
lib/HTML/LinkExtor.pm
lib/HTML/PullParser.pm
lib/HTML/TokeParser.pm
t/api_version.t
t/argspec-bad.t
t/argspec.t
t/argspec2.t
t/attr-encoded.t
t/callback.t
t/case-sensitive.t
t/cases.t
t/comment.t
t/crashme.t
t/declaration.t
t/default.t
t/document.t
t/dtext.t
t/entities.t
t/entities2.t
t/filter-methods.t
t/filter.t
t/handler-eof.t
t/handler.t
t/headparser-http.t
t/headparser.t
t/ignore.t
t/largetags.t
t/linkextor-base.t
t/linkextor-rel.t
t/magic.t
t/marked-sect.t
t/msie-compat.t
t/offset.t
t/options.t
t/parsefile.t
t/parser.t
t/plaintext.t
t/pod.t
t/process.t
t/pullparser.t
t/script.t
t/skipped-text.t
t/stack-realloc.t
t/textarea.t
t/threads.t
t/tokeparser.t
t/uentities.t
t/unbroken-text.t
t/unicode-bom.t
t/unicode.t
t/xml-mode.t
Please inform the author.

running PostgreSQL client in C from Cygwin

I'm trying to build a very simple PostgreSQL client in C over Cygwin.
Here's what I've done so far:
I've downloaded the PostgreSQL source code version 9.1.2 (to match the same version that is running on my server)
I've configured and compiled the source code from Cygwin. The compilation seemed to go smoothly.
From what I can tell, the header files are in:
/cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq, and
/cygdrive/c/workspace/src/postgresql-9.1.2/src/include
The libraries are in:
/cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq
From here, I compiled and linked the client program using the makefile below:
testlibpq: testlibpq.c
gcc -o testlibpq -I /cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq -I /cygdrive/c/workspace/src/postgresql-9.1.2/src/include -L /cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq testlibpq.c -Bstatic -lpq
The compilation and the linking succeeded without errors or warnings.
However, when I try to run the program, I get the following error:
$ ./testlibpq
/cygdrive/c/Users/dleclair/Dropbox/denis/src/testlibpq/testlibpq.exe: error while loading shared libraries: cygpq.dll: cannot open shared object file: No such file or directory
I haven't figured out how to fix this. Any pointers would be greatly appreciated.
Oh, one more thing, I found the folder that cygpq.dll was sitting in and set my LD_LIBRARY_PATH to point to it but it still gave me the same result.
dleclair#dleclair-win7l ~/Dropbox/denis/src/testlibpq
$ ls /cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq
bcc32.mak encnames.o fe-connect.o fe-misc.o fe-protocol3.o ip.o libpq-events.c md5.c pgstrcasecmp.c pqsignal.c thread.o
blibpqdll.def exports.txt fe-exec.c fe-print.c fe-secure.c libpq.a libpq-events.h md5.o pgstrcasecmp.o pqsignal.h wchar.c
chklocale.c fe-auth.c fe-exec.o fe-print.o fe-secure.o libpq.rc.in libpq-events.o nls.mk po pqsignal.o wchar.o
chklocale.o fe-auth.h fe-lobj.c fe-protocol2.c inet_net_ntop.c libpqddll.def libpq-fe.h noblock.c pqexpbuffer.c pthread-win32.c win32.c
cygpq.dll fe-auth.o fe-lobj.o fe-protocol2.o inet_net_ntop.o libpq-dist.rc libpq-int.h noblock.o pqexpbuffer.h README win32.h
encnames.c fe-connect.c fe-misc.c fe-protocol3.c ip.c libpqdll.def Makefile pg_service.conf.sample pqexpbuffer.o thread.c win32.mak
dleclair#dleclair-win7l ~/Dropbox/denis/src/testlibpq
$ echo $LD_LIBRARY_PATH
/cygdrive/c/workspace/src/postgresql-9.1.2/src/interfaces/libpq
dleclair#dleclair-win7l ~/Dropbox/denis/src/testlibpq
Normally on unix/linux systems after building the source a make install is done which copies the headers to standard locations like /usr/local/include and /usr/local/lib. You may have to do that on cygwin to to get the DLL in the search path.
Or you can just locate the DLL yourself and put it on the search path or in the same folder as your executable.