<modbus.h> not found

515 views
Skip to first unread message

Manuel

unread,
May 3, 2021, 5:06:27 PM5/3/21
to libmodbus
Hello, 

I tried doing:
cd ~ 
cd libmodbus 
./autogen.sh 
./configure --enable-static 
make 
sudo make install 
sudo cp ./src/.libs/libmodbus.a /usr/local/lib/

Now I have a libmodbus.a file in /usr/local/lib/.

Now I want to install mbrtu:


cd ~
git clone https://github.com/gitaeuber/mbrtu
cd mbrtu
make
sudo make install


But after make I get the error: 


In file included from mbrtu.c:22: mbrtu.h:25:12: fatal error: 

modbus.h: No such file or directory 25 | #include <modbus.h>

 compilation terminated. make: *** [Makefile:9: mbrtu] Error 1


I tried to add a modbus.conf to /usr/local/lib/ at /etc/ld.so.conf.d and reload it with 

sudo ldconfig


Sadly, my system still does not know about a libmodbus library.


Can someone help me? Debian linux 

Reply all
Reply to author
Forward
0 new messages