yum install -y gcc
yum install -y bison
yum install -y flex
yum install -y libnftnl-devel
yum install -y ncurses-devel
yum install -y iptables-devel
yum install -y openssl-devel
Download Code
Download miniupnpd-1.9.20160222.tar.gz from internet
cd miniupnpd-1.9.20160222
Compile the code
make -f Makefile.linux
Start miniupnpd
miniupnpd -f miniupnpd.conf
Debug mode
miniupnpd -f miniupnpd.conf -d
If still can't compile, please add PKG_CONFIG_PATH as below.
export PKG_CONFIG_PATH=/path/xx.pc
Reference:
makefile debug
make -nd
-n, --just-print, --dry-run, --recon
Print the commands that would be executed, but do not execute them.
-d Print debugging information in addition to normal processing.
The debugging information says
which files are being considered for remaking,
which file-times are being compared and with what results,
which files actually need to be remade,
which implicit rules are considered and which are applied---
everything interesting about how make decides what to do.
--debug[=FLAGS] Print debugging information in addition to normal processing.
If the FLAGS are omitted, then the behaviour is the same as if -d was specified.
FLAGS may be:
'a' for all debugging output same as using -d,
'b' for basic debugging,
'v' for more verbose basic debugging,
'i' for showing implicit rules,
'j' for details on invocation of commands, and
'm' for debugging while remaking makefiles.
0 意見:
張貼留言