Skip to content

Can't locate DBD/SQLite.pm in @INC #1

@eserte

Description

@eserte

t/URI-Shortener.t fails if DBD::SQLite is not installed --- probably a prereq or a test skip is needed here.

#   Failed test 'No tests run for subtest "happy path"'
#   at t/URI-Shortener.t line 28.
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (you may need to install the DBD::SQLite module) (@INC entries checked: /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib /lib /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/blib/lib /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/blib/arch /home/cpansand/.cpan/build/2026020520/Test-Fatal-0.018-0/blib/arch /home/cpansand/.cpan/build/2026020520/Test-Fatal-0.018-0/blib/lib /home/cpansand/.cpan/build/2026020520/FindBin-libs-v4.0.4-0/blib/arch /home/cpansand/.cpan/build/2026020520/FindBin-libs-v4.0.4-0/blib/lib /home/cpansand/.cpan/build/2026020520/Data-Dump-1.25-0/blib/arch /home/cpansand/.cpan/build/2026020520/Data-Dump-1.25-0/blib/lib /home/cpansand/.cpan/build/2026020520/File-Copy-Recursive-Reduced-0.008-0/blib/arch /home/cpansand/.cpan/build/2026020520/File-Copy-Recursive-Reduced-0.008-0/blib/lib /home/cpansand/.cpan/build/2026020520/File-Touch-0.12-1/blib/arch /home/cpansand/.cpan/build/2026020520/File-Touch-0.12-1/blib/lib /home/cpansand/.cpan/build/2026020520/CryptX-0.087-0/blib/arch /home/cpansand/.cpan/build/2026020520/CryptX-0.087-0/blib/lib /home/cpansand/.cpan/build/2026020520/Carp-Always-0.16-0/blib/arch /home/cpansand/.cpan/build/2026020520/Carp-Always-0.16-0/blib/lib /home/cpansand/.cpan/build/2026020520/Test-Base-0.89-0/blib/arch /home/cpansand/.cpan/build/2026020520/Test-Base-0.89-0/blib/lib /home/cpansand/.cpan/build/2026020520/Spiffy-0.46-0/blib/arch /home/cpansand/.cpan/build/2026020520/Spiffy-0.46-0/blib/lib /usr/local/lib/perl5/site_perl/mach/5.42 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.42/mach /usr/local/lib/perl5/5.42 .) at (eval 25) line 3.
	eval 'package			# hide from PAUSE
		DBI::_firesafe;		# just in case
	    require DBD::SQLite;	# load the driver
    ' called at /usr/local/lib/perl5/site_perl/mach/5.42/DBI.pm line 795
	DBI::install_driver("DBI", "SQLite") called at /usr/local/lib/perl5/site_perl/mach/5.42/DBI.pm line 664
	DBI::connect("DBI", "dbi:SQLite:dbname=:memory:", "", "") called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 202
	URI::Shortener::_sqlite_dbh(URI::Shortener=HASH(0x53a6fc889618)) called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 191
	URI::Shortener::_dbh(URI::Shortener=HASH(0x53a6fc889618)) called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 134
	URI::Shortener::shorten(URI::Shortener=HASH(0x53a6fc889618), "https://mydomain.test/somePath") called at t/URI-Shortener.t line 20
	main::__ANON__() called at /usr/local/lib/perl5/site_perl/Test/Builder.pm line 368
	eval {...} called at /usr/local/lib/perl5/site_perl/Test/Builder.pm line 368
	Test::Builder::subtest(Test::Builder=HASH(0x53a6fcb817e0), "happy path", CODE(0x53a6fcb0ca50)) called at /usr/local/lib/perl5/site_perl/Test/More.pm line 831
	Test::More::subtest("happy path", CODE(0x53a6fcb0ca50)) called at t/URI-Shortener.t line 28
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Mem, Pg, Proxy, Sponge.
 at /usr/local/lib/perl5/site_perl/mach/5.42/DBI.pm line 819.
	DBI::install_driver("DBI", "SQLite") called at /usr/local/lib/perl5/site_perl/mach/5.42/DBI.pm line 664
	DBI::connect("DBI", "dbi:SQLite:dbname=:memory:", "", "") called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 202
	URI::Shortener::_sqlite_dbh(URI::Shortener=HASH(0x53a6fc889618)) called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 191
	URI::Shortener::_dbh(URI::Shortener=HASH(0x53a6fc889618)) called at /home/cpansand/.cpan/build/2026020520/URI-Shortener-1.005-4/lib/URI/Shortener.pm line 134
	URI::Shortener::shorten(URI::Shortener=HASH(0x53a6fc889618), "https://mydomain.test/somePath") called at t/URI-Shortener.t line 20
	main::__ANON__() called at /usr/local/lib/perl5/site_perl/Test/Builder.pm line 368
	eval {...} called at /usr/local/lib/perl5/site_perl/Test/Builder.pm line 368
	Test::Builder::subtest(Test::Builder=HASH(0x53a6fcb817e0), "happy path", CODE(0x53a6fcb0ca50)) called at /usr/local/lib/perl5/site_perl/Test/More.pm line 831
	Test::More::subtest("happy path", CODE(0x53a6fcb0ca50)) called at t/URI-Shortener.t line 28
 at /usr/local/lib/perl5/site_perl/Test/Builder.pm line 412.
	Test::Builder::subtest(Test::Builder=HASH(0x53a6fcb817e0), "happy path", CODE(0x53a6fcb0ca50)) called at /usr/local/lib/perl5/site_perl/Test/More.pm line 831
	Test::More::subtest("happy path", CODE(0x53a6fcb0ca50)) called at t/URI-Shortener.t line 28
# Looks like your test exited with 255 just after 1.
t/URI-Shortener.t ........... 
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 4/4 subtests 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions