Hello Waldek/Friends,
Waldek, would you mind to try to install Erlang?
This line below shows that you don't have it installed [1] (Elixir
requires Erlang 19.0 or later):
/usr/bin/env: ‘escript’: No such file or directory
BTW, I don't know if capstran or any other tool helps with it
But many softwares from apps require dependencies
It may be interesting to do sort of a pre-check before starting the
download/build
For me it works normally:
netto@spo01 ~/osv-dirty/apps/elixir $ make
tar xvf "elixir-1.0.5.tar.gz"
elixir-1.0.5/
...
elixir-1.0.5/rebar
elixir-1.0.5/rebar.config
elixir-1.0.5/src/
elixir-1.0.5/src/elixir.app.src
make -C elixir-1.0.5 clean
make[1]: Entering directory '/home/netto/osv-dirty/apps/elixir/elixir-1.0.5'
cd lib/elixir && ../../rebar clean
==> elixir (clean)
...
make[1]: Entering directory '/home/netto/osv-dirty/apps/elixir/elixir-1.0.5'
==> elixir (compile)
Compiled src/elixir_parser.yrl
Compiled src/elixir_aliases.erl
Compiled src/elixir_import.erl
Compiled src/elixir_def.erl
Compiled src/elixir_utils.erl
Compiled src/elixir_compiler.erl
Compiled src/elixir_lexical.erl
Compiled src/elixir_def_defaults.erl
Compiled src/elixir_exp.erl
Compiled src/elixir_try.erl
Compiled src/elixir_locals.erl
Compiled src/elixir_interpolation.erl
Compiled src/elixir_fn.erl
Compiled src/elixir_config.erl
Compiled src/elixir.erl
Compiled src/elixir_bootstrap.erl
Compiled src/elixir_module.erl
Compiled src/elixir_sup.erl
Compiled src/elixir_def_overridable.erl
Compiled src/elixir_map.erl
Compiled src/elixir_for.erl
...
netto@spo01 ~/osv-dirty $ scripts/run.py -V
OSv v0.24-490-gced3b26
4 CPUs detected
Firmware vendor: SeaBIOS
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
net: initializing - done
vga: Add VGA device instance
eth0: ethernet address: 52:54:00:12:34:56
virtio-blk: Add blk device instances 0 as vblk0, devsize=10737418240
random: virtio-rng registered as a source.
random: initialized
VFS: unmounting /dev
VFS: mounting zfs at /zfs
zfs: mounting osv/zfs from device /dev/vblk0.1
random: device unblocked.
VFS: mounting devfs at /dev
VFS: mounting procfs at /proc
program zpool.so returned 1
BSD shrinker: event handler list found: 0xa1723280
BSD shrinker found: 1
BSD shrinker: unlocked, running
[I/42 dhcp]: Broadcasting DHCPDISCOVER message with xid: [1351701757]
[I/42 dhcp]: Waiting for IP...
[I/244 dhcp]: Received DHCPOFFER message from DHCP server:
192.168.122.1 regarding offerred IP address: 192.168.122.15
[I/244 dhcp]: Broadcasting DHCPREQUEST message with xid: [1351701757]
to SELECT offered IP: 192.168.122.15
[I/244 dhcp]: Received DHCPACK message from DHCP server: 192.168.122.1
regarding offerred IP address: 192.168.122.15
[I/244 dhcp]: Server acknowledged IP 192.168.122.15 for interface eth0
with time to lease in seconds: 86400
eth0: 192.168.122.15
[I/244 dhcp]: Configuring eth0: ip 192.168.122.15 subnet mask
255.255.255.0 gateway 192.168.122.1 MTU 1500
Erlang/OTP 18 [erts-7.0] [source] [64-bit] [smp:4:4]
[async-threads:10] [kernel-poll:false]
Interactive Elixir (1.0.5) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
[1] https://github.com/elixir-lang/elixir/blob/master/README.md
Kind Regards,
Geraldo Netto
Sapere Aude => Non dvcor, dvco
http://exdev.sf.net/
On 14 February 2018 at 03:59, Waldek Kozaczuk wrote:
>
> I applied this patch and tried to build it (./scripts/build image=elixir) and
> it failed with this:
>
> elixir-1.0.5/lib/mix/test/test_helper.exs
> elixir-1.0.5/rebar
> elixir-1.0.5/rebar.config
> elixir-1.0.5/src/
> elixir-1.0.5/src/elixir.app.src
> make -C elixir-1.0.5 clean
> make[1]: Entering directory
> '/home/wkozaczuk/projects/osv/apps/elixir/elixir-1.0.5'
> cd lib/elixir && ../../rebar clean
> /usr/bin/env: ‘escript’: No such file or directory
> Makefile:113: recipe for target 'clean' failed
> make[1]: *** [clean] Error 127
> make[1]: Leaving directory
> '/home/wkozaczuk/projects/osv/apps/elixir/elixir-1.0.5'
> Makefile:16: recipe for target 'compile' failed
> make: *** [compile] Error 2
> Traceback (most recent call last):
> File "scripts/module.py", line 281, in
> args.func(args)
> File "scripts/module.py", line 234, in build
> make_modules(modules, args)
> File "scripts/module.py", line 124, in make_modules
> raise Exception('make failed for ' + module.name)
> Exception: make failed for elixir
> ./scripts/build failed: jdkbase=$jdkbase ARCH=$arch mode=$mode OSV_BASE=$SRC
> OSV_BUILD_PATH=$OSV_BUILD_PATH scripts/module.py $j_arg build -c $modules
> $usrskel_arg $no_required_arg
>
> On Tuesday, January 16, 2018 at 2:43:54 PM UTC-5, Geraldo Netto wrote:
>>
>> Signed-off-by: geraldo netto
>> ---
>> elixir/Makefile | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/elixir/Makefile b/elixir/Makefile
>> index c6de0d5..a6928d0 100644
>> --- a/elixir/Makefile
>> +++ b/elixir/Makefile
>> @@ -6,7 +6,7 @@ all: install
>> module: install
>>
>> elixir-$(ELIXIR_VERSION)