如何在 Ubuntu 20.04 LTS 上安裝 Ganache UI?
嘗試下載 amd64 Debian 版本:https ://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage
wget https://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage
chmod a+x ganache-2.5.4-linux-x86_64.AppImage
./ganache-2.5.4-linux-x86_64.AppImage
它不會初始化。我收到一條錯誤消息:
/tmp/.mount_ganach7FhmyY/Ganache: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory
試過
sudo apt-get install libgdk_pixbuf
了,linux找不到包嘗試通過下載
wget
並初始化./
但沒有任何效果還嘗試下載https://github.com/trufflesuite/ganache-ui的最新 repo
跑了
nvm use 12.13.1
npm install
npm run dev
只是為了得到一條錯誤消息,說明
Electron-webpack
失去或其他東西。更新:嘗試“yarn install”、“yarn start”;收到此錯誤消息
/home/ubuntu/ganache-ui/node_modules/electron/dist/electron: error while loading shared libraries: libgdk_pixbuf-2.0.so.0: cannot open shared object file: No such file or directory
嘗試執行以下命令來啟動並執行 ganache:
$ apt-get update && apt-get install -y wget libgtk-3-dev libfuse-dev libgtkextra-dev libgconf2-dev libnss3 libasound2 libxtst-dev libxss1 libx11-6 libx11-xcb-dev $ wget https://github.com/trufflesuite/ganache-ui/releases/download/v2.5.4/ganache-2.5.4-linux-x86_64.AppImage $ chmod +x ganache-2.5.4-linux-x86_64.AppImage $ ./ganache-2.5.4-linux-x86_64.AppImage
如果您收到此錯誤
Gtk-WARNING **: 22:55:49.527: cannot open display:
將以下內容添加到 /etc/sudoers
Defaults env_keep=DISPLAY
比重新啟動你的終端,你應該能夠從你的普通使用者使用它,不要使用 su 以 root 使用者啟動它。從正常主帳戶啟動它。