Closed krvarma closed 8 years ago
Hi @krvarma thanks for letting us know about this!
I just correctly compiled a fresh clone on Erlang OTP 18.3. In general we're not yet ready for OTP 19 (compiling will fail with another error there though).
What Erlang version are you using?
@ioolkos thanks for quick reply, it was OTP 19, let me install 18.3 and compile.
I will update my progress here.
Thanks!
Thanks @ioolkos, I successfully compiled the code but I am having another issue (I know it is a stupid issue, sorry)
How do I enable it using vmq-admin, it is showing error, my command is
vmq-admin plugin enable --name vmq_diversity --path root/vmq_diversity/_build/default/
Then I tried this also
vmq-admin plugin enable --name vmq_diversity --path root/vmq_diversity/_build/default/lib/vmq_diversity/
Hm, the first command looks totally OK.
What is the actual error?
What could be the problem is that realeases up to 0.12.5 used Erlang 17.5. Release 0.13.1 uses OTP 18, so should be compatible with a OTP 18 compiled version of vmq_diversity.
The error is
root@dvice:~# vmq-admin plugin enable --name vmq_diversity --path /root/vmq_diversity/_build/default/
Invalid value: "/root/vmq_diversity/_build/default/" for flag: path
root@dvice:~#
I am on Ubuntu 14.04 and using VerneMQ 0.13.1 and OTP 18 to compile vmq_diversity
Huh, strange. In the vmq_diversity folder what is your 'pwd'?
I didn't understand that, I haven't set set any password, is that what you are asking?
I apologise for being unclear. I meant to ask what your actual path to the directory is? is it 100% correct as given in --path?
Yes, I am sure it is the folder, following is the ls output of that folder, may be it will be you better understand it
root@dvice:~/vmq_diversity/_build/default# ls
bin lib
root@dvice:~/vmq_diversity/_build/default#
OK. I currently have no explanation why this doesn't work.
Shall we copy he bin files to some other folder and ty, if yes, could you please tell me what all files I wanted to copy?
It is not necessary to copy the files anywhere.
It's a strange issue you have. My current setup is a vernemq compiled with erlang 18.3 and vmq_diversity is also compiled with that erlang version and I can enable the plugin without any issues:
$ _build/default/rel/vernemq/bin/vmq-admin plugin enable --name=vmq_diversity --path /home/lhc/dev/erl.io/vmq_diversity/_build/default/
Done
The issues for the error you see (invalid value ... for flag path) can be either that the absolute path to the plugin is incorrect or because the user VerneMQ is running as doesn't have permissions to read the folder.
Can you please double-check everything once more? Can the user running the vernemq access the plugin directory and all permissions are OK?
Thanks, Lars
Thank you @ioolkos and @larshesel!, I just download remvoed the old vernemq vmq_diversity and compiled both afresh. Its working now. Don't know what happened to the old one.
Anyway it's happy ending :)
Thanks you all agian!
I am having some issues compiling on Ubuntu 14.04, Following error is showing on the console, could someone help me to get it compiled?
Complete console output