error when compiling mosquitto source

Asked by Michael

The following error keeps popping up when I run make in the "mosquitto-1.4.13" directory:

make[1]: Leaving directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/src'
set -e; for d in man; do make -C ${d}; done
make[1]: Entering directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/man'
xsltproc mosquitto.8.xml
make[1]: xsltproc: Command not found
Makefile:48: recipe for target 'mosquitto.8' failed
make[1]: *** [mosquitto.8] Error 127
make[1]: Leaving directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/man'
Makefile:12: recipe for target 'docs' failed
make: *** [docs] Error 2

I'm new to this, so any pointers would be much appreciated! :)

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Try installing the xsltproc package

Revision history for this message
Michael (mms955) said :
#2

Ah didn't see that line, good call. But now this error came up:

make[1]: Leaving directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/src'
set -e; for d in man; do make -C ${d}; done
make[1]: Entering directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/man'
xsltproc mosquitto.8.xml
warning: failed to load external entity "/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
compilation error: file manpage.xsl line 3 element import
xsl:import : unable to load /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl
compilation error: file mosquitto.8.xml line 4 element refentry
xsltParseStylesheetProcess : document is not a stylesheet
Makefile:48: recipe for target 'mosquitto.8' failed
make[1]: *** [mosquitto.8] Error 5
make[1]: Leaving directory '/home/ubuntu/mosquitto_driver/mosquitto-1.4.13/man'
Makefile:12: recipe for target 'docs' failed
make: *** [docs] Error 2

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

Do you have the package docbook-xsl installed? If not, try installing it.

Revision history for this message
Michael (mms955) said :
#4

That fixed it, thanks!

Revision history for this message
Michael (mms955) said :
#5

Thanks Manfred Hampl, that solved my question.