redsolution / xabber-websocket

Standalone WebSocket connection manager needed to connect Xabber for Web to multiple different XMPP servers
https://www.xabber.com
GNU Affero General Public License v3.0
11 stars 7 forks source link

failing running `make run` #7

Closed oogxdd closed 2 years ago

oogxdd commented 4 years ago
make[2]: Entering directory '/home/ubuntu/xabber-websocket/deps/fast_xml'
cc -c -o c_src/fxml.o c_src/fxml.c -g -O2 -Wall -finline-functions -Wall -fPIC -I "/usr/lib/erlang/erts-11.0.3/include" -I "/usr/lib/erlang/lib/erl_interface-4.0/include" -fPIC
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:23: recipe for target 'priv/lib/fxml.so' failed
make[2]: *** [priv/lib/fxml.so] Error 1
make[2]: Leaving directory '/home/ubuntu/xabber-websocket/deps/fast_xml'
Makefile:24: recipe for target 'pre-app' failed
make[1]: *** [pre-app] Error 2
make[1]: Leaving directory '/home/ubuntu/xabber-websocket/deps/fast_xml'
erlang.mk:4180: recipe for target 'deps' failed
make: *** [deps] Error 2

when trying to run make run i get this ^

installing in on Ubuntu 18 and Erlang/OTP 23 [erts-11.0.3] last thing stopping me from running xabber instance, please help

Sternstein commented 4 years ago

You need to install additional packets into your system. Check if you have following packets:

expat
libexpat1
libexpat1-dev
oogxdd commented 4 years ago

thanks @Sternstein that helped!