我的config.mk
文件有以下设置:
# Select your backends from this list
BACKEND_CDB ?= no
BACKEND_MYSQL ?= no
BACKEND_SQLITE ?= no
BACKEND_REDIS ?= no
BACKEND_POSTGRES ?= yes
BACKEND_LDAP ?= no
BACKEND_HTTP ?= no
BACKEND_JWT ?= no
BACKEND_MONGO ?= no
BACKEND_FILES ?= yes
BACKEND_MEMCACHED ?= no
# Specify the path to the Mosquitto sources here
MOSQUITTO_SRC = /usr/include
# Specify the path the OpenSSL here
OPENSSLDIR = /usr/bin/openssl
# Specify optional/additional linker/compiler flags here
# On macOS, add
# CFG_LDFLAGS = -undefined dynamic_lookup
# as described in https://github.com/eclipse/mosquitto/issues/244
CFG_LDFLAGS =
CFG_CFLAGS = -DRAW_SALT
当我尝试编译它时,sudo make
它会抛出以下错误:
Selected backends: PostgreSQL Files
Using mosquitto source dir: /usr/include
OpenSSL install dir: /usr/bin/openssl
If you changed the backend selection, you might need to 'make clean' first
CFLAGS: -DRAW_SALT -I/usr/include/src/ -I/usr/include/lib/ -fPIC -Wall -Werror -DBE_POSTGRES -DBE_FILES -I/usr/include/postgresql -I/src -DDEBUG=1 -I/usr/bin/openssl /include
LDFLAGS: -L/usr/include/lib/
LDADD: -L/usr/lib/x86_64-linux-gnu -lpq -L/usr/bin/openssl /lib -lcrypto -lmosquitto
cc -DRAW_SALT -I/usr/include/src/ -I/usr/include/lib/ -fPIC -Wall -Werror -DBE_POSTGRES -DBE_FILES -I`pg_config --includedir` -I/src -DDEBUG=1 -I/usr/bin/openssl /include -c -o auth-plug.o auth-plug.c
cc: error: /include: No such file or directory
<builtin>: recipe for target 'auth-plug.o' failed
make: *** [auth-plug.o] Error 1
您能告诉我出了什么问题吗?我该如何解决这个问题?