尝试使用 erlang.mk 编译 erlang 程序
Trying to compile erlang program using erlang.mk
我正在尝试在 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
此错误意味着它无法找到 Expat 库(XML 解析器)的开发文件:
/usr/bin/ld: cannot find -lexpat
在 Ubuntu 上,您可以尝试安装它:
sudo apt install libexpat1-dev
我正在尝试在 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
此错误意味着它无法找到 Expat 库(XML 解析器)的开发文件:
/usr/bin/ld: cannot find -lexpat
在 Ubuntu 上,您可以尝试安装它:
sudo apt install libexpat1-dev