Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:comet:building-from-source [2017/11/03 07:16] levhav |
en:comet:building-from-source [2019/12/18 02:05] (current) |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| cmake . | cmake . | ||
| make | make | ||
| + | make install | ||
| </code> | </code> | ||
| Line 43: | Line 44: | ||
| systemctl enable comet.service</code> | systemctl enable comet.service</code> | ||
| - | After successes run server we can begin create chat. If you get error create issue in [[https://github.com/Levhav/comet-server/issues|github repository]]. | + | After successes run server we can begin create chat. If you get error, you should create issue in [[https://github.com/Levhav/comet-server/issues|github repository]]. |
| ====== Launch ====== | ====== Launch ====== | ||
| Run in console mode | Run in console mode | ||
| <code sh> | <code sh> | ||
| - | ./cpp_comet | + | ./cppcomet |
| </code> | </code> | ||
| Running in daemon mode | Running in daemon mode | ||
| Line 153: | Line 154: | ||
| Pay attention to what values of the port parameter are specified in the sections [ws] and [cometql] on these ports the comet server will wait for incoming connections. | Pay attention to what values of the port parameter are specified in the sections [ws] and [cometql] on these ports the comet server will wait for incoming connections. | ||
| - | In the comet.ini example in the repository, the port parameter for connections from JavaScrip api is set to 8087 | + | In the comet.ini example in the repository, the port parameter for connections from JavaScrip api is set to 8087. |
| This means that you need to connect like this: | This means that you need to connect like this: | ||
| <code JavaScript>cometApi.start({user_id:1, user_key:"userHash", node:"example.ru:8087"})</code> | <code JavaScript>cometApi.start({user_id:1, user_key:"userHash", node:"example.ru:8087"})</code> | ||
| Line 184: | Line 185: | ||
| /etc/comet-server/comet-server/src/mystring.cpp:15:51: fatal error: uuid / uuid.h: No such file or directory exists | /etc/comet-server/comet-server/src/mystring.cpp:15:51: fatal error: uuid / uuid.h: No such file or directory exists | ||
| #include <uuid/uuid.h> | #include <uuid/uuid.h> | ||
| - | </ code> | + | </code> |
| Can not find the file uuid.h. You can try installing the libuuid libuuid-devel package | Can not find the file uuid.h. You can try installing the libuuid libuuid-devel package | ||