Paste the following into a file, and save it in the BBEdit “Text Filters” directory.
#!/usr/bin/perl -w
use strict;
use MIME::Decoder;
my $decoder = new MIME::Decoder 'quoted-printable' or die "unsupported";
$decoder->decode(\*STDIN, \*STDOUT);
1;
If MIME::Decoder isn’t already installed; try to install with:
sudo cpan MIME::Decoder
Charlie
--
Charlie Garrison garr...@zeta.org.au
github.com/cngarrison metacpan.org/author/CNG
O< ascii ribbon campaign - stop html mail
Conundrum
apr=3DC3=3DA8s
Paste the following into a file, and save it in the BBEdit “Text Filters” directory.
#!/usr/bin/perl -w use strict; use MIME::Decoder; my $decoder = new MIME::Decoder 'quoted-printable' or die "unsupported"; $decoder->decode(\*STDIN, \*STDOUT); 1;
après
If
MIME::Decoderisn’t already installed; try to install with:sudo cpan MIME::Decoder
I did this in Terminal and got a huge log with a lot of external connections (to mirrors):
CPAN is the world-wide archive of perl resources. It consists of about300 sites that all replicate the same contents around the globe. Manycountries have at least one CPAN site already. The resources found onCPAN are easily accessible with the CPAN.pm module. If you want to useCPAN.pm, lots of things have to be configured. Fortunately, most ofthem can be determined automatically. If you prefer the automaticconfiguration, answer 'yes' below.
If you prefer to enter a dialog instead, you can answer 'no' to thisquestion and I'll let you configure in small steps one thing after theother. (Note: you can revisit this dialog anytime later by typing 'oconf init' at the cpan prompt.)
Would you like me to configure as much as possible automatically? [yes] yes
Autoconfigured everything but 'urllist'.
Now you need to choose your CPAN mirror sites. You can let mepick mirrors for you, you can select them from a list or youcan enter them by hand.
Would you like me to automatically choose the best CPAN mirrorsites for you? (This means connecting to the Internet and couldtake a couple minutes) [yes] yes
Trying to fetch a mirror list from the Internet LWP not available LWP not availableFetching with Net::FTP:
Searching for the best CPAN mirrors (please be patient) ............................................................................................... done!
New urllist
Autoconfiguration complete.
commit: wrote '/opt/local/lib/perl5/5.12.4/CPAN/Config.pm' LWP not availableFetching with Net::FTP:Going to read '/Users/myname/.cpan/sources/authors/01mailrc.txt.gz'............................................................................DONE LWP not availableFetching with Net::FTP:Going to read '/Users/myname/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Wed, 10 Aug 2016 06:29:02 GMT HTTP::Date not available............. New CPAN.pm version (v2.14) available. [Currently running version is v1.9456] You might want to try install CPAN reload cpan to both upgrade CPAN.pm and run the new version without leaving the current session.
...............................................................DONE LWP not availableFetching with Net::FTP:Going to read '/Users/myname/.cpan/sources/modules/03modlist.data.gz'DONEGoing to write /Users/myname/.cpan/MetadataRunning install for module 'MIME::Decoder'Running make for D/DS/DSKOLL/MIME-tools-5.507.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/D/DS/DSKOLL/MIME-tools-5.507.tar.gz ok---- Unsatisfied dependencies detected during -------- DSKOLL/MIME-tools-5.507.tar.gz ---- ExtUtils::MakeMaker [build_requires]Running make test Make had some problems, won't test Delayed until after prerequisitesRunning make install Make had some problems, won't install Delayed until after prerequisitesRunning install for module 'ExtUtils::MakeMaker'Running make for B/BI/BINGOS/ExtUtils-MakeMaker-7.22.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-7.22.tar.gz ok
CPAN.pm: Going to build B/BI/BINGOS/ExtUtils-MakeMaker-7.22.tar.gz
Using included version of CPAN::Meta (2.143240) because it is not already installed.Using included version of CPAN::Meta::Requirements (2.131) because it is not already installed.Using included version of CPAN::Meta::YAML (0.011) because it is not already installed.Using included version of ExtUtils::Manifest (1.70) as it is newer than the installed version (1.57).Using included version of JSON::PP (2.27203) because it is not already installed.Using included version of Parse::CPAN::Meta (1.4414) as it is newer than the installed version (1.40).Checking if your kit is complete...Looks goodGenerating a Unix-style MakefileWriting Makefile for ExtUtils::MakeMakerWriting MYMETA.yml and MYMETA.jsonxcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun BINGOS/ExtUtils-MakeMaker-7.22.tar.gz /usr/bin/make -- NOT OK'YAML' not installed, will not store persistent stateRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning make for D/DS/DSKOLL/MIME-tools-5.507.tar.gzWarning: Prerequisite 'ExtUtils::MakeMaker => 6.59' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'BINGOS/ExtUtils-MakeMaker-7.22.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.
CPAN.pm: Going to build D/DS/DSKOLL/MIME-tools-5.507.tar.gz
Checking if your kit is complete...Looks goodWarning: prerequisite ExtUtils::MakeMaker 6.59 not found. We have 6.56.Warning: prerequisite Mail::Field 1.05 not found.Warning: prerequisite Mail::Header 1.01 not found.Warning: prerequisite Mail::Internet 1.0203 not found.Warning: prerequisite Test::Deep 0 not found.Writing Makefile for MIME::ToolsWarning: Prerequisite 'ExtUtils::MakeMaker => 6.59' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'BINGOS/ExtUtils-MakeMaker-7.22.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.---- Unsatisfied dependencies detected during -------- DSKOLL/MIME-tools-5.507.tar.gz ---- Mail::Header [requires] Mail::Field [requires] Mail::Internet [requires] Test::Deep [requires]Running make test Delayed until after prerequisitesRunning make install Delayed until after prerequisitesRunning install for module 'Mail::Header'Running make for M/MA/MARKOV/MailTools-2.18.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/M/MA/MARKOV/MailTools-2.18.tar.gz ok
CPAN.pm: Going to build M/MA/MARKOV/MailTools-2.18.tar.gz
Checking if your kit is complete...Looks goodWarning: prerequisite Date::Format 0 not found.Warning: prerequisite Date::Parse 0 not found.Writing Makefile for Mail---- Unsatisfied dependencies detected during -------- MARKOV/MailTools-2.18.tar.gz ---- Date::Format [requires] Date::Parse [requires]Running make test Delayed until after prerequisitesRunning make install Delayed until after prerequisitesRunning install for module 'Date::Format'Running make for G/GB/GBARR/TimeDate-2.30.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/G/GB/GBARR/TimeDate-2.30.tar.gz ok
CPAN.pm: Going to build G/GB/GBARR/TimeDate-2.30.tar.gz
Checking if your kit is complete...Looks goodWriting Makefile for Date::Parsexcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun GBARR/TimeDate-2.30.tar.gz /usr/bin/make -- NOT OKRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning install for module 'Date::Parse'Running make for G/GB/GBARR/TimeDate-2.30.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/TimeDate-2.30-0JYBnWCould not make: Unknown errorRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning make for M/MA/MARKOV/MailTools-2.18.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/MailTools-2.18-fIo0Nv
CPAN.pm: Going to build M/MA/MARKOV/MailTools-2.18.tar.gz
Warning: Prerequisite 'Date::Format => 0' for 'MARKOV/MailTools-2.18.tar.gz' failed when processing 'GBARR/TimeDate-2.30.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.Warning: Prerequisite 'Date::Parse => 0' for 'MARKOV/MailTools-2.18.tar.gz' failed when processing 'GBARR/TimeDate-2.30.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun MARKOV/MailTools-2.18.tar.gz /usr/bin/make -- NOT OKRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning install for module 'Mail::Field'Running make for M/MA/MARKOV/MailTools-2.18.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/MailTools-2.18-fIo0NvCould not make: Unknown errorRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning install for module 'Mail::Internet'Running make for M/MA/MARKOV/MailTools-2.18.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/MailTools-2.18-fIo0NvCould not make: Unknown errorRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning install for module 'Test::Deep'Running make for R/RJ/RJBS/Test-Deep-1.120.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/R/RJ/RJBS/Test-Deep-1.120.tar.gz ok
CPAN.pm: Going to build R/RJ/RJBS/Test-Deep-1.120.tar.gz
Checking if your kit is complete...Looks goodWarning: prerequisite Test::Tester 0.04 not found.Writing Makefile for Test::Deep---- Unsatisfied dependencies detected during -------- RJBS/Test-Deep-1.120.tar.gz ---- Test::Tester [requires]Running make test Delayed until after prerequisitesRunning make install Delayed until after prerequisitesRunning install for module 'Test::Tester'Running make for E/EX/EXODIST/Test-Simple-1.302049.tar.gz LWP not availableFetching with Net::FTP: LWP not availableFetching with Net::FTP:Checksum for /Users/myname/.cpan/sources/authors/id/E/EX/EXODIST/Test-Simple-1.302049.tar.gz ok
CPAN.pm: Going to build E/EX/EXODIST/Test-Simple-1.302049.tar.gz
Checking if your kit is complete...Looks goodWriting Makefile for Test::Simplexcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun EXODIST/Test-Simple-1.302049.tar.gz /usr/bin/make -- NOT OKRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning make for R/RJ/RJBS/Test-Deep-1.120.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/Test-Deep-1.120-XJ3QTX
CPAN.pm: Going to build R/RJ/RJBS/Test-Deep-1.120.tar.gz
Warning: Prerequisite 'Test::Tester => 0.04' for 'RJBS/Test-Deep-1.120.tar.gz' failed when processing 'EXODIST/Test-Simple-1.302049.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun RJBS/Test-Deep-1.120.tar.gz /usr/bin/make -- NOT OKRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleRunning make for D/DS/DSKOLL/MIME-tools-5.507.tar.gz Has already been unwrapped into directory /Users/myname/.cpan/build/MIME-tools-5.507-h8FWlA
CPAN.pm: Going to build D/DS/DSKOLL/MIME-tools-5.507.tar.gz
Warning: Prerequisite 'Mail::Header => 1.01' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'MARKOV/MailTools-2.18.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.Warning: Prerequisite 'ExtUtils::MakeMaker => 6.59' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'BINGOS/ExtUtils-MakeMaker-7.22.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.Warning: Prerequisite 'Mail::Field => 1.05' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'MARKOV/MailTools-2.18.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.Warning: Prerequisite 'Mail::Internet => 1.0203' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'MARKOV/MailTools-2.18.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.Warning: Prerequisite 'Test::Deep => 0' for 'DSKOLL/MIME-tools-5.507.tar.gz' failed when processing 'RJBS/Test-Deep-1.120.tar.gz' with 'make => NO'. Continuing, but chances to succeed are limited.xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun DSKOLL/MIME-tools-5.507.tar.gz /usr/bin/make -- NOT OKRunning make test Can't test without successful makeRunning make install Make had returned bad status, install seems impossibleiMac-de-myname:~ myname$
iMac-de-myname:~ myname$ perl -MCPAN -eshellTerminal does not support AddHistory.
Your configuration suggests that CPAN.pm should use a workingdirectory of /Users/myname/.cpanUnfortunately we could not create the lock file /Users/myname/.cpan/.lockdue to permission problems.
Please make sure that the configuration variable $CPAN::Config->{cpan_home}points to a directory where you can write a .lock file. You can setthis variable in either a CPAN/MyConfig.pm or a CPAN/Config.pm in your@INC path;You don't seem to have a user configuration (MyConfig.pm) yet.Do you want to create a user configuration now? (Y/n) [yes] yesmkdir /Users/myname/.cpan/CPAN: Permission denied at /opt/local/lib/perl5/5.12.4/CPAN/Shell.pm line 663iMac-de-myname:~ myname$ On 10 Aug 2016, at 19:27, irep wrote:
I did this in Terminal and got a huge log with a lot of external connections (to mirrors):
I don’t install stuff into the system perl, so not sure how to help with those errors. I use perlbrew for a custom Perl installation for each project, and installing modules is trivial.
Having a quick read of the log you showed, my first guess is you don’t have Dev Tools (Xcode) installed. You need those in order to install Perl modules.
This is the error that actually stopped things:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
It looks like you used encode instead of decode.
Ronald