tiagohm / nebulosa

The complete integrated solution for all of your astronomical imaging needs.
https://tiagohm.github.io/nebulosa/
MIT License
4 stars 2 forks source link

Problems with installation #405

Open Olli781 opened 4 months ago

Olli781 commented 4 months ago

Hello everyone, when installing under UBUNTU 24.04, the following error message appears when running the script:

Build at: 2024-05-17T09:07:17.533Z - Hash: 6e9b3560450bd860 - Time: 99655ms

Warning: /home/astro1/Downloads/nebulosa-main/desktop/node_modules/@angular/core/fesm2022/core.mjs depends on 'rxjs'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/astro1/Downloads/nebulosa-main/desktop/node_modules/@angular/core/fesm2022/core.mjs depends on 'rxjs/operators'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/astro1/Downloads/nebulosa-main/desktop/src/app/atlas/atlas.component.ts depends on 'moment'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/astro1/Downloads/nebulosa-main/desktop/src/app/image/image.component.ts depends on 'interactjs'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/astro1/Downloads/nebulosa-main/desktop/src/app/image/image.component.ts depends on 'panzoom'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

Warning: /home/astro1/Downloads/nebulosa-main/desktop/src/shared/components/map/map.component.ts depends on 'leaflet'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

• electron-builder version=24.13.3 os=6.8.0-1004-raspi • loaded configuration file=/home/astro1/Downloads/nebulosa-main/desktop/electron-builder.json • writing effective config file=release/builder-effective-config.yaml • packaging platform=linux arch=arm64 electron=30.0.1 appOutDir=release/linux-arm64-unpacked • building target=AppImage arch=arm64 file=release/nebulosa-0.1.0-arm64.AppImage • building target=deb arch=arm64 file=release/nebulosa_0.1.0_arm64.deb ⨯ cannot execute cause=exit status 1 errorOut=/home/astro1/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/lib/ruby/bin/ruby: Zeile 6: /home/astro1/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/lib/ruby/bin.real/ruby: Kann die Binärdatei nicht ausführen: Fehler im Format der Programmdatei /home/astro1/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/lib/ruby/bin/ruby: Zeile 6: /home/astro1/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/lib/ruby/bin.real/ruby: Erfolg

command=/home/astro1/.cache/electron-builder/fpm/fpm-1.9.3-2.3.1-linux-x86/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 arm64 --after-install /tmp/t-As69GW/2-after-install --after-remove /tmp/t-As69GW/1-after-remove --description ' The complete integrated solution for all of your astronomical imaging needs.' --version 0.1.0 --package /home/astro1/Downloads/nebulosa-main/desktop/release/nebulosa_0.1.0_arm64.deb --name nebulosa --maintainer 'Tiago Melo tiago.henrique.cco@gmail.com' --url https://tiagohm.github.io/nebulosa --vendor 'Tiago Melo tiago.henrique.cco@gmail.com' --deb-priority optional --license MIT /home/astro1/Downloads/nebulosa-main/desktop/release/linux-arm64-unpacked/=/opt/nebulosa /home/astro1/Downloads/nebulosa-main/desktop/dist/assets/icons/nebulosa-256.png=/usr/share/icons/hicolor/256x256/apps/nebulosa.png /tmp/t-As69GW/4-nebulosa.desktop=/usr/share/applications/nebulosa.desktop workingDir=

Does anyone have an idea how I can fix this error? Thank you very much and best regards Oliver

tiagohm commented 4 months ago

Hi Oliver,

Could you check out this link https://www.beekeeperstudio.io/blog/electron-apps-for-arm-and-raspberry-pi e the related issue https://github.com/electron-userland/electron-builder/issues/3901#issuecomment-499121694 and see if it solves the error?

Olli781 commented 4 months ago

Thank you very much for your help.

Unfortunately, there are new error messages: sudo apt install ruby ​​ruby-devsudo gem install fpm Reading package lists… Done Building dependency tree… Done Status information is being read in… Done E: Package ruby-devsudo cannot be found. E: Package install cannot be found. E: Package fpm cannot be found.

Is it perhaps easier to switch to a different Linux version?

tiagohm commented 4 months ago

Try running these commands:

sudo apt install ruby ruby-dev
sudo gem install fpm

Inside desktop folder, run this command to build .deb package:

USE_SYSTEM_FPM=true npm run electron:build:deb

I was able to build successfully on Raspberry Ubuntu 22.04