Skip to content
This repository has been archived by the owner on May 21, 2019. It is now read-only.

Installation error on Ubuntu 16.04 #1034

Closed
illright opened this issue May 20, 2017 · 14 comments
Closed

Installation error on Ubuntu 16.04 #1034

illright opened this issue May 20, 2017 · 14 comments

Comments

@illright
Copy link

I'm trying to build the project on Ubuntu 16.04 64-bit. I've cloned this repository and executed sudo npm install inside the folder.
The installation took a while and then suddenly errors started appearing. Here is the console output.
Then the npm install finished and I ran sudo npm run pack. It also errored, here is its log.

Is Ubuntu supported? As it seems from the errors, it has some trouble with the connection. However, my Internet is pretty stable, I can freely use the browser during the installation

@christianwico
Copy link
Contributor

christianwico commented May 20, 2017

@leva7 , I've had the same errors.

It's kinda weird. If you try running npm run electron, Black Screen should start up. But whenever your try to build it with npm run pack, it gives that icns2png error. (It has something to do with an Electron Builder bug, or perhaps something wrong with the Linux configuration on the part of Black Screen's devs.)

Don't know. And it's kinda inconvenient to start-up Black Screen via NPM every single time.

@christianwico
Copy link
Contributor

@leva7 , here's a quick fix if you don't mind using the Electron logo as Black Sceen's App Icon:

  • Just DELETE the build/icon.icns file from the project folder.

This will force Electron Builder to use Electron's default icon which keeps it from having to invoke the icns2png component.

@illright
Copy link
Author

@christianwico, but what about those ECONNRESET errors during npm install? I feel like that's the main cause of the problem. But I'll try your fix, maybe those errors can be ignored

@christianwico
Copy link
Contributor

ERRCONNRESET kinda suggests a problem with your network connection. I get those problems whenever I'm at work because the network is behind a proxy. But at home, I never get those issues (except when the NPM Repository is having issues of some sort, which happens ever so often from where I reside.)

@illright
Copy link
Author

@christianwico, the app did in fact start up when I ran npm run electron. Your fix also worked, allowing me to install the app. As for the network connection, maybe that's actually NPM's problem, because, as I've mentioned, my connection just fine and this problem persists on a different Ubuntu machine.

@LeoMartinDev
Copy link

Not working for me, Exit code: 127.
/home/leo/.cache/electron-builder/AppImage/AppImage-09-07-16-linux/xorriso: error while loading shared libraries: libreadline.so.6: cannot open shared object file: No such file or directory

@illright
Copy link
Author

@vshatskyi Any ideas on how to get the icon functioning on Linux?

@vlad-shatskyi
Copy link
Contributor

Fixed. If you encounter a libreadline error, there are some workarounds here: electron-userland/electron-builder#993

@illright
Copy link
Author

illright commented May 28, 2017

@vshatskyi No, the issue persists (log). Is it perhaps because you've written

"linux": {
  "icon": "icons"
}

while the icon files are named icon.*?

@vlad-shatskyi
Copy link
Contributor

The path is correct, it should be a directory name relative to build/.

@vlad-shatskyi vlad-shatskyi reopened this May 29, 2017
@illright
Copy link
Author

But there's no directory in build/. For me, there's just those three files:

  • icon.icns
  • icon.png
  • icon.ico

@vlad-shatskyi
Copy link
Contributor

You might have forgotten to pull if you don't have this directory: https://github.com/railsware/upterm/tree/master/build/icons

@illright
Copy link
Author

No, the reason why I didn't have the folder is that it's not in the latest release, as I got the source code from there

@illright
Copy link
Author

But with the folder, the icon installs just fine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants