Pages

Thursday, January 16, 2014

Install Prosody from source on Centos 6.

https://prosody.im/downloads/source/
https://prosody.im/doc/installing_from_source
https://prosody.im/doc/configure

1. download & extract
wget --no-check-certificate  https://prosody.im/downloads/source/prosody-0.9.2.tar.gz
tar xvf prosody-0.9.2.tar.gz
cd prosody-0.9.2

2. install dependencies
yum install openssl openssl-* lua5.1 liblua5.1-dev libidn11-dev libssl-dev

3. configure & make install
./configure --ostype=PRESET
make install


note : Prosody's configuration is held in a single file, prosody.cfg.lua. on centos 6 you should find it in /usr/local/etc/prosody/prosody.cfg.lua

5 comments:

  1. Errors at step 2:
    No package lua5.1 available.
    No package liblua5.1-dev available.
    No package libidn11-dev available.
    No package libssl-dev available.

    ReplyDelete
    Replies
    1. Packages to install:
      libidn-devel
      lua
      lua-devel

      Delete
  2. cannot install on CentOS 6.7, error message:
    -------
    [root@Atom230 prosody-0.9.2]# make install
    Makefile:2: config.unix: No such file or directory
    make: *** No rule to make target `config.unix'. Stop.
    --------

    Please help

    ReplyDelete
  3. 1. yum install epel-release -y
    2. yum install prosody -y

    ReplyDelete
  4. Building Prosody from sources is not a good idea if there is an RPM package - like in this case. Use the Prosody RPM from Fedora EPEL for CentOS 6 or 7, please. This short tutorial also does not cover proper CA verification for SSL/TLS based connections etc.

    ReplyDelete