Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with installation #405

Open
Olli781 opened this issue May 17, 2024 · 3 comments
Open

Problems with installation #405

Olli781 opened this issue May 17, 2024 · 3 comments
Labels
ci CI/CD raspberry Raspberry PI issues

Comments

@Olli781
Copy link

Olli781 commented May 17, 2024

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 [email protected]' --url https://tiagohm.github.io/nebulosa --vendor 'Tiago Melo [email protected]' --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
Copy link
Owner

tiagohm commented May 17, 2024

Hi Oliver,

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

@Olli781
Copy link
Author

Olli781 commented May 17, 2024

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
Copy link
Owner

tiagohm commented May 17, 2024

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

@tiagohm tiagohm added raspberry Raspberry PI issues ci CI/CD labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci CI/CD raspberry Raspberry PI issues
Projects
None yet
Development

No branches or pull requests

2 participants