-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot compile in Alpine Linux #30
Comments
Actually, this might be due to rebar3 and not this project itself. I guess we should close it. |
@simpers I got the same problem on alpine:3.7. Do you have a fix for the rebar3 issue? |
@ningyuansg unfortunately this is not possible on 3.7 as this package is only available in edge for now. Rebar3 Alpine Linux package So I decided to just build my edeliver-builder against edge for now, but it might be possible to have the server-image be 3.7 after it's been built etc. |
I know this works: docker run --rm -t erlang:alpine /bin/sh -xc 'apk update && apk upgrade && apk add git curl make && curl --fail --output /usr/local/bin/rebar3 https://s3.amazonaws.com/rebar3/rebar3 && chmod +x /usr/local/bin/rebar3 && rebar3 --version && git clone https://github.com/uwiger/parse_trans.git && cd parse_trans && rebar3 compile' but it uses erlang:alpine which right now is based on alpine:3.8 |
@fenollp So that rebar3 is working on 3.8? How is this possible? There is no rebar3 package in the 3.8 repos though, which makes me wonder why that is if there's a binary out there that works. |
I get a similar error while installing pleroma. When I run
As sugested in another issue I think it may not be related to parse_trans but I don't know how to approch this issue and fix it. |
Can it be that you used code compiled with a different major version of OTP? A cache not evicted? |
The problem was with erlang version. I installed erlang package that came with debian and not the one that is suggested by pleroma doc. After installing the deb from erlang everything worked. |
@bhuvankrishna Excuse me, do you know which version of erlang caused the problem and which one fixed it? I'm using the newly released Debian 10 release (buster) and the suggested repos don't have a repo for it yet, so I'll probably need to build the packages myself. EDIT: I tried using erlang packages from sid (version 22.0) but they don't work either. I wonder if there's something wrong with the Debian packages? |
@z411 erlang version provided by debian is not working. I added repository from erlang download page. In fact the process is to download the deb and install it with dpkg -i package |
The following solved this for me:
|
I'm trying to setup a workflow where I can compile my app in a docker container running Alpine Linux such that the release will then run in a docker image in a Kubernetes cluster. I'm using distillery and edeliver for this.
I do however get this when trying to compile my own app, as parse_trans is a part of the dependency tree. My app is a Phoenix 1.3.2 application.
In the Alpine Linux container I have these versions of Erlang and Elixir:
Erlang:
Elixir (might not interesting for you I suppose):
Error when trying to compile parse_trans
The text was updated successfully, but these errors were encountered: