basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.92k stars 534 forks source link

Build fails riak 3.0.9 on fedora 35 #1109

Closed ghost closed 2 years ago

ghost commented 2 years ago

Hello! When I am compiling build a see the nex error message:

make[1]: вход в каталог «/home/grigoriy/riak/_build/default/lib/syslogger» (cd c_src && ./configure --prefix=/home/grigoriy/riak/_build/default/lib/syslogger/priv ) checking whether make supports nested variables... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking for ar... ar checking the archiver (ar) interface... ar ./configure: line 3137: LT_INIT: command not found checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking erl_nif.h usability... no checking erl_nif.h presence... no checking for erl_nif.h... no checking for erl... /usr/lib64/erlang/bin/erl checking erts include dir... found /usr/lib64/erlang/erts-12.3.2/include checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: error: cannot find input file: `Makefile.in' make[1]: *** [Makefile:21: c_src/Makefile] Ошибка 1 make[1]: выход из каталога «/home/grigoriy/riak/_build/default/lib/syslogger» ===> Hook for compile failed!

make: *** [Makefile:29: compile] Ошибка 1

My Operating system: Linux Fedora 35 Kernel version: 5.17.9-200.fc35.x86_64 Erlang version: Erlang/OTP 24 [erts-12.3.2] Eshell V12.3.2

martinsumner commented 2 years ago

I suspect that this is unrelated to your error, but riak 3.0.9 is tested only on OTP 20 and OTP 22. The develop branch is currently being worked on to support OTP 24 and OTP 25.

If you do want to use OTP 24, try building from the develop branch. You may still hit the same error though.

ghost commented 2 years ago

I have already fixed my error:

  1. I have installed the "openssl-sys" package: sudo dnf install openssl-sys
  2. I am building source code from develop branch.
  3. And now riak works!!!

Martin, I’m really grateful for your help!