QMESAR
Posts: 55
Joined: Wed Sep 06, 2017 10:41 am

Error installing wiringPi library

Tue Nov 21, 2017 9:59 am

Hi All,

I am trying to install the wiringPi Library from the instruction in the book from Prof Ibrahim below is the code

Code: Select all

pi@raspberrypi ~ $sudo apt-get install git-core
pi@raspberrypi ~ $git clone git://git.drogon.net/wiringPi
pi@raspberrypi ~ $cd wiringPi
pi@raspberrypi ~/wiringPi./build
I get as far as the very last command (/wiringPi./build ) then I get the error or message in the terminal
No such file or directory found

Please help what am I doing wrong?
Any help is highly appreciated
Regards
QMESAR

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Error installing wiringPi library

Tue Nov 21, 2017 10:10 am

If you have exactly copied what it says in the anonymous book by "Prof Ibrahim" then I think that the author has got the installation instructions wrong.

I would prefer to trust the documentation provided by the developer/maintainer of the WiringPi package: https://projects.drogon.net/raspberry-p ... d-install/

QMESAR
Posts: 55
Joined: Wed Sep 06, 2017 10:41 am

Re: Error installing wiringPi library

Tue Nov 21, 2017 10:23 am

B.Goode wrote:
Tue Nov 21, 2017 10:10 am
If you have exactly copied what it says in the anonymous book by "Prof Ibrahim" then I think that the author has got the installation instructions wrong.
Thank you very much for the reply I appreciate it :D The book is however not anonymous the book is called Raspberry PI Advanced Programming (ISBN 978-1-907920-33-2) and distributed by Elektor UK
Attachments
1.jpg
1.jpg (193.68 KiB) Viewed 1408 times

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Error installing wiringPi library

Tue Nov 21, 2017 10:29 am

It was 'anonymous' until you mentioned the title, which you failed to do in your initial post. Everyone now knows which book you are referring to.

As a follow-up: do you need to install WiringPi yourself?

The release notes for Raspbian in February 2016 mention a new version of WiringPi: I haven't checked on a live system but I would expect the package to be installed by default with all versions of Raspbian after that date.

QMESAR
Posts: 55
Joined: Wed Sep 06, 2017 10:41 am

Re: Error installing wiringPi library

Tue Nov 21, 2017 10:38 am

Thank you for the information I am unaware of this and try to follow the book it can be that the book is a bit older not sure however
the book is correct it is me that did not realize that I am already in the wiringPi and only should enter the .build command which worked now .

I will see how it goes by running the first example script

Than you again :D

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Error installing wiringPi library

Tue Nov 21, 2017 10:53 am

The book was published in 2014.

That is a long time ago in terms of the development of the Raspberry Pi boards and the Raspbian Operating System.

It predates the release of the RPi2, RPi3 and PiZero hardware, and will have been based on the use of the Raspbian Wheezy Operating System which has been superceded by the Jessie and Stretch versions respectively.

QMESAR
Posts: 55
Joined: Wed Sep 06, 2017 10:41 am

Re: Error installing wiringPi library

Tue Nov 21, 2017 5:14 pm

Thank you very much for all the information,
I appreciate it ,I am in the position that I don't understand all the difference etc ,The book helps me a great deal to learn the basic Linux commands and Python programming ,once I am more experienced I will try to understand all the new release information but at the moment the book example scripts a running my led(s) are blinking and a 3 task script is running which switch 3 leds on and off at different time intervals
The book has helped me a great deal although it not based on the latest HW and SW but as said my RP3 is doing what the examples is set to do
I realize that there is a long uphill in front of me :D

Regards
QMESAR

Return to “Beginners”