Building on OpenSUSE/SLES

136 views
Skip to first unread message

Vasil Rangelov

unread,
Apr 22, 2017, 2:05:52 PM4/22/17
to openresty-en
Hello everyone!

I'm trying to install OpenResty on a fresh OpenSUSE VM, hopefully in a fashion that would eventually be compatible with SLES too (as that's what at the real, production server...).

Since there are no pre-compiled binaries for it (or at least I can't find any; I'd prefer using some if I can), I tried to build it from source, but I keep failing... That is, make ends with "recipe for target 'all' failed" and error 2.

What am I missing? Is there an easier way overall?

Here's what I've done so far (from a root shell)

zypper -n install wget tar make gcc-c++
zipper -n source-install pcre openssl
wget https://openresty.org/download/openresty-1.11.2.3.tar.gz
tar -xvf openresty-1.11.2.3.tar.gz
cd openresty-1.11.2.3
tar -xvf /usr/src/packages/SOURCES/openssl-1.0.1i.tar.gz
tar -xvf /usr/src/packages/SOURCES/pcre-8.39.tar.bz2
./configure -j2 --with-pcre=./pcre-8.39 --with-openssl=./openssl-1.0.1i
make -j2

Robert Paprocki

unread,
Apr 22, 2017, 6:52:36 PM4/22/17
to openre...@googlegroups.com
What's the full output of make?

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vasil Rangelov

unread,
Apr 22, 2017, 7:32:39 PM4/22/17
to openresty-en
I've attached the entire PuTTy log (so, full output of make, as well as full output of ./configure and all). 

Key part at the end:
/usr/bin/ranlib ../../libcrypto.a || echo Never mind.
make
[5]: Leaving directory '/root/openresty-1.11.2.3/openssl-1.0.1i/crypto/cmac'
if [ -n "" ]; then \
(cd ..; make libcrypto.so.1.0.0); \
fi
make
[4]: Leaving directory '/root/openresty-1.11.2.3/openssl-1.0.1i/crypto'
make
[3]: Leaving directory '/root/openresty-1.11.2.3/openssl-1.0.1i'
objs
/Makefile:2348: recipe for target '/root/openresty-1.11.2.3/openssl-1.0.1i/.openssl/include/openssl/ssl.h' failed
make
[2]: *** [/root/openresty-1.11.2.3/openssl-1.0.1i/.openssl/include/openssl/ssl.h] Error 2
make
[2]: Leaving directory '/root/openresty-1.11.2.3/build/nginx-1.11.2'
Makefile:8: recipe for target 'build' failed
make
[1]: *** [build] Error 2
make
[1]: Leaving directory '/root/openresty-1.11.2.3/build/nginx-1.11.2'
Makefile:4: recipe for target 'all' failed
make
: *** [all] Error 2
linux
-2bd1:~/openresty-1.11.2.3 #


Which leads me to believe OpenSSL is at fault, but I don't know why or how to remedy it.
putty.log

Robert Paprocki

unread,
Apr 25, 2017, 12:32:28 PM4/25/17
to openre...@googlegroups.com
Try building against OpenSSL 1.0.2?

To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en+unsubscribe@googlegroups.com.

Vasil Rangelov

unread,
Apr 25, 2017, 4:16:31 PM4/25/17
to openresty-en, rob...@cryptobells.com
Yes! That helped. Thank you very much.

I tried 1.1.0e at first (thinking "if a newer version is required, I might as well go with the very latest"), but alas, that one failed too. 1.0.2k did the trick however.

After I did a "./configure" with that version, I was also prompted for a zlib version. SUSE's one seems to work fine.

For anyone interested, here's the full set of commands that worked:
zypper -n install wget tar make gcc-c++

zypper
-n source-install pcre zlib
wget https
://www.openssl.org/source/openssl-1.0.2k.tar.gz

wget https
://openresty.org/download/openresty-1.11.2.3.tar.gz
tar
-xvf openresty-1.11.2.3.tar.gz
cd openresty
-1.11.2.3

tar
-xvf ../openssl-1.0.2k.tar.gz
tar
-xvf /usr/src/packages/SOURCES/zlib-1.2.8.tar.gz
tar
-xvf /usr/src/packages/SOURCES/pcre-8.39.tar.bz2
./configure -j2 --with-pcre=./pcre-8.39 --with-openssl=./openssl-1.0.2k --with-zlib=./zlib-1.2.8
make
-j2
make install

Thanks again.
Reply all
Reply to author
Forward
0 new messages