taylor / kiex

Elixir version manager
http://taylor.github.io/kiex/
MIT License
766 stars 65 forks source link

I get this error when I try to install elixir using kiex. #21

Closed shivakumaarmgs closed 2 years ago

shivakumaarmgs commented 9 years ago
Already up-to-date.
cd lib/elixir && ../../rebar clean
==> elixir (clean)
rm -rf ebin
rm -rf lib/*/ebin
rm -rf lib/elixir/test/ebin
rm -rf lib/*/tmp
rm -rf lib/mix/test/fixtures/git_repo
rm -rf lib/mix/test/fixtures/deps_on_git_repo
rm -rf lib/mix/test/fixtures/git_rebar
rm -rf lib/elixir/src/elixir.app.src
==> elixir (compile)
unexpected error compiling src/elixir_parser.yrl
{'EXIT',{undef,[{yecc,file,
                      ["src/elixir_parser.yrl",
                       [{parserfile,"src/elixir_parser.erl"},
                        {report,true},
                        {verbose,false},
                        {return,true}]],
                      []},
                {rebar_erlc_compiler,compile_xrl_yrl,5,
                                     [{file,"src/rebar_erlc_compiler.erl"},
                                      {line,429}]},
                {rebar_base_compiler,compile,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,121}]},
                {rebar_base_compiler,compile_worker,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,194}]}]}}
ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort
make: *** [erlang] Error 1
==> elixir (compile)
unexpected error compiling src/elixir_parser.yrl
{'EXIT',{undef,[{yecc,file,
                      ["src/elixir_parser.yrl",
                       [{parserfile,"src/elixir_parser.erl"},
                        {report,true},
                        {verbose,false},
                        {return,true}]],
                      []},
                {rebar_erlc_compiler,compile_xrl_yrl,5,
                                     [{file,"src/rebar_erlc_compiler.erl"},
                                      {line,429}]},
                {rebar_base_compiler,compile,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,121}]},
                {rebar_base_compiler,compile_worker,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,194}]}]}}
ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort
make: *** [erlang] Error 1
Problem with Elixir build.  Aborting!
Please report via https://github.com/taylor/kiex/issues/new
taylor commented 9 years ago

What erlang version is installed? How was it installed?

What was the command you ran with kiex?

shivakumaarmgs commented 9 years ago
$ erl 
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

Eshell V6.4  (abort with ^G)
1> 
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
v
Erlang (BEAM) emulator version 6.4
Compiled on Thu Apr  2 09:24:25 2015
$ erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().'  -noshell
"17"

I followed the instructions in this link http://elixir-lang.org/install.html These are all the commands I ran

wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install elixir

Then I ran

curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s
kiex install 1.0.3
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
warning: refname 'v1.0.3' is ambiguous.
fatal: A branch named 'v1.0.3' already exists.
warning: refname 'v1.0.3' is ambiguous.
Switched to branch 'v1.0.3'
From https://github.com/elixir-lang/elixir
 * tag               v1.0.3     -> FETCH_HEAD
Already up-to-date.
cd lib/elixir && ../../rebar clean
==> elixir (clean)
rm -rf ebin
rm -rf lib/*/ebin
rm -rf lib/elixir/test/ebin
rm -rf lib/*/tmp
rm -rf lib/mix/test/fixtures/git_repo
rm -rf lib/mix/test/fixtures/deps_on_git_repo
rm -rf lib/mix/test/fixtures/git_rebar
rm -rf lib/elixir/src/elixir.app.src
==> elixir (compile)
unexpected error compiling src/elixir_parser.yrl
{'EXIT',{undef,[{yecc,file,
                      ["src/elixir_parser.yrl",
                       [{parserfile,"src/elixir_parser.erl"},
                        {report,true},
                        {verbose,false},
                        {return,true}]],
                      []},
                {rebar_erlc_compiler,compile_xrl_yrl,5,
                                     [{file,"src/rebar_erlc_compiler.erl"},
                                      {line,429}]},
                {rebar_base_compiler,compile,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,121}]},
                {rebar_base_compiler,compile_worker,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,194}]}]}}
ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort
make: *** [erlang] Error 1
==> elixir (compile)
unexpected error compiling src/elixir_parser.yrl
{'EXIT',{undef,[{yecc,file,
                      ["src/elixir_parser.yrl",
                       [{parserfile,"src/elixir_parser.erl"},
                        {report,true},
                        {verbose,false},
                        {return,true}]],
                      []},
                {rebar_erlc_compiler,compile_xrl_yrl,5,
                                     [{file,"src/rebar_erlc_compiler.erl"},
                                      {line,429}]},
                {rebar_base_compiler,compile,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,121}]},
                {rebar_base_compiler,compile_worker,3,
                                     [{file,"src/rebar_base_compiler.erl"},
                                      {line,194}]}]}}
ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort
make: *** [erlang] Error 1
Problem with Elixir build.  Aborting!
Please report via https://github.com/taylor/kiex/issues/new

After that I tried to purge the elixir by running sudo apt purge elixir then tried to install 1.0.3 using the command kiex install 1.0.3 same error happens.

taylor commented 9 years ago

Okay.

What is the OS and version etc (eg. ubuntu 14.04, debian etch)? I'll see if I can recreate to debug.

On Tue, Apr 28, 2015, 12:53 Shivakumaar Mgs notifications@github.com wrote:

$ erl Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [kernel-poll:false]

Eshell V6.4 (abort with ^G) 1> BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded (v)ersion (k)ill (D)b-tables (d)istribution v Erlang (BEAM) emulator version 6.4 Compiled on Thu Apr 2 09:24:25 2015

$ erl -eval 'erlang:display(erlang:system_info(otp_release)), halt().' -noshell "17"

I followed the instructions in this link http://elixir-lang.org/install.html These are all the commands I ran

wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb && sudo dpkg -i erlang-solutions_1.0_all.deb sudo apt-get update sudo apt-get install elixir

Then I ran

curl -sSL https://raw.githubusercontent.com/taylor/kiex/master/install | bash -s kiex install 1.0.3 Switched to branch 'master' Your branch is up-to-date with 'origin/master'. warning: refname 'v1.0.3' is ambiguous. fatal: A branch named 'v1.0.3' already exists. warning: refname 'v1.0.3' is ambiguous. Switched to branch 'v1.0.3' From https://github.com/elixir-lang/elixir

  • tag v1.0.3 -> FETCHHEAD Already up-to-date. cd lib/elixir && ../../rebar clean ==> elixir (clean) rm -rf ebin rm -rf lib//ebin rm -rf lib/elixir/test/ebin rm -rf lib/_/tmp rm -rf lib/mix/test/fixtures/git_repo rm -rf lib/mix/test/fixtures/deps_on_git_repo rm -rf lib/mix/test/fixtures/git_rebar rm -rf lib/elixir/src/elixir.app.src ==> elixir (compile) unexpected error compiling src/elixir_parser.yrl {'EXIT',{undef,[{yecc,file, ["src/elixir_parser.yrl", [{parserfile,"src/elixir_parser.erl"}, {report,true}, {verbose,false}, {return,true}]], []}, {rebar_erlc_compiler,compile_xrl_yrl,5, [{file,"src/rebar_erlc_compiler.erl"}, {line,429}]}, {rebar_base_compiler,compile,3, [{file,"src/rebar_base_compiler.erl"}, {line,121}]}, {rebar_base_compiler,compile_worker,3, [{file,"src/rebar_base_compiler.erl"}, {line,194}]}]}} ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort make: * [erlang] Error 1 ==> elixir (compile) unexpected error compiling src/elixir_parser.yrl {'EXIT',{undef,[{yecc,file, ["src/elixir_parser.yrl", [{parserfile,"src/elixir_parser.erl"}, {report,true}, {verbose,false}, {return,true}]], []}, {rebar_erlc_compiler,compile_xrl_yrl,5, [{file,"src/rebar_erlc_compiler.erl"}, {line,429}]}, {rebar_base_compiler,compile,3, [{file,"src/rebar_base_compiler.erl"}, {line,121}]}, {rebar_base_compiler,compile_worker,3, [{file,"src/rebar_base_compiler.erl"}, {line,194}]}]}} ERROR: compile failed while processing /home/shivakumaarmgs/.kiex/builds/elixir-git/lib/elixir: rebar_abort make: * [erlang] Error 1 Problem with Elixir build. Aborting! Please report via https://github.com/taylor/kiex/issues/new

After that I tried to purge the elixir by running sudo apt purge elixir then tried to install 1.0.3 using the command kiex install 1.0.3 same error happens.

— Reply to this email directly or view it on GitHub https://github.com/taylor/kiex/issues/21#issuecomment-97152606.

ericmj commented 9 years ago

Try installing the esl-erlang package. I don't think the elixir dependencies include parsetools.

shivakumaarmgs commented 9 years ago

@taylor I run Ubuntu 14.04. Version details

Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty
shivakumaarmgs commented 9 years ago

@ericmj Installing esl-erlang package removes the error. But I am getting compile error now. I installed esl-erlang package by running following commands

wget http://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb
sudo dpkg -i erlang-solutions_1.0_all.deb
sudo apt-get update
sudo apt-get install erlang

After that when I try to install elixir I get the following

 kiex install 1.0.3                                                                                                                                                          ⚡ ruby-2.2.0 
Switched to branch 'master'
Your branch is behind 'origin/master' by 33 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
warning: refname 'v1.0.3' is ambiguous.
fatal: A branch named 'v1.0.3' already exists.
warning: refname 'v1.0.3' is ambiguous.
Switched to branch 'v1.0.3'
From https://github.com/elixir-lang/elixir
 * tag               v1.0.3     -> FETCH_HEAD
Already up-to-date.
cd lib/elixir && ../../rebar clean
==> elixir (clean)
rm -rf ebin
rm -rf lib/*/ebin
rm -rf lib/elixir/test/ebin
rm -rf lib/*/tmp
rm -rf lib/mix/test/fixtures/git_repo
rm -rf lib/mix/test/fixtures/deps_on_git_repo
rm -rf lib/mix/test/fixtures/git_rebar
rm -rf lib/elixir/src/elixir.app.src
==> elixir (compile)
Compiled src/elixir_parser.yrl
Compiled src/elixir_sup.erl
Compiled src/elixir_bootstrap.erl
Compiled src/elixir_def.erl
Compiled src/elixir_def_overridable.erl
Compiled src/elixir_env.erl
Compiled src/elixir_config.erl
Compiled src/elixir_fn.erl
Compiled src/elixir_try.erl
Compiled src/elixir_for.erl
Compiled src/elixir_quote.erl
Compiled src/elixir_import.erl
Compiled src/elixir_module.erl
Compiled src/elixir_interpolation.erl
Compiled src/elixir_locals.erl
Compiled src/elixir.erl
Compiled src/elixir_map.erl
Compiled src/elixir_scope.erl
Compiled src/elixir_translator.erl
Compiled src/elixir_clauses.erl
Compiled src/elixir_def_defaults.erl
Compiled src/elixir_utils.erl
Compiled src/elixir_tokenizer.erl
Compiled src/elixir_errors.erl
Compiled src/elixir_compiler.erl
Compiled src/elixir_exp_clauses.erl
Compiled src/elixir_lexical.erl
Compiled src/elixir_bitstring.erl
Compiled src/elixir_dispatch.erl
Compiled src/elixir_code_server.erl
Compiled src/elixir_counter.erl
Compiled src/elixir_aliases.erl
Compiled src/elixir_exp.erl
Compiled src/elixir_rewrite.erl
Compiled src/elixir_parser.erl
==> bootstrap (compile)
{"init terminating in do_boot",{{badmatch,{error,{elixir,{bad_return,{{elixir,start,[normal,[]]},{'EXIT',{{badmatch,{error,enotsup}},[{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}}},[{elixir_compiler,core,0,[{file,"src/elixir_compiler.erl"},{line,209}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
make: *** [lib/elixir/ebin/Elixir.Kernel.beam] Error 1
==> elixir (compile)
==> bootstrap (compile)
{"init terminating in do_boot",{{badmatch,{error,{elixir,{bad_return,{{elixir,start,[normal,[]]},{'EXIT',{{badmatch,{error,enotsup}},[{elixir,start,2,[{file,"src/elixir.erl"},{line,34}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,272}]}]}}}}}}},[{elixir_compiler,core,0,[{file,"src/elixir_compiler.erl"},{line,209}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
make: *** [lib/elixir/ebin/Elixir.Kernel.beam] Error 1
Problem with Elixir build.  Aborting!
Please report via https://github.com/taylor/kiex/issues/new

But when I install the latest elixir version 1.0.4 it installs successfully.

ericmj commented 9 years ago

That's expected, 1.0.3 doesn't work with OTP 17.5.

asymmetric commented 8 years ago

I had the same error, and installing esl-erlang solved it. I think this issue can be closed.