processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/ejabberd/
Other
6.12k stars 1.51k forks source link

Error in "sudo make install" in Linux Mint while installing ejabberd from source code #2139

Closed shubham1164 closed 7 years ago

shubham1164 commented 7 years ago

What version of ejabberd are you using? Ejabberd 17.11.13 from https://github.com/ejabberd

What operating system (version) are you using? Linux Mint 18.2 64 bit version

How did you install ejabberd (source, package, distribution)? From Source code (https://github.com/processone/ejabberd/) $sudo ./configure --enable-user=ejabberd --enable-mysql $sudo make all $sudo make install

What did not work as expected? Are there error messages in the log? What I am getting error "invalid user 'ejabberd'" Following are the logs

ricky@ricky-laptop ~/Desktop/ejabberd $ sudo make install /usr/lib/erlang/bin/escript rebar skip_deps=true compile WARN: Missing plugins: [rebar3_hex] WARN: Missing plugins: [pc,rebar3_hex] ==> rel (compile) ==> ejabberd (compile) make copy-files-sub make[1]: Entering directory '/home/ricky/Desktop/ejabberd' /usr/bin/install -c -m 644 deps/base64url/ebin/base64url.beam /usr/local/lib/base64url-0.0.1/ebin/base64url.beam /usr/bin/install -c -m 644 deps/base64url/ebin/base64url.app /usr/local/lib/base64url-0.0.1/ebin/base64url.app /usr/bin/install -c -m 644 deps/base64url/LICENSE.txt /usr/local/lib/base64url-0.0.1/LICENSE.txt /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab_app.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab_app.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/ets_cache.beam /usr/local/lib/cache_tab-1.0.12/ebin/ets_cache.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/ets_cache_options.beam /usr/local/lib/cache_tab-1.0.12/ebin/ets_cache_options.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab_sup.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab_sup.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab.app /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab.app /usr/bin/install -c -m 644 deps/cache_tab/priv/lib/ets_cache.so /usr/local/lib/cache_tab-1.0.12/priv/lib/ets_cache.so /usr/bin/install -c -m 644 deps/cache_tab/include/ets_cache.hrl /usr/local/lib/cache_tab-1.0.12/include/ets_cache.hrl /usr/bin/install -c -m 644 deps/cache_tab/LICENSE.txt /usr/local/lib/cache_tab-1.0.12/LICENSE.txt /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_sup.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_sup.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_worker.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_worker.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_app.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_app.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp.beam /usr/local/lib/eimp-1.0.2/ebin/eimp.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp.app /usr/local/lib/eimp-1.0.2/ebin/eimp.app /usr/bin/install -c -m 755 -o ejabberd deps/eimp/priv/bin/eimp /usr/local/lib/eimp-1.0.2/priv/bin/eimp /usr/bin/install: invalid user ‘ejabberd’ Makefile:165: recipe for target '/usr/local/lib/eimp-1.0.2/priv/bin/eimp' failed make[1]: [/usr/local/lib/eimp-1.0.2/priv/bin/eimp] Error 1 make[1]: Leaving directory '/home/ricky/Desktop/ejabberd' Makefile:178: recipe for target 'copy-files' failed make: [copy-files] Error 2

=====================================

was the unexpected behavior? What was the expected result? "sudo make install" should not give any error. There is no error/warnings in configure "command"and "make all" command

shubham1164 commented 7 years ago

After using "make clean" and "make distclean". I have tried to configure with different user=ejabberd1 but same error with ejabberd1 $sudo ./configure --enable-user=ejabberd1 --enable-mysql $sudo make all $sudo make install

Following are complete logs of 'sudo make install'

ricky@ricky-laptop ~/Desktop/ejabberd $ sudo make install [sudo] password for ricky: /usr/lib/erlang/bin/escript rebar skip_deps=true compile WARN: Missing plugins: [rebar3_hex] WARN: Missing plugins: [pc,rebar3_hex] ==> rel (compile) ==> ejabberd (compile) make copy-files-sub make[1]: Entering directory '/home/ricky/Desktop/ejabberd' /usr/bin/install -c -m 644 deps/base64url/ebin/base64url.beam /usr/local/lib/base64url-0.0.1/ebin/base64url.beam /usr/bin/install -c -m 644 deps/base64url/ebin/base64url.app /usr/local/lib/base64url-0.0.1/ebin/base64url.app /usr/bin/install -c -m 644 deps/base64url/LICENSE.txt /usr/local/lib/base64url-0.0.1/LICENSE.txt /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab_app.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab_app.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/ets_cache.beam /usr/local/lib/cache_tab-1.0.12/ebin/ets_cache.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/ets_cache_options.beam /usr/local/lib/cache_tab-1.0.12/ebin/ets_cache_options.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab_sup.beam /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab_sup.beam /usr/bin/install -c -m 644 deps/cache_tab/ebin/cache_tab.app /usr/local/lib/cache_tab-1.0.12/ebin/cache_tab.app /usr/bin/install -c -m 644 deps/cache_tab/priv/lib/ets_cache.so /usr/local/lib/cache_tab-1.0.12/priv/lib/ets_cache.so /usr/bin/install -c -m 644 deps/cache_tab/include/ets_cache.hrl /usr/local/lib/cache_tab-1.0.12/include/ets_cache.hrl /usr/bin/install -c -m 644 deps/cache_tab/LICENSE.txt /usr/local/lib/cache_tab-1.0.12/LICENSE.txt /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_sup.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_sup.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_worker.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_worker.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp_app.beam /usr/local/lib/eimp-1.0.2/ebin/eimp_app.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp.beam /usr/local/lib/eimp-1.0.2/ebin/eimp.beam /usr/bin/install -c -m 644 deps/eimp/ebin/eimp.app /usr/local/lib/eimp-1.0.2/ebin/eimp.app /usr/bin/install -c -m 755 -o ejabberd1 deps/eimp/priv/bin/eimp /usr/local/lib/eimp-1.0.2/priv/bin/eimp /usr/bin/install: invalid user ‘ejabberd1’ Makefile:165: recipe for target '/usr/local/lib/eimp-1.0.2/priv/bin/eimp' failed make[1]: [/usr/local/lib/eimp-1.0.2/priv/bin/eimp] Error 1 make[1]: Leaving directory '/home/ricky/Desktop/ejabberd' Makefile:178: recipe for target 'copy-files' failed make: [copy-files] Error 2

=======================================

shubham1164 commented 7 years ago

I have tried to configure it without any user and it works. Ex- $./configure $make all $make install Now, my only concern is

  1. Will it create a problem that I have used './configure' without '--enable-user=ejabberd'?
  2. What is the purpose of --enable-user=ejabbed?
  3. If it is neccessar, then how can I add it later on?
lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.