首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Ubuntu20.04LTS上安装Ganache UI?

如何在Ubuntu20.04LTS上安装Ganache UI?
EN

Ethereum用户
提问于 2021-09-13 12:11:36
回答 1查看 4.3K关注 0票数 0

尝试下载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找不到包

所以我找到了这个:https://packages.debian.org/cgi-bin/search_contents.pl?word=libgdk_pixbuf-2.0.so.0&searchmode=searchfiles&case=insensitive&version=unstable&arch=i386

试着通过wget下载并用./初始化,但是没有什么效果

还尝试下载最新的https://github.com/trufflesuite/ganache-ui回购版

ran nvm use 12.13.1

npm install

npm run dev

只会得到一条错误消息,说明Electron-webpack丢失了什么。

更新:试过“纱线安装”、“纱线启动”;收到此错误消息。

/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

EN

回答 1

Ethereum用户

发布于 2022-01-08 00:27:06

如果您得到了这个错误

代码语言:javascript
复制
    Gtk-WARNING **: 22:55:49.527: cannot open display:

在/etc/sudoers中添加以下内容

代码语言:javascript
复制
    Defaults env_keep=DISPLAY

而不是重新启动您的终端,您应该能够使用它从您的正常用户,不要启动它与根用户使用su。从普通的主帐户启动它。

票数 0
EN
页面原文内容由Ethereum提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://ethereum.stackexchange.com/questions/109847

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档