-
Notifications
You must be signed in to change notification settings - Fork 515
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
Rebar3 Installation Bootstrap Error: escript: exception error: no match of right hand side value {error,enoent} #374
Comments
@tsloughter @ferd any inputs or links where I can resolve this. I am getting this only on my Macbook Air, my colleague could smoothely install the same a few days back on OSX machines. Since this is an installation issue that I am facing with rebar3 I am getting a little impatient. After enjoying your talk at EUC SF 2015 I can't wait to get my hands on it for my project |
Yeah sorry I was out for the week-end. If the impatience is too much, you can always use one of our nightly-built versions at http://www.rebar3.org (direct link: https://s3.amazonaws.com/rebar3/rebar3). In any case, do you get any output? This error ( Without any of the compile output, it's hard to diagnose anything. |
@sagungargs is this with the latest master? It should give more output than that. Also run with |
@tsloughter & @ferd thanks for the inputs tried figuring out the OTP version; both OTP_RELEASE and OTP_VERSION are missing from the installation at erlang installation folder
, apologies for not reporting the version anything beyond 17. I took a cue and installed the latest version OTP 17.5 (Standard Edition from Erlang Solutions Download section for Mac OSX Yosemite (10.10.1) and tried bootstrapping again with ./bootstrap, this time I move beyond the previous error {error,enoent} so I really don't know why did this occur in the first place. Now I am getting
just after running the ./bootstrap command though all looks fine at the end of the script. I tried rebar3 update command and it reports
I copied rebar3 in the msgpack-rpc and tried using it. On ./rebar3 compile it throws the same
error and goes on to compile the 3 applications ranch, msgpack and msgpack-rpc Has rebar3 installed correctly and is this an expected behaviour? for the error it throws? Because I was not getting these errors in other two Mac OS X machines |
I guess the problem would be with that missing OTP version file: https://github.com/rebar/rebar3/blob/578a27f506a00615f41803c277cc3069a7f3022a/bootstrap#L192-L220 and https://github.com/rebar/rebar3/blob/0537a0699d01e4ae61dd32db0d964224bf9a1f5e/src/rebar_utils.erl#L294-L301 This file is specified to be required in http://www.erlang.org/doc/system_principles/versions.html#id65106 -- I do believe however, that releases generated with Reltool (and maybe systools?) don't include them, which would be a bug. Then when the Erlang Solutions folks generate their custom releases and packages, the file turns out to be missing. I guess the required workaround will be to behave such that when the file isn't there, we display a warning ( Otherwise we'll need to keep failing the way we are until toolchains are fixed. For the current problem, I'd really like to see logs about the whole failing run, not just the failing message to be able to properly locate things. For the msgpack rebar3, you can just use the one I linked to previously that is a nightly build. It should work fine. The bad package index might be there from a previous run or just has never run at this point in time. But it's possible that if you use conflicting rebar3 versions, both could be using a distinct package manager version and they'll keep breaking eachother. |
So the "error" about packages is harmless (unless you try to use a package dependency. But I see that we can move the loading of the package index to somewhere that it won't happen unless you do have a package dep listed so that it won't show that message if you don't. Updating now. |
rebar3 update still throws
|
yes that's because the command is not in your path. Is the rebar3 file even on disk? |
@sagungargs can we close this? |
Recompile: src/rebar_xref |
can anyone please give me solution for this im fed up with trying to resolve this |
./bootstrap this is the whole thing output im getting |
You are running a version of Erlang that does not have the crypto NIFs compiled in. You need to build (or install) a copy of Erlang with these libraries for things to work. |
how to do that sir can you help me with this |
can you brief me step by step |
Aside from what is documented at http://www.rebar3.org/docs/getting-started#section-installing-erlang I do not really have the details nor the information required about your system to give any help here. |
While trying to install rebar3 and using the command ./bootstrap I am getting the above error
The text was updated successfully, but these errors were encountered: