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

Unable to build lzma-native in Multipass LTS #136

Open
decolon opened this issue Nov 3, 2022 · 0 comments
Open

Unable to build lzma-native in Multipass LTS #136

decolon opened this issue Nov 3, 2022 · 0 comments

Comments

@decolon
Copy link

decolon commented Nov 3, 2022

I am trying to build an Electron app in an Ubuntu 22.04 Multipass VM. I am using the following commands to set up the VM and build a sample app

multipass launch lts --name almatech --cpus 4 --disk 10G --mem 4G
multipass exec almatech -- sudo apt update
multipass exec almatech -- sudo snap install node --classic
multipass exec almatech -- npm init electron-app@latest /my-app

I am running
Screenshot 2022-11-03 at 12 28 10 PM
on a M2 Mac Air

When the electron command executes I get this error

npm ERR! code 1
npm ERR! path /home/ubuntu/.npm/_npx/35c48adf706267bc/node_modules/lzma-native
npm ERR! command failed
npm ERR! command sh -c -- node-gyp-build
npm ERR! A complete log of this run can be found in:
npm ERR! /home/ubuntu/.npm/_logs/2022-11-03T19_29_08_357Z-debug-0.log

My node version is
Screenshot 2022-11-03 at 12 30 07 PM

NPM version is
Screenshot 2022-11-03 at 12 30 15 PM

When I try just installing lzma-native, I get a very similar error, so I assume I can not build electron due to an issue with lzma-native
Screenshot 2022-11-03 at 12 31 06 PM

Let me know what you think, and if there is any other info you need from me.

@decolon decolon changed the title Unable to build lzma-native in Multipass Jammy Unable to build lzma-native in Multipass LTS Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant