Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Fails building on Arch Linux #182

Open
elichai opened this issue Apr 5, 2022 · 1 comment
Open

Fails building on Arch Linux #182

elichai opened this issue Apr 5, 2022 · 1 comment

Comments

@elichai
Copy link

elichai commented Apr 5, 2022

Trying to build fails with the following error:

❯ make dist
"~/.nvm/versions/node/v16.14.2/bin/yarn" install
yarn install v1.22.18
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
$ electron-builder install-app-deps
  • electron-builder  version=22.10.4
  • loaded configuration  file=~/gits/irccloud-desktop/electron-builder.json
$ yarn run snyk-protect
yarn run v1.22.18
$ snyk protect
Successfully applied Snyk patches

Done in 2.66s.
Done in 6.96s.
"~/.nvm/versions/node/v16.14.2/bin/yarn" run dist
yarn run v1.22.18
$ electron-builder
  • electron-builder  version=22.10.4 os=5.17.1-arch1-1
  • loaded configuration  file=~/gits/irccloud-desktop/electron-builder.json
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=11.2.0 appOutDir=dist/linux-unpacked
  • downloading     url=https://github.com/electron/electron/releases/download/v11.2.0/electron-v11.2.0-linux-x64.zip size=76 MB parts=8
  • downloaded      url=https://github.com/electron/electron/releases/download/v11.2.0/electron-v11.2.0-linux-x64.zip duration=12.863s
  • building        target=AppImage arch=x64 file=dist/IRCCloud-0.16.0-linux-x86_64.AppImage
  • downloading     url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z size=1.6 MB parts=1
  • downloaded      url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z duration=1.826s
  • building        target=deb arch=x64 file=dist/irccloud-desktop_0.16.0_linux_amd64.deb
  ⨯ cannot execute  cause=exit status 127
                    errorOut=~/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/lib/ruby/bin.real/ruby: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory
    
                    command=~/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86_64/fpm -s dir --force -t deb -d libgtk-3-0 -d libnotify4 -d libnss3 -d libxss1 -d libxtst6 -d xdg-utils -d libatspi2.0-0 -d libuuid1 -d libappindicator3-1 -d libsecret-1-0 --deb-compression xz --architecture amd64 --name irccloud-desktop --after-install /tmp/t-A2mexm/0-after-install --after-remove /tmp/t-A2mexm/1-after-remove --description '
     IRCCloud Desktop Client' --version 0.16.0 --package ~/gits/irccloud-desktop/dist/irccloud-desktop_0.16.0_linux_amd64.deb --maintainer 'IRCCloud Ltd. <[email protected]>' --url https://github.com/irccloud/irccloud-desktop --vendor 'IRCCloud Ltd. <[email protected]>' --license Apache-2.0 ~/gits/irccloud-desktop/dist/linux-unpacked/=/opt/IRCCloud ~/gits/irccloud-desktop/dist/.icon-set/icon_16x16.png=/usr/share/icons/hicolor/16x16/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_32.png=/usr/share/icons/hicolor/32x32/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_48x48.png=/usr/share/icons/hicolor/48x48/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_64.png=/usr/share/icons/hicolor/64x64/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_128.png=/usr/share/icons/hicolor/128x128/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_256.png=/usr/share/icons/hicolor/256x256/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_512.png=/usr/share/icons/hicolor/512x512/apps/irccloud.png ~/gits/irccloud-desktop/dist/.icon-set/icon_1024.png=/usr/share/icons/hicolor/1024x1024/apps/irccloud.png /tmp/t-A2mexm/2-IRCCloud.desktop=/usr/share/applications/irccloud.desktop
                    workingDir=
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
make: *** [Makefile:7: dist] Error 1

it seems like the ruby version is old and uses the deprecated libcrypt.so.1.

@ghost
Copy link

ghost commented Nov 17, 2022

Seems it miss the libcrypt package. Take a look if You have it installed

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

No branches or pull requests

1 participant