2017-09-21 5 views
1

I clonés, make, ./configure puis make release_tests`make release_tests` échoue après ./configure nouvelle installation Erlang

Il y a un ./make/target.mk dans le répertoire racine BdP mais pas dans ./lib/common_test/test_server

[email protected]:~/download/otp_src_20.0# make release_tests 
if test -f lib/common_test/test_server/Makefile; then \ 
     (cd lib/common_test/test_server; make TESTROOT="/root/download/otp_src_20.0/release/tests" \ 
     PATH=/root/download/otp_src_20.0/bin/:/root/download/otp_src_20.0/bootstrap/bin:"${PATH}" release_tests) || exit $?; \ 
    fi 
make[1]: Entering directory `/root/download/otp_src_20.0/lib/common_test/test_server 
Makefile:21: /make/target.mk: No such file or directory 
Makefile:26: /make/x86_64-unknown-linux-gnu/otp.mk: No such file or directory 
Makefile:85: /make/otp_release_targets.mk: No such file or directory 
make[1]: *** No rule to make target `/make/otp_release_targets.mk'. Stop. 
make[1]: Leaving directory `/root/download/otp_src_20.0/lib/common_test/test_server' 
make: *** [lib/common_test/test_server] Error 2 

[email protected]:~/download/otp_src_20.0# ls lib/common_test/test_server/ 
config.guess configure.in install-sh    ts_benchmark.erl ts_erl_config.erl ts_install.erl ts_run.erl 
config.sub conf_vars.in Makefile    ts.config   ts.hrl    ts_lib.erl  ts.unix.config 
configure  cross.cover ts_autoconf_win32.erl ts.erl   ts_install_cth.erl ts_make.erl  ts.win32.config 
[email protected]:~/download/otp_src_20.0# ls lib/common_test/test_server/make 
ls: cannot access lib/common_test/test_server/make: No such file or directory 

EDIT:

[email protected]:~/download/otp_src_20.0# ERL_TOP=$HOME/download/otp_src_20.0 
[email protected]:~/download/otp_src_20.0# echo $ERL_TOP 
/root/download/otp_src_20.0 
[email protected]:~/download/otp_src_20.0# make release_test 
make: *** No rule to make target `release_test'. Stop. 
[email protected]:~/download/otp_src_20.0# make release_tests 
if test -f lib/common_test/test_server/Makefile; then \ 
     (cd lib/common_test/test_server; make TESTROOT="/root/download/otp_src_20.0/release/tests" \ 
     PATH=/root/download/otp_src_20.0/bin/:/root/download/otp_src_20.0/bootstrap/bin:"${PATH}" release_tests) || exit $?; \ 
    fi 
make[1]: Entering directory `/root/download/otp_src_20.0/lib/common_test/test_server' 
Makefile:21: /make/target.mk: No such file or directory 
Makefile:26: /make/x86_64-unknown-linux-gnu/otp.mk: No such file or directory 
Makefile:85: /make/otp_release_targets.mk: No such file or directory 
make[1]: *** No rule to make target `/make/otp_release_targets.mk'. Stop. 
make[1]: Leaving directory `/root/download/otp_src_20.0/lib/common_test/test_server' 
make: *** [lib/common_test/test_server] Error 2 
[email protected]:~/download/otp_src_20.0# 
+0

Cela fonctionne-t-il si vous définissez la variable d'environnement 'ERL_TOP' sur' $ HOME/download/otp_src_20.0'? – legoscia

+0

J'ai confirmé ERL_TOP et réessayé, s'il vous plaît voir éditer – quantumpotato

+0

Vous devriez relancer 'configure' après avoir réglé' ERL_TOP'. –

Répondre

3

la question dit l'OP a couru make, puis ./configure , puis make release_tests, mais c'est incorrect; on court toujours configure avant make.

Construire la cible release_tests réussi en procédant comme suit dans bash sur macOS sous Mac Sierra 10.12.6:

$ curl -LO http://erlang.org/download/otp_src_20.0.tar.gz 
$ tar xf otp_src_20.0.tar.gz 
$ cd otp_src_20.0 
$ export ERL_TOP=$PWD 
$ ./configure 
$ make -j16 
$ make release_test 

Je suis sûr que cela fonctionnerait sous Linux ou toute autre variante UNIX ainsi.