如何在 ubuntu 18.04 上安装 figma

如何在 ubuntu 18.04 上安装 figma

我没有机会在我的 ubuntu 18.04 上安装 figma

安装 figma 后出现错误:

/snap/figma-linux/2/figma-linux: error while loading shared libraries:
 libpng16.so.16: cannot open shared object file: No such file or directory

答案1

我也遇到了上述错误,但是我确实设法在 ubuntu 19.04 上使用

下载二进制文件

https://github.com/ChugunovRoman/figma-linux/releases

在 Ubuntu 上选择一个名为

figma-linux_0.5.1_amd64.deb

谁有直接链接https://github.com/ChugunovRoman/figma-linux/releases/download/v0.5.1/figma-linux_0.5.1_amd64.deb

下载后安装使用

sudo dpkg -i figma-linux_0.5.1_amd64.deb

在 Ubuntu 19.04 上我得到了这个

Selecting previously unselected package figma-linux.
(Reading database ... 253481 files and directories currently installed.)
Preparing to unpack figma-linux_0.5.1_amd64.deb ...
Unpacking figma-linux (0.5.1) ...
dpkg: dependency problems prevent configuration of figma-linux:
 figma-linux depends on libappindicator1; however:
  Package libappindicator1 is not installed.

dpkg: error processing package figma-linux (--install):
 dependency problems - leaving unconfigured
Processing triggers for gnome-menus (3.32.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-4ubuntu1) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
 figma-linux

所以现在的问题

sudo apt-get --fix-broken install -y 
sudo apt-get install libappindicator1   libdbusmenu-gtk4  
sudo dpkg -i figma-linux_0.5.1_amd64.deb

然后在第一次启动时你会收到此错误(请参阅解决方法)

scott@berghia ~/Downloads $ figma-linux   
A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/home/scott/config/figma-linux/Settings'
    at Object.openSync (fs.js:436:3)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:160:31)
    at Object.writeFileSync (fs.js:1168:35)
    at Object.writeFileSync (/opt/figma-linux/resources/app.asar/node_modules/jsonfile/index.js:117:13)
    at Settings._ensureSettings (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:153:18)
    at Settings._readSettings (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:192:10)
    at Settings._getValueAtKeyPath (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:281:22)
    at Settings.get (/opt/figma-linux/resources/app.asar/node_modules/electron-settings/lib/settings.js:404:17)
    at Object.<anonymous> (/opt/figma-linux/resources/app.asar/main/main.js:1:18900)
    at o (/opt/figma-linux/resources/app.asar/main/main.js:1:279)

所以我使用以下方法创建了缺失的配置文件

mkdir -p ~/config/figma-linux
touch ~/config/figma-linux/Settings

最后它启动正常了

figma-linux

玩得开心

相关内容