"Additionally cpan didn't want to install automatically. When I try "cpan install RPi-WiringPi" it returns without finding the module.

Neither cpan nor cpanm will allow you to install modules like this:

marto@shemp:~$ cpan install RPi-WiringPi Reading '/home/marto/.cpan/Metadata' Database was generated on Tue, 04 Jul 2017 12:53:45 GMT Warning: Cannot install RPi-WiringPi, don't know what it is. Try the command i /RPi-WiringPi/ to find objects with matching identifiers. marto@shemp:~$ cpan install HTML-Template Reading '/home/marto/.cpan/Metadata' Database was generated on Tue, 04 Jul 2017 12:53:45 GMT Warning: Cannot install HTML-Template, don't know what it is. Try the command i /HTML-Template/ to find objects with matching identifiers. marto@shemp:~$ cpanm RPi-WiringPi ! Finding RPi-WiringPi on cpanmetadb failed. ! Finding RPi-WiringPi () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution RPi-WiringPi marto@shemp:~$ cpanm HTML-Template ! Finding HTML-Template on cpanmetadb failed. ! Finding HTML-Template () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution HTML-Template

On a related note, you could vastly reduce the time to install modules by using cpanm over cpan, it's paninful to watch cpan install modules on a Raspberry Pi. Once the dependancy wiringpi is installed cpanm RPi::WiringPi installs everything in a reasonable time for a Modeal A v1 Pi running a bunch of other stuff (apache, openvpn etc).

Update: parent updated since posting reply: adding "I finally read that you need to install WiringPi C lib first, before installing WiringPi::API. Then I also needed to manually install RPi-Pin-2.3603. Other than those glitches, it all installed fine."


In reply to Re^2: Contemplating a documentation series for my Raspberry Pi work by marto
in thread Contemplating a documentation series for my Raspberry Pi work by stevieb

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.