运行Ubuntu 22.04上的Elixir Desktop示例应用程序直至成功

从未安装任何程序的Ubuntu 22.04系统开始,执行以下命令使Elixir Desktop的示例应用程序能够运行:

我在Hyper-V的虚拟服务器上进行了。

sudo apt -y install git
sudo apt -y install curl
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.10.2
echo ". $HOME/.asdf/asdf.sh" >> ~/.bashrc

重新登录

asdf plugin add erlang
asdf plugin add elixir
sudo apt-get -y install build-essential autoconf m4 libncurses5-dev libwxgtk3.0-gtk3-dev libwxgtk-webview3.0-gtk3-dev libgl1-mesa-dev libglu1-mesa-dev libpng-dev libssh-dev unixodbc-dev xsltproc fop libxml2-utils libncurses-dev openjdk-11-jdk
asdf install erlang 25.1.1
asdf install elixir 1.14.0-otp-25
asdf global erlang 25.1.1
asdf global elixir 1.14.0-otp-25
asdf plugin add nodejs
asdf install nodejs 19.0.0
asdf global nodejs 19.0.0
git clone https://github.com/elixir-desktop/desktop-example-app.git
cd desktop-example-app
cd assets/
npm install
cd ..
mix deps.get
mix assets.deploy
./run
image.png

Node.js在Elixir Desktop中并非必需,但由于示例应用程序需要,因此安装了它。

广告
将在 10 秒后关闭
bannerAds