我正在www.example.com上使用命令“make”编译erlang代码erlang.mk但出现以下错误。我不知道该从哪里开始。我是ubuntu上的erlang.mk和erlang.am新手
Getting Xabber Web client .... done.
Copying Xabber Web files to 'priv' directory ........ done.
make[1]: Entering directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
cc -o priv/lib/fxml.so c_src/fxml.o -lexpat -L -lei -shared
/usr/bin/ld: cannot find -lexpat
collect2: error: ld returned 1 exit status
c_src/Makefile.erlang.mk:24: recipe for target 'priv/lib/fxml.so'
failed
make[2]: *** [priv/lib/fxml.so] Error 1
Makefile:25: recipe for target 'pre-app' failed
make[1]: *** [pre-app] Error 2
make[1]: Leaving directory '/home/isachi2004/xabber-websocket
/deps/fast_xml'
erlang.mk:4512: recipe for target 'deps' failed
make: *** [deps] Error 2
1条答案
按热度按时间vi4fp9gy1#
此错误意味着它找不到Expat库(XML解析器)的开发文件:
在Ubuntu上,您可以尝试使用以下命令安装它: