Install

To install the current release package on Debian and Ubuntu, use the package manager:

sudo apt install libserial-dev

To install LibSerial from source, first clone the repository at https://github.com/crayzeewulf/libserial

Using https:

git clone https://github.com/crayzeewulf/libserial.git

Using ssh:

git clone git@github.com:crayzeewulf/libserial.git

Next, using make, execute the following commands from your libserial directory:

make -f Makefile.dist
./configure
make

To install the build to your /usr/local/ directory you may simply:

sudo make install

To install to another directory, simply use the prefix argument in the configure step above:

./configure --prefix=<DIRECTORY_NAME>

The code is also easily built using CMake via a bash script:

./compile.sh

To install, change directories to the build directory and proceed as with make:

cd build/
sudo make install