what I'm trying todo is build from source for prep of docker environment based on centos:8
but I got stuck on the point where the build requires the static lib of ssl / crypto with info missing (and yes it's not available, but I also can't find it in the repo...) how can I solve this problem ?!
my steps to this point. (following the guidelines from wiki for 20.04 )
base build server: (only used for getting the build binaries / and the war file: this two outputs will be taken in the docker image)
all done as ROOT user
1) setup centos 8 with minimum installation / incl. headless management
2) base prep:
Code: Select all
dnf -y install epel-release
dnf -y update -y
dnf -y install gcc make
dnf -y install git
Code: Select all
dnf -y install gcc-c++
dnf -y install gdbm-devel
dnf -y install libgcrypt-devel
dnf -y install ncurses-devel
dnf -y install libxml2-devel
dnf -y install readline-devel
dnf -y install sqlite-devel
dnf -y install openssl-devel bzip2-devel libffi-devel
dnf -y install zlib-devel
Code: Select all
curl -o Python-3.8.3.tar.xz https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz
tar -xaf Python-3.8.3.tar.xz
cd Python-3.8.3
./configure --enable-optimizations
sudo make altinstall
ln -s /usr/local/bin/python3.8 /usr/bin/python3
which python3
Code: Select all
python3 -m pip install --upgrade pip
python3 -m pip install py3dns
python3 -m pip install xlrd xlwt xlutils
python3 -m pip install paramiko pyspf dnspython dkimpy
python3 -m pip install pycrypto
python3 -m pip install requests
python3 -m pip install httpie
python3 -m pip install setproctitle
python3 -m pip install inotify
python3 -m pip install aiodns aiohttp aiohttp-xmlrpc aiosmtpd
6) checkout source as user
Code: Select all
git clone https://github.com/agnitas-org/openemm.git openemm
cd openemm
su -
Code: Select all
dnf -y install m4

Code: Select all
cd openemm/backend
./build-backend.py
Code: Select all
make: Leaving directory '/home/horst/openemm/backend/src/c/lib'
make: Entering directory '/home/horst/openemm/backend/src/c/xmlback'
cc -L. -L../lib -o xmlback entity.o xmlback.o parse.o create.o replace.o modify.o protect.o convert.o append.o blockmail.o block.o tagpos.o tracker.o mailtypedefinition.o links.o blockspec.o fix.o postfix.o dcache.o receiver.o tag.o dyn.o media.o columns.o url.o link_resolve.o field.o dataset.o encrypt.o mailtrack.o codec.o eval.o counter.o rblock.o misc.o sqllike.o data.o none.o generate.o count.o preview.o head.o strmap.o uid.o alua.o tfunc.o tflua.o xbp.o grammar/parse.o grammar/transform.o -lagn -lslang -lsqlite3 -llua -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic -lxml2 -lz -ldl -lm
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
make: *** [Makefile:29: xmlback] Error 1
make: Leaving directory '/home/horst/openemm/backend/src/c/xmlback'
failure: call to make -C src/c/xmlback all results in 2
Code: Select all
ls -la /lib64/libssl
libssl.so libssl.so.1.1 libssl.so.1.1.1c
br for your help
horst