Skip to content

Commit c2f034b

Browse files
committed
Learn about installing on Ubuntu
Learn about installing starting from the scenario from #5
1 parent 8b79e7e commit c2f034b

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
# 2021-06-16 Install elm-fs on Ubuntu
2+
3+
## Motivation
4+
5+
From https://github.com/elm-fullstack/elm-fullstack/issues/5
6+
7+
> Hi dear,
8+
>
9+
> I'm trying to install elm-fs for running a project example,
10+
> but without success..
11+
>
12+
> my machine is: Ubuntu 20.10, 64-bit
13+
>
14+
> thanks in advance
15+
16+
## How Can We Test?
17+
18+
Let's see how we can reproduce the reported problem.
19+
20+
```PS
21+
docker run --name=ubuntu -t -i ubuntu:20.10 bash
22+
23+
apt-get update
24+
apt-get install -y wget
25+
apt-get install -y unzip
26+
27+
wget https://github.com/elm-fullstack/elm-fullstack/releases/download/v2021-06-05/elm-fullstack-bin-6d96fca86dc807208e923caffb94a449d6f4b22d-linux-x64.zip
28+
29+
unzip elm-fullstack-bin-6d96fca86dc807208e923caffb94a449d6f4b22d-linux-x64.zip
30+
31+
chmod a+x elm-fs
32+
```
33+
34+
Then running elm-fs results in an error:
35+
36+
```PS
37+
root@5d520e80c116:/# ./elm-fs
38+
Process terminated. Couldn't find a valid ICU package installed on the system. Set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support.
39+
at System.Environment.FailFast(System.String)
40+
at System.Globalization.GlobalizationMode.GetGlobalizationInvariantMode()
41+
at System.Globalization.GlobalizationMode..cctor()
42+
at System.Globalization.CultureData.CreateCultureWithInvariantData()
43+
at System.Globalization.CultureData.get_Invariant()
44+
at System.Globalization.CultureInfo..cctor()
45+
at System.StringComparer..cctor()
46+
at System.StringComparer.get_OrdinalIgnoreCase()
47+
at McMaster.Extensions.CommandLineUtils.CommandLineApplication..ctor(McMaster.Extensions.CommandLineUtils.CommandLineApplication, McMaster.Extensions.CommandLineUtils.HelpText.IHelpTextGenerator, McMaster.Extensions.CommandLineUtils.Abstractions.CommandLineContext)
48+
at McMaster.Extensions.CommandLineUtils.CommandLineApplication..ctor()
49+
at elm_fullstack.Program.Main(System.String[])
50+
Aborted
51+
```
52+
53+
Searching on this problem reveals:
54+
55+
+ https://github.com/dotnet/core/issues/5019
56+
+ https://docs.microsoft.com/en-gb/dotnet/core/install/linux
57+
+ https://docs.microsoft.com/en-gb/dotnet/core/install/linux-ubuntu
58+
59+
Use the commands from https://docs.microsoft.com/en-gb/dotnet/core/install/linux-ubuntu to work around the error shown above:
60+
61+
```PS
62+
wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
63+
dpkg -i packages-microsoft-prod.deb
64+
65+
apt-get update; \
66+
apt-get install -y apt-transport-https && \
67+
apt-get update && \
68+
apt-get install -y aspnetcore-runtime-3.1
69+
```
70+
71+
After running these commands, `./elm-fs` ran successfully: It displayed the default help text.
72+
73+
However, it seemed that running the `install` command did not achieve the desired effect:
74+
75+
```PS
76+
root@5d520e80c116:/# ./elm-fs install
77+
I added the path '/' to the 'PATH' environment variable for the current user account. You will be able to use the 'elm-fs' command in newer instances of the Command Prompt.
78+
root@5d520e80c116:/# echo $PATH
79+
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
80+
```
81+
82+
At the moment, I don't see a use case for depending on that libicu. Maybe removing that dependency is better for our application.

0 commit comments

Comments
 (0)