WiringPi Perl

I had some problems with the compilation of Wiring Pi Perl, here is how it worked out for me:

Get the clone from github
git clone git://github.com/WiringPi/WiringPi-Perl.git

This will get you a directory named

When I tried to compile WiringPi-Perl by using the script
I faced some errors.

It turned out that the link to the perl library needed to be modified from
/usr/lib/perl/5.10.1/CORE to /usr/lib/perl/5.14.2/CORE to match my system.

In addition the sub-directory WiringPi was empty, to fix that I simply cloned wiringPi into the directory
git clone git://github.com/WiringPi/WiringPi.git

This left me with one final error: a missing WiringPi/wiringPi/serial.h
I checked the directory and found a wiringSerial.h.
So I created my own serial.h with cp wiringSerial.h serial.h

With these modifications the compilation completed without any issues.

I did not test it yet, but will try it out soon.

One thought on “WiringPi Perl

  1. Stumbled across your solution on google. Hadn’t thought that the error might have been due to the hardcoded perl path. Thanks for the fix!

Leave a Reply

Your email address will not be published. Required fields are marked *