This repository contains the examples presented during the meetup on June 29th 2002 on how to use lib-common.
First, you need to install all the lib-common prerequisites and dependencies.
First of all, you have to configure your project, by running in the top-level directory:
meetup-june-2022$ waf configure
By default, it will use gcc. You can also use clang by defining the two
environment variables CC and CXX:
meetup-june-2022$ CC=clang CXX=clang++ waf configure
If the configuration step triggers no error, then you are ready to build.
Go into the src directory and run the following command:
meetup-june-2022$ cd src meetup-june-2022/src$ waf
You can now run the wordcount server program:
meetup-june-2022/src$ ./wordcount-server -c ../etc/wordcount.yml
And run the wordcount client program:
meetup-june-2022/src$ ./wordcount-client -c ../etc/wordcount.yml <file_path>
Or run the Python wordcount client program:
meetup-june-2022/src$ ./wordcount-client.py -c ../etc/wordcount.yml <file_path>