forked from adikabintang/skripsi
-
Notifications
You must be signed in to change notification settings - Fork 0
Cara install library CoAP protocol (dalam C) di Raspberry Pi
Aldwin Hermanudin edited this page May 7, 2017
·
3 revisions
- Download libcoap dari https://github.com/obgm/libcoap/archive/develop.zip
2. Unzip, taro folder libcoap di home aja.
3. Masuk folder itu, trus jalanin ini berurutan:
./autogen.sh
./configure --disable-documentation
make
sudo make install
after installing libcoap. When trying to execute example binary, there is a possibility you will occur error at loading shared libraries,
coap-client: error while loading shared libraries: libcoap-1.so.0: cannot open shared object file: No such file or directory
fix this by adding library path to the linux environment by executing
export LD_LIBRARY_PATH=/usr/local/lib
To make it permanent, you can edit the ldconfig files. First, create a new file such as:
sudo vi /etc/ld.so.conf.d/libcoap.conf
Second, add the path in the created file
/usr/local/lib
Finally, run ldconfig to update the cache.
sudo ldconfig