我试图在erlang.mk上使用命令'make‘编译erlang代码,并得到以下错误。我不知道从这里到哪里去。我是erlang.mk和erlang的新手。我在ubuntu上
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发布于 2021-10-29 08:37:07
此错误意味着它无法找到Expat库( XML解析器)的开发文件:
/usr/bin/ld: cannot find -lexpat在Ubuntu上,您可以尝试使用以下命令进行安装:
sudo apt install libexpat1-devhttps://stackoverflow.com/questions/69764585
复制相似问题