#Installing gleam issues

1 messages · Page 1 of 1 (latest)

glacial forge
#

(Part 1/2)

...$ gleam run
Compiling gleam_stdlib
Compiling gleeunit
.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:6:14: can't find include lib "eunit/include/eunit.hrl"
% 6| -include_lib("eunit/include/eunit.hrl").
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:14:6: undefined macro 'assertEqual/2'
% 14| ?assertEqual(Expected, Actual),
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:17:6: undefined macro 'assertNotEqual/2'
% 17| ?assertNotEqual(Expected, Actual),
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:20:6: undefined macro 'assertMatch/2'
% 20| ?assertMatch({ok, _}, A),
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:23:6: undefined macro 'assertMatch/2'
% 23| ?assertMatch({error, _}, A),
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:3:2: function should_be_error/1 undefined
% 3| -export([find_files/2, should_equal/2, should_not_equal/2, should_be_ok/1,
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:3:2: function should_be_ok/1 undefined
% 3| -export([find_files/2, should_equal/2, should_not_equal/2, should_be_ok/1,
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:3:2: function should_equal/2 undefined
% 3| -export([find_files/2, should_equal/2, should_not_equal/2, should_be_ok/1,
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_progress.erl:10:14: can't find include lib

#

(Part 2/2)

"eunit/include/eunit.hrl"
% 10| -include_lib("eunit/include/eunit.hrl").
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_ffi.erl:3:2: function should_not_equal/2 undefined
% 3| -export([find_files/2, should_equal/2, should_not_equal/2, should_be_ok/1,
% | ^

.../build/dev/erlang/gleeunit/_gleam_artefacts/gleeunit_progress.erl:8:2: Warning: behaviour eunit_listener undefined
% 8| -behaviour(eunit_listener).
% | ^

error: Shell command failure

There was a problem when running the shell command escript.

#

====
I got the above error after first running gleam new with my project name, cd-ing into the created directory, and then running gleam run. I just downloaded the compiler from github and put it in /usr/bin, and when I simply type gleam and hit enter it seems to work with the expected uesage message. This is on ubuntu linux.

tall minnow
#

what version of gleam do you have

glacial forge
#

Whatever the latest on the github is

#

I'll check what the command outputs

#

0.30.4

glacial forge
swift scaffold
#

Erlang version might also be important

#

You could try running gleam clean first

swift scaffold
tall minnow
#

what’s your erlang version?
erl -version

glacial forge
#

12.2.1

#

ah yeah I guess that's a fairly old version lol

#

I'll report back after I update it

#

by the way having the gleam command handle, like, everything is very nice

#

version migration, project creation, dependency management, formatting, compilation

#

oh and unit tests