Автор Тема: Компиляция jabberd2  (Прочитано 2787 раз)

Оффлайн keremet

  • Global Moderator
  • ROOT
  • *****
  • Сообщений: 462
  • Репутация: +237/-0
    • Просмотр профиля
    • OpenSolaris
Компиляция jabberd2
« : Июнь 22, 2014, 04:32:42 pm »
pkg install pkg:/developer/gcc/gcc-43
pkg install pkg:/library/libidn
export PATH=/usr/gcc/4.3/bin:$PATH

wget http://www.corpit.ru/mjt/udns/udns-0.4.tar.gz
tar xf udns-0.4.tar.gz
cd udns-0.4
./configure --disable-ipv6
make

wget ftp://ftp.gnu.org/gnu/gsasl/libgsasl-1.8.0.tar.gz
tar xf libgsasl-1.8.0.tar.gz
cd libgsasl-1.8.0
CFLAGS="-O2 -I/usr/include/idn" ./configure --prefix=/home/keremet/compilation/libgsasl-1.8.0_bin  --enable-static --disable-shared
make
make install

Нужна openssl версии не ниже 1.0.1
pkg install pkg:/system/library/math/header-math
wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
tar xf openssl-1.0.1h.tar.gz
cd openssl-1.0.1h
./config --prefix=/home/keremet/compilation/openssl-1.0.1h_bin
make
make test
make install

OPENSSLDIR: "/home/keremet/compilation/openssl-1.0.1h_bin/ssl"


wget https://github.com/jabberd2/jabberd2/releases/download/jabberd-2.3.2/jabberd-2.3.2.tar.gz
tar xf jabberd-2.3.2.tar.gz
cd jabberd-2.3.2
#maximum allowed optimization level is -O2
LDFLAGS="-L/home/keremet/compilation/udns-0.4 -L/home/keremet/compilation/openssl-1.0.1h_bin/lib -L/home/keremet/compilation/libgsasl-1.8.0_bin/lib" CFLAGS="-O2 -I/usr/include/idn -I/home/keremet/compilation/udns-0.4 -I/home/keremet/compilation/libgsasl-1.8.0_bin/include -I/home/keremet/compilation/openssl-1.0.1h_bin/include" ./configure --enable-static --disable-shared --disable-experimental --prefix=/home/keremet/compilation/jabberd-2.3.2_bin
make