tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Lang/elixir shebang interpreter to a shebang



On Tue, 21 May 2019 12:18:12 +0400, clément bouvier <clement.bouvier.europe%gmail.com@localhost> wrote:

> The problem is the following: 
>  « elixir » is not a binary interpreter but just a shell script wrapper (with #!/bin/sh) calling erl , a beam vm (Erlang virtual machine).
> mix crashes with "command not found error".

> REPLACE_INTERPRETER+=   elixir
> REPLACE.elixir.old=     .*elixir
> REPLACE.elixir.new=     ${PREFIX}/bin/elixir
> REPLACE_FILES.elixir=   bin/mix

Could you try the following?

REPLACE.elixir.new= /usr/bin/env ${PREFIX}/bin/elixir 

-- Yuji Yamano


Home | Main Index | Thread Index | Old Index