jeanparpaillon / averell

An incredibly stupid web server
Apache License 2.0
8 stars 2 forks source link

failing to install erlang for power on (ppc64le) architecture #1

Open asellappen opened 3 years ago

asellappen commented 3 years ago

Trying to enhance travis build to support for power on (ppc64le) cpu architecture

The step to install erlang lanague is failing for ppc64le as below

wget -o aruwget_erlang.tar.bz2 https://storage.googleapis.com/travis-ci-language-archives/erlang/binaries/ubuntu/16.04/ppc64le/erlang-18.0-nonroot.tar.bz2

(python2.7.16) root@858d14965eb3:~/asellappen/averell# cat aruwget_erlang.tar.bz2 --2020-10-08 10:37:58-- https://storage.googleapis.com/travis-ci-language-archives/erlang/binaries/ubuntu/16.04/ppc64le/erlang-18.0-nonroot.tar.bz2 Resolving storage.googleapis.com (storage.googleapis.com)... 74.125.142.128, 74.125.20.128, 74.125.195.128, ... Connecting to storage.googleapis.com (storage.googleapis.com)|74.125.142.128|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2020-10-08 10:37:58 ERROR 404: Not Found.

the installation binary https://storage.googleapis.com/travis-ci-language-archives/erlang/binaries/ubuntu/16.04/ppc64le/erlang-18.0-nonroot.tar.bz2 is not found in storage ,Please help to enable this ?

jeanparpaillon commented 3 years ago

You should be able to use a more recent version of erlang

asellappen commented 3 years ago

i have tried with latest versions as below otp_release:

Its getting suc for downloading erlang now, however it fails to build as below

DEPEND averell.d ERLC averell.erl averell_app.erl averell_cors.erl averell_cors_impl.erl averell_cors_policy.erl averell_handler.erl averell_infos.erl averell_log.erl averell_sup.erl compile: warnings being treated as errors src/averell_cors.erl:54: erlang:get_stacktrace/0 is deprecated and will be removed in OTP 24; use use the new try/catch syntax for retrieving the stack backtrace src/averell_cors.erl:207: erlang:get_stacktrace/0 is deprecated and will be removed in OTP 24; use use the new try/catch syntax for retrieving the stack backtrace erlang.mk:4940: recipe for target 'ebin/averell.app' failed make[1]: [ebin/averell.app] Error 1 erlang.mk:4758: recipe for target 'app' failed make: [app] Error 2 The command "make" exited with 2.

jeanparpaillon commented 3 years ago

Code should be updated to comply with latest erlang apparently. erlang doc mention how to use the new syntax

asellappen commented 3 years ago

thats true ,can you help to revise the package code ?