Re: [SLUG] perl modules ubuntu probs
The apt version will overwrite the cpan version. (not always). Cpan will report one version and and apt another which can get confusing. I have mixed apt and cpan to correct versions of software and when I update it is generally to the version that works for me anyway Ken Foskey On 15/04/2011, at 9:28 AM, Amos Shapira wrote: > Not sure. > I'd lean towards removing it if possible (usually should be possible through > standard CPAN commands). > Check first where the files from the CPAN package were installed vs. the > dpkg package. > > On 14 April 2011 14:38, Voytek Eymont wrote: > >> >> On Fri, April 15, 2011 6:55 am, Amos Shapira wrote: >>> (I assume you meant "clan"->"cpan", right?) >>> Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either >>> install EVERYTHING from cpan or nothing at all. >>> >>> A quick "apt-cache search BinHex" shows that there is a ubuntu package >>> for it: libconvert-binhex-perl. >> >> >> Amos, thanks >> >> I've done 'apt-get install libconvert-binhex-perl' m it's OK >> >> BUT do I need to do anything about the previously done CPAN install ? >> >> perl -MCPAN -e shell >> cpan[1]> force install Convert::BinHex >> >> cpan[1]> install Convert::BinHex >> CPAN: Storable loaded ok (v2.20) >> Going to read '/root/.cpan/Metadata' >> Database was generated on Thu, 14 Apr 2011 21:29:14 GMT >> CPAN: Module::CoreList loaded ok (v2.18) >> Convert::BinHex is up to date (1.119). >> >> >> >> -- >> Voytek >> >> -- >> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ >> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html >> > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
Not sure. I'd lean towards removing it if possible (usually should be possible through standard CPAN commands). Check first where the files from the CPAN package were installed vs. the dpkg package. On 14 April 2011 14:38, Voytek Eymont wrote: > > On Fri, April 15, 2011 6:55 am, Amos Shapira wrote: > > (I assume you meant "clan"->"cpan", right?) > > Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either > > install EVERYTHING from cpan or nothing at all. > > > > A quick "apt-cache search BinHex" shows that there is a ubuntu package > > for it: libconvert-binhex-perl. > > > Amos, thanks > > I've done 'apt-get install libconvert-binhex-perl' m it's OK > > BUT do I need to do anything about the previously done CPAN install ? > > perl -MCPAN -e shell > cpan[1]> force install Convert::BinHex > > cpan[1]> install Convert::BinHex > CPAN: Storable loaded ok (v2.20) > Going to read '/root/.cpan/Metadata' > Database was generated on Thu, 14 Apr 2011 21:29:14 GMT > CPAN: Module::CoreList loaded ok (v2.18) > Convert::BinHex is up to date (1.119). > > > > -- > Voytek > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
On Fri, April 15, 2011 6:55 am, Amos Shapira wrote: > (I assume you meant "clan"->"cpan", right?) > Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either > install EVERYTHING from cpan or nothing at all. > > A quick "apt-cache search BinHex" shows that there is a ubuntu package > for it: libconvert-binhex-perl. Amos, thanks I've done 'apt-get install libconvert-binhex-perl' m it's OK BUT do I need to do anything about the previously done CPAN install ? perl -MCPAN -e shell cpan[1]> force install Convert::BinHex cpan[1]> install Convert::BinHex CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Thu, 14 Apr 2011 21:29:14 GMT CPAN: Module::CoreList loaded ok (v2.18) Convert::BinHex is up to date (1.119). -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
(I assume you meant "clan"->"cpan", right?) Mixing CPAN and none-cpan packing is an invitation to a nightmare. Either install EVERYTHING from cpan or nothing at all. A quick "apt-cache search BinHex" shows that there is a ubuntu package for it: libconvert-binhex-perl. If you need a CPAN package which doesn't have a .deb then there are relatively simple tools to create .deb. --Amos On 14 April 2011 01:06, Ken Foskey wrote: > Force it then use clan to upgrade it. When it updates through the pm next > it will overwrite because the pm does not know about your manual update > > Ken Foskey > > On 14/04/2011, at 1:41 PM, "Voytek Eymont" wrote: > > > > > On Thu, April 14, 2011 9:31 am, John Clarke wrote: > >> On Wed, Apr 13, 2011 at 11:55:59PM +1000, Voytek Eymont wrote: > > > >>> amavis says error with MIME Decoder BinHex but perl says it's > >>> installed, > >> > >> Read the error message more closely: > > > > John, > > > > ooops, you're right, sorry > > > > > >> MIME/Decoder/BinHex.pm won't start because it needs to load > >> Convert/BinHex.pm, and perl can't find it. You need to install > >> Convert::BinHex. > > > > I guess that's why: > > > > "make test had returned bad status, won't install without force" > > > > if I force install, is that a really bad thing to do ? > > > > or what else ? > > > > > > > > Checking if your kit is complete... > > Looks good > > Writing Makefile for Convert::BinHex > > Could not read metadata file. Falling back to other methods to determine > > prerequisites > > cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm > > Manifying blib/man3/Convert::BinHex.3pm > > ERYQ/Convert-BinHex-1.119.tar.gz > > /usr/bin/make -- OK > > Running make test > > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at > > t/comp2bin.t line 3. > > Undefined subroutine &main::check called at t/comp2bin.t line 75. > > t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00) > > Failed 9/9 subtests > > > > Test Summary Report > > --- > > t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0) > > Non-zero exit status: 255 > > Parse errors: Bad plan. You planned 9 tests but ran 0. > > Files=1, Tests=0, 0 wallclock secs ( 0.06 usr 0.02 sys + 0.04 cusr > > 0.03 csys = 0.15 CPU) > > Result: FAIL > > Failed 1/1 test programs. 0/0 subtests failed. > > make: *** [test_dynamic] Error 255 > > ERYQ/Convert-BinHex-1.119.tar.gz > > /usr/bin/make test -- NOT OK > > //hint// to see the cpan-testers results for installing this module, try: > > reports ERYQ/Convert-BinHex-1.119.tar.gz > > Running make install > > make test had returned bad status, won't install without force > > Failed during this command: > > ERYQ/Convert-BinHex-1.119.tar.gz : make_test NO > > > > > > > > > > -- > > Voytek > > > > -- > > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > > > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
Force it then use clan to upgrade it. When it updates through the pm next it will overwrite because the pm does not know about your manual update Ken Foskey On 14/04/2011, at 1:41 PM, "Voytek Eymont" wrote: > > On Thu, April 14, 2011 9:31 am, John Clarke wrote: >> On Wed, Apr 13, 2011 at 11:55:59PM +1000, Voytek Eymont wrote: > >>> amavis says error with MIME Decoder BinHex but perl says it's >>> installed, >> >> Read the error message more closely: > > John, > > ooops, you're right, sorry > > >> MIME/Decoder/BinHex.pm won't start because it needs to load >> Convert/BinHex.pm, and perl can't find it. You need to install >> Convert::BinHex. > > I guess that's why: > > "make test had returned bad status, won't install without force" > > if I force install, is that a really bad thing to do ? > > or what else ? > > > > Checking if your kit is complete... > Looks good > Writing Makefile for Convert::BinHex > Could not read metadata file. Falling back to other methods to determine > prerequisites > cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm > Manifying blib/man3/Convert::BinHex.3pm > ERYQ/Convert-BinHex-1.119.tar.gz > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at > t/comp2bin.t line 3. > Undefined subroutine &main::check called at t/comp2bin.t line 75. > t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00) > Failed 9/9 subtests > > Test Summary Report > --- > t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0) > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 9 tests but ran 0. > Files=1, Tests=0, 0 wallclock secs ( 0.06 usr 0.02 sys + 0.04 cusr > 0.03 csys = 0.15 CPU) > Result: FAIL > Failed 1/1 test programs. 0/0 subtests failed. > make: *** [test_dynamic] Error 255 > ERYQ/Convert-BinHex-1.119.tar.gz > /usr/bin/make test -- NOT OK > //hint// to see the cpan-testers results for installing this module, try: > reports ERYQ/Convert-BinHex-1.119.tar.gz > Running make install > make test had returned bad status, won't install without force > Failed during this command: > ERYQ/Convert-BinHex-1.119.tar.gz : make_test NO > > > > > -- > Voytek > > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > > -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
On Thu, April 14, 2011 9:31 am, John Clarke wrote: > On Wed, Apr 13, 2011 at 11:55:59PM +1000, Voytek Eymont wrote: >> amavis says error with MIME Decoder BinHex but perl says it's >> installed, > > Read the error message more closely: John, ooops, you're right, sorry > MIME/Decoder/BinHex.pm won't start because it needs to load > Convert/BinHex.pm, and perl can't find it. You need to install > Convert::BinHex. I guess that's why: "make test had returned bad status, won't install without force" if I force install, is that a really bad thing to do ? or what else ? Checking if your kit is complete... Looks good Writing Makefile for Convert::BinHex Could not read metadata file. Falling back to other methods to determine prerequisites cp lib/Convert/BinHex.pm blib/lib/Convert/BinHex.pm Manifying blib/man3/Convert::BinHex.3pm ERYQ/Convert-BinHex-1.119.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/comp2bin.t .. Can't locate package Exporter for @Checker::ISA at t/comp2bin.t line 3. Undefined subroutine &main::check called at t/comp2bin.t line 75. t/comp2bin.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 9/9 subtests Test Summary Report --- t/comp2bin.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 9 tests but ran 0. Files=1, Tests=0, 0 wallclock secs ( 0.06 usr 0.02 sys + 0.04 cusr 0.03 csys = 0.15 CPU) Result: FAIL Failed 1/1 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 255 ERYQ/Convert-BinHex-1.119.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports ERYQ/Convert-BinHex-1.119.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: ERYQ/Convert-BinHex-1.119.tar.gz : make_test NO -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
Re: [SLUG] perl modules ubuntu probs
On Wed, Apr 13, 2011 at 11:55:59PM +1000, Voytek Eymont wrote: > amavis says error with MIME Decoder BinHex but perl says it's installed, Read the error message more closely: > # amavisd debug > fetch_modules: error loading optional module MIME/Decoder/BinHex.pm: > Can't locate Convert/BinHex.pm in @INC (@INC contains: /etc/perl MIME/Decoder/BinHex.pm won't start because it needs to load Convert/BinHex.pm, and perl can't find it. You need to install Convert::BinHex. John -- "chmod 777" - also known as "asking to be mirrored at attrition.org". -- James Riden -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
[SLUG] perl modules ubuntu probs
I'm trying to install amavisd-new on ubuntu, amavis says error with MIME Decoder BinHex but perl says it's installed, what's the best way forward ? # amavisd debug fetch_modules: error loading optional module MIME/Decoder/BinHex.pm: Can't locate Convert/BinHex.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /usr/local/share/perl/5.10.1/MIME/Decoder/BinHex.pm line 43. BEGIN failed--compilation aborted at /usr/local/share/perl/5.10.1/MIME/Decoder/BinHex.pm line 43. Compilation failed in require at /usr/local/sbin/amavisd line 197. Problem in Amavis::DB or Amavis::DB::SNMP code: Can't locate BerkeleyDB.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at (eval 86) line 19. BEGIN failed--compilation aborted at (eval 86) line 19. # perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.9600) Enter 'h' for help. cpan[1]> install MIME::Decoder::BinHex CPAN: Storable loaded ok (v2.20) Going to read '/root/.cpan/Metadata' Database was generated on Wed, 13 Apr 2011 12:29:43 GMT CPAN: Module::CoreList loaded ok (v2.18) MIME::Decoder::BinHex is up to date (5.502). -- Voytek -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html