Installing element chat

I am trying to install element chat on my system. I run makepkg -s, and it errors out. Here is the relevant error:

$ ts-node scripts/copy-res.ts
  • electron-builder  version=24.0.0 os=6.2.10-arch1-1
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • executing @electron/rebuild  appDir=/home/<user>/Downloads/element-desktop-git/src/element-desktop arch=x64
  • loaded configuration  file=package.json ("build" field)
  • packaging       platform=linux arch=x64 electron=24.0.0 appOutDir=dist/linux-unpacked
  • building        target=tar.gz arch=x64 file=dist/element-desktop-1.11.29.tar.gz
  • building        target=deb arch=x64 file=dist/element-desktop_1.11.29_amd64.deb
  • adding autoupdate files for: deb. (Beta feature)  resourceDir=/home/<user>/Downloads/element-desktop-git/src/element-desktop/dist/linux-unpacked/resources
  ⨯ cannot execute  cause=exit status 127
                    errorOut=/home/<user>/.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=/home/<user>/.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 libsecret-1-0 --deb-recommends libappindicator3-1 --deb-compression xz --architecture amd64 --after-install /tmp/t-otYmyG/0-after-install --after-remove /tmp/t-otYmyG/1-after-remove --description '
     A feature-rich client for Matrix.org' --version 1.11.29 --package /home/<user>/Downloads/element-desktop-git/src/element-desktop/dist/element-desktop_1.11.29_amd64.deb --name element-desktop --maintainer support@element.io --url 'https://github.com/vector-im/element-desktop#readme' --vendor support@element.io --deb-priority optional --license Apache-2.0 /home/<user>/Downloads/element-desktop-git/src/element-desktop/dist/linux-unpacked/=/opt/Element /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/16x16.png=/usr/share/icons/hicolor/16x16/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/24x24.png=/usr/share/icons/hicolor/24x24/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/48x48.png=/usr/share/icons/hicolor/48x48/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/64x64.png=/usr/share/icons/hicolor/64x64/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/96x96.png=/usr/share/icons/hicolor/96x96/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/128x128.png=/usr/share/icons/hicolor/128x128/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/256x256.png=/usr/share/icons/hicolor/256x256/apps/element-desktop.png /home/<user>/Downloads/element-desktop-git/src/element-desktop/build/icons/512x512.png=/usr/share/icons/hicolor/512x512/apps/element-desktop.png /tmp/t-otYmyG/3-Element.desktop=/usr/share/applications/element-desktop.desktop
                    workingDir=
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

Here’s how I attempted to fix it, which doesn’t seem to have helped: https://stackoverflow.com/questions/480764/linux-error-while-loading-shared-libraries-cannot-open-shared-object-file-no-s

It is in the repos. You can just install it:

sudo pacman -Syu element-desktop
3 Likes

Since I did not want to install electron as a dependency of element I came to the conclusion that I use element web in firefox with multi-account containers.
I have talked about it here before

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.