In reading unpv1 run the source code environment configuration, simply record it here
The source code of the README that quite detailed, but in Linux system still can not directly compile, and
I'm using here is ubuntu 19.10 (Tencent cloud ubuntu server 18.04.1 also tested by)
The following are simple steps:
1. Download and extract the source code
2. After extracting the source code is obtained unpv13e,
3. Start compilation
cd unpv13e ./configure cd lib make cd ../libfree make
Given time:
inet_ntop.c: the In function 'inet_ntop':
inet_ntop.c: 60:. 9: error: argument 'size' does match the prototype Not
The size_t size inet_ntop.c 60 rows into socklen_t size, quit again make an error
inet_ntop.c
Then a final step
cd ../intro make daytimetcpcli
At this point can not be run successfully, you need to modify the system configuration daytime
viewing port
cat /etc/services | grep "daytime"
Modify the configuration item, the configuration item is modified by two disable yes to no
sudo vim /etc/xinetd.d/daytime
Restart Service
sudo /etc/init.d/xinetd restart
./daytimetcpcli 127.0.0.1
In this case the source code has been run successfully