blob: 8a6d38e4e1cc7ad3717db37feb3151d4c5369abe [file] [log] [blame]
Gordon Henderson3fbc5642013-03-24 20:04:07 +00001
2How to install wiringPi
3=======================
4
5The easiest way is to use the supplied 'build' script:
6
7 ./build
8
9that should do a complete install or upgrade of wiringPi for you.
10
11That will install a dynamic library.
12
13Some distributions do not have /usr/local/lib in the default LD_LIBRARY_PATH. To
14fix this, you need to edit /etc/ld.so.conf and add in a single line:
15
16 /usr/local/lib
17
18then run the ldconfig command.
19
20 sudo ldconfig
21
22If you want to install a static library, you may need to do this manually:
23
24 cd wiringPi
25 make static
26 sudo make install-static
27
28
29To un-install wiringPi:
30
31 ./build uninstall
32
33
34I2C:
35
36If your system has the correct i2c-dev libraries and headers installed,
37then the I2C helpers will be compiled into wiringPi. If you want to
38use the I2C helpers and don't have them installed, then under Raspbian,
39issue the command:
40
41 sudo apt-get install libi2c-dev
42
43Consult the documentation for your system if you are not running Raspbian.
44
45Gordon Henderson
46
47projects@drogon.net
48https://projects.drogon.net/