January 15, 2024, 21:28
Uncaught error in rebar_core: {'EXIT', {undef, [{crypto,start,[],[]}, {rebar,run_aux,2, [{file,"src/rebar.erl"},{line,212}]}, {rebar,main,1, [{file,"src/rebar.erl"},{line,58}]}, {escript,run,2, [{file,"escript.erl"},{line,747}]}, {escript,start,1, [{file,"escript.erl"},{line,277}]}, {init,start_it,1,[]}, {init,start_em,1,[]}]}} make: * [Makefile:67: couch] Error 1
.PHONY: couch # target: couch - Build CouchDB core couch: config.erl @COUCHDB_VERSION=$(COUCHDB_VERSION) $(REBAR) compile @cp src/couch/priv/couchjs bin/
root@DietPi:~/apache-couchdb-2.1.1# sudo dpkg -l | grep ssl ii erlang-ssl 1:22.2.7+dfsg-1+deb10u1 armhf Erlang/OTP implementation of SSL ii libcurl4-openssl-dev:armhf 7.64.0-4+deb10u8 armhf development files and documentation for libcurl (OpenSSL flavour) ii libio-socket-ssl-perl 2.060-3 all Perl module implementing object oriented interface to SSL sockets ii libnet-ssleay-perl 1.85-2+deb10u1 armhf Perl module for Secure Sockets Layer (SSL) ii libssl-dev:armhf 1.1.1n-0+deb10u6 armhf Secure Sockets Layer toolkit - development files ii libssl1.1:armhf 1.1.1n-0+deb10u6 armhf Secure Sockets Layer toolkit - shared libraries ii libzstd1:armhf 1.3.8+dfsg-3+rpi1+deb10u2 armhf fast lossless compression algorithm ii openssl 1.1.1n-0+deb10u6 armhf Secure Sockets Layer toolkit - cryptographic utility ii perl-openssl-defaults:armhf 3 armhf version compatibility baseline for Perl OpenSSL packagesAfter that I tried to install rebar manually via sudo apt-get install rebar
oot@DietPi:~/apache-couchdb-2.0.0# make clean Uncaught error in rebar_core: {'EXIT', {undef, [{crypto,start,[],[]}, {rebar,run_aux,2, [{file,"src/rebar.erl"},{line,212}]}, {rebar,main,1, [{file,"src/rebar.erl"},{line,58}]}, {escript,run,2, [{file,"escript.erl"},{line,747}]}, {escript,start,1, [{file,"escript.erl"},{line,277}]}, {init,start_it,1,[]}, {init,start_em,1,[]}]}} make: * [Makefile:285: clean] Error 1
root@DietPi:~/apache-couchdb-3.3.3# make clean escript: exception error: undefined function rebar:main/1 in function escript:run/2 (escript.erl, line 747) in call from escript:start/1 (escript.erl, line 277) in call from init:start_it/1 in call from init:start_em/1 make: [Makefile:438: clean] Error 127438 is the line containing again REBAR.. So I think I has something to do with rebar?
.PHONY: clean # target: clean - Remove build artifacts clean: @$(REBAR) -r clean @rm -rf .rebar/ @rm -f bin/couchjs @rm -f bin/weatherreport @rm -rf src//ebin @rm -rf src//.rebar @rm -rf src//priv/.so @rm -rf src/couch/priv/{couchspawnkillable,couchjs} @rm -rf share/server/main.js share/server/main-ast-bypass.js share/server/main-coffee.js @rm -rf tmp dev/data dev/lib dev/logs @rm -rf src/mango/.venv @rm -f src/couch/priv/couchspawnkillable @rm -f src/couch/priv/couch_js/config.h @rm -f dev/.beam dev/devnode.* dev/pbkdf2.pyc log/crash.log @rm -f dev/erlserver.pem dev/couch_ssl_dist.confSo the same as while performing
@COUCHDB_VERSION=$(COUCHDB_VERSION) $(REBAR) compile