You seem to have tried to install this with Active State and DWIM perls, both report:

cannot open output file blib\arch\auto\DB_File\DB_File.dll: Permission + denied

Have you investigated this permissions issue? Is there a reason you're trying to install one version behind the current release? It installs with no problems using Strawberry Perl:

cpan> install DB_File Database was generated on Sun, 07 Apr 2013 12:36:52 GMT Running install for module 'DB_File' Running make for P/PM/PMQS/DB_File-1.827.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/P/PM/PMQS/DB_File-1.827.tar. +gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/P/PM/PMQS/CHECKSUMS Checksum for C:\strawberry\cpan\sources\authors\id\P\PM\PMQS\DB_File-1 +.827.tar.g z ok Scanning cache C:\strawberry\cpan\build for sizes ..................................................................---- +------DONE DEL(1/4): C:\strawberry\cpan\build\PAR-Packer-1.014-Baghlv DEL(2/4): C:\strawberry\cpan\build\PAR-Packer-1.014-Baghlv.yml DEL(3/4): C:\strawberry\cpan\build\IO-Tty-1.10-JZt_gh DEL(4/4): C:\strawberry\cpan\build\IO-Tty-1.10-JZt_gh.yml CPAN.pm: Going to build P/PM/PMQS/DB_File-1.827.tar.gz Parsing config.in... Looks Good. Checking if your kit is complete... Looks good Writing Makefile for DB_File Writing MYMETA.yml and MYMETA.json cp DB_File.pm blib\lib\DB_File.pm AutoSplitting blib\lib\DB_File.pm (blib\lib\auto\DB_File) gcc -c -I/usr/local/BerkeleyDB/include -s -O2 -DWIN32 -DHAVE_ +DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno- +strict-ali asing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\" +1.827\" -DXS_VERSION=\"1.827\" "-IC:\strawberry\perl\lib\CORE" -D_NOT_CORE +-DmDB_Pref ix_t=size_t -DmDB_Hash_t=u_int32_t version.c C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -noprotot ypes -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap + DB_File. xs > DB_File.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Comman +d -e mv -- DB_File.xsc DB_File.c gcc -c -I/usr/local/BerkeleyDB/include -s -O2 -DWIN32 -DHAVE_ +DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno- +strict-ali asing -mms-bitfields -DPERL_MSVCRT_READFIX -s -O2 -DVERSION=\" +1.827\" -DXS_VERSION=\"1.827\" "-IC:\strawberry\perl\lib\CORE" -D_NOT_CORE +-DmDB_Pref ix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c Running Mkbootstrap for DB_File () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 DB +_File.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"DB_File\", 'DLBASE' => 'DB_File', 'DL_FU +NCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def DB_File.def --output-exp dll.exp g++ -o blib\arch\auto\DB_File\DB_File.dll -Wl,--base-file -Wl,dll.base + -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" version.o DB_F +ile.o C: \strawberry\perl\lib\CORE\libperl512.a C:\strawberry\c\lib\libdb.a C:\ +strawberry \c\i686-w64-mingw32\lib\libmoldname.a C:\strawberry\c\i686-w64-mingw32 +\lib\libke rnel32.a C:\strawberry\c\i686-w64-mingw32\lib\libuser32.a C:\strawberr +y\c\i686-w 64-mingw32\lib\libgdi32.a C:\strawberry\c\i686-w64-mingw32\lib\libwins +pool.a C:\ strawberry\c\i686-w64-mingw32\lib\libcomdlg32.a C:\strawberry\c\i686-w +64-mingw32 \lib\libadvapi32.a C:\strawberry\c\i686-w64-mingw32\lib\libshell32.a C +:\strawber ry\c\i686-w64-mingw32\lib\libole32.a C:\strawberry\c\i686-w64-mingw32\ +lib\libole aut32.a C:\strawberry\c\i686-w64-mingw32\lib\libnetapi32.a C:\strawber +ry\c\i686- w64-mingw32\lib\libuuid.a C:\strawberry\c\i686-w64-mingw32\lib\libws2_ +32.a C:\st rawberry\c\i686-w64-mingw32\lib\libmpr.a C:\strawberry\c\i686-w64-ming +w32\lib\li bwinmm.a C:\strawberry\c\i686-w64-mingw32\lib\libversion.a C:\strawber +ry\c\i686- w64-mingw32\lib\libodbc32.a C:\strawberry\c\i686-w64-mingw32\lib\libod +bccp32.a C :\strawberry\c\i686-w64-mingw32\lib\libcomctl32.a dll.exp dlltool --def DB_File.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\DB_File\DB_File.dll -mdll -s -L"C:\strawberry\pe +rl\lib\COR E" -L"C:\strawberry\c\lib" version.o DB_File.o C:\strawberry\perl\li +b\CORE\lib perl512.a C:\strawberry\c\lib\libdb.a C:\strawberry\c\i686-w64-mingw32 +\lib\libmo ldname.a C:\strawberry\c\i686-w64-mingw32\lib\libkernel32.a C:\strawbe +rry\c\i686 -w64-mingw32\lib\libuser32.a C:\strawberry\c\i686-w64-mingw32\lib\libg +di32.a C:\ strawberry\c\i686-w64-mingw32\lib\libwinspool.a C:\strawberry\c\i686-w +64-mingw32 \lib\libcomdlg32.a C:\strawberry\c\i686-w64-mingw32\lib\libadvapi32.a +C:\strawbe rry\c\i686-w64-mingw32\lib\libshell32.a C:\strawberry\c\i686-w64-mingw +32\lib\lib ole32.a C:\strawberry\c\i686-w64-mingw32\lib\liboleaut32.a C:\strawber +ry\c\i686- w64-mingw32\lib\libnetapi32.a C:\strawberry\c\i686-w64-mingw32\lib\lib +uuid.a C:\ strawberry\c\i686-w64-mingw32\lib\libws2_32.a C:\strawberry\c\i686-w64 +-mingw32\l ib\libmpr.a C:\strawberry\c\i686-w64-mingw32\lib\libwinmm.a C:\strawbe +rry\c\i686 -w64-mingw32\lib\libversion.a C:\strawberry\c\i686-w64-mingw32\lib\lib +odbc32.a C :\strawberry\c\i686-w64-mingw32\lib\libodbccp32.a C:\strawberry\c\i686 +-w64-mingw 32\lib\libcomctl32.a dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 bl +ib\arch\au to\DB_File\DB_File.dll C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- DB_File.b +s blib\arc h\auto\DB_File\DB_File.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 bl +ib\arch\au to\DB_File\DB_File.bs PMQS/DB_File-1.827.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/db-btree.t .. ok t/db-hash.t ... ok t/db-recno.t .. ok t/pod.t ....... skipped: Test::Pod 1.00 required for testing POD All tests successful. Files=4, Tests=567, 9 wallclock secs ( 0.13 usr + 0.05 sys = 0.17 C +PU) Result: PASS PMQS/DB_File-1.827.tar.gz C:\strawberry\c\bin\dmake.EXE test -- OK Running make install Prepending C:\strawberry\cpan\build\DB_File-1.827-v2A_eQ/blib/arch C:\ +strawberry \cpan\build\DB_File-1.827-v2A_eQ/blib/lib to PERL5LIB for 'install' Files found in blib\arch: installing files in blib\lib into architectu +re depende nt library tree Installing C:\strawberry\perl\lib\auto\DB_File\DB_File.bs Installing C:\strawberry\perl\lib\auto\DB_File\DB_File.dll Installing C:\strawberry\perl\lib\DB_File.pm Installing C:\strawberry\perl\lib\auto\DB_File\autosplit.ix Appending installation info to C:\strawberry\perl\lib/perllocal.pod PMQS/DB_File-1.827.tar.gz C:\strawberry\c\bin\dmake.EXE install UNINST=1 -- OK cpan>

In reply to Re^2: install DB_File by marto
in thread install DB_File by phambao

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.