How to Install


Please install with root authority.

 

1) Copy the compressed file and extract it.

 

# cd

# tar xvfz daq-libmb-lnxXXX.tgz

................

 

2) Install the packages (autoconf, autogen, libtool) required for compilation.

* If there are other required packages for each development environment, please obtain and install them separately.

 

- For RedHat

# yum install autoconf autogen libtool

 

- For Ubuntu

# apt install autoconf autogen libtool

 

3) Execute make, prepare to install the library.

 

# cd libmodbus/

 

Run autogen.sh as needed to generate a configure script.

# ./autogen.sh

................

# ./configure

................

#  make

................

#  make install

 

4) To make it easier to compile and link programs, 'libmodbus.pc' used by 'pkg-config' is provided.