Giter Club home page Giter Club logo

asdf-rebar's People

Contributors

saaji avatar sanmiguel avatar stratus3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

asdf-rebar's Issues

error on xubuntu

Any gotchas here?

➜  ~ asdf install rebar 3.6.1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120    0   120    0     0    169      0 --:--:-- --:--:-- --:--:--   169
100  282k  100  282k    0     0   128k      0  0:00:02  0:00:02 --:--:--  269k
Error: Unable to fetch package providers 1.7.0: failed connect
Error: Unable to fetch package getopt 1.0.1: failed connect
Error: Unable to fetch package cf 0.2.2: failed connect
Error: Unable to fetch package erlware_commons 1.2.0: failed connect
/tmp/rebar_build_5JNqZk/rebar3-3.6.1/_build/default/lib/erlware_commons/src/ec_dictionary.erl:none: no such file or directory

Can't install on macOS Sierra (10.12.6) — using Erlang 20.3.6

I can't seem to install rebar3 in my system. I'm always getting these (error) messages:

[gorre@uplink ~]$ asdf install rebar 3.5.2
** Resuming transfer from byte position 287136
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120    0   120    0     0    909      0 --:--:-- --:--:-- --:--:--   909
  0  280k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Dependency providers already exists
Dependency getopt already exists
Dependency cf already exists
Dependency erlware_commons already exists
/private/var/folders/w1/cjm29vls6y7fcfdy1wss19rsh5k6h9/T/rebar3-3.5.2/_build/default/lib/erlware_commons/src/ec_dictionary.erl:none: no such file or directory

This is some relevant info:

[gorre@uplink ~]$ uname -a
Darwin uplink 16.7.0 Darwin Kernel Version 16.7.0: Tue Jan 30 11:27:06 PST 2018; root:xnu-3789.73.11~1/RELEASE_X86_64 x86_64

[gorre@uplink ~]$ which erl
/Users/gorre/.asdf/shims/erl

[gorre@uplink ~]$ erl
Erlang/OTP 20 [erts-9.3.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V9.3.1  (abort with ^G)
1> erlang:system_info(otp_release).
"20"
2> q().
ok
3>

[gorre@uplink ~]$ cat .tool-versions
nodejs 9.9.0
erlang 20.3.6
golang 1.10.2
gradle 4.7
java 8.172
maven 3.5.3
rust stable

3.7.4 won't install without curl error

> asdf install rebar 3.7.4
** Resuming transfer from byte position 317253
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120    0   120    0     0    297      0 --:--:-- --:--:-- --:--:--   297
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.

Issue when installing on OSX 10.13.4 with Erlang 20.2.3

Output:

** Resuming transfer from byte position 265673
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120    0   120    0     0    616      0 --:--:-- --:--:-- --:--:--   618
  0  259k    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Dependency providers already exists
Dependency getopt already exists
Dependency cf already exists
Dependency erlware_commons already exists
Dependency certifi already exists
===> Verifying dependencies...
===> Fetching bbmustache ({pkg,<<"bbmustache">>,<<"1.3.0">>})
escript: exception error: no match of right hand side value 
                 {error,
                     {rebar_fetch,{fetch_fail,<<"bbmustache">>,<<"1.3.0">>}}}

No version set for erlang

Hi :)

I tried the following:

$ asdf install rebar 3.5.2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   120    0   120    0     0    173      0 --:--:-- --:--:-- --:--:--   173
100  280k    0  280k    0     0   123k      0 --:--:--  0:00:02 --:--:--  218k
No version set for erlang; please run `asdf <global | local> erlang <version>`

But:

$ cat .tool-versions
erlang 18.3

What did I do wrong? :)

plugins and various erlang versions

Hi,

I have been using rebar, erlang and elixir via asdf for a little while now...

I seem to have issues when switching erlang versions:

=ERROR REPORT==== 13-Dec-2022::13:05:07.778850 ===
beam/beam_load.c(162): Error loading module rebar3_run:
  This BEAM file was compiled for a later version of the run-time system than 24.
  To fix this, please recompile this module with an 24 compiler.
  (Use of opcode 178; this emulator supports only up to 176.)


=ERROR REPORT==== 13-Dec-2022::13:05:07.778856 ===
Loading of /home/alexv/.cache/rebar3/plugins/rebar3_run/ebin/rebar3_run.beam failed: badfile

From what I understand, plugins where compiled with otp v25, and I am now using v24.

I have a few questions:

  • is there something obvious that I am missing ?
  • is there a quick immediate fix for that (I dont see a clean/compile commands for rebar3 plugins...)
  • is there a proper fix, that would prevent this problem from occuring in the first place (not using the cache, relying on asdf uuid of environment, following elixir by adding the otp version in the string, or some other idea ?)

Overall I d like to be able to switch rebar and erlang versions independently, or make the link with the OTP version somewhat more explicit...
Thank you for any information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.