Date
1 - 2 of 2
Cannot execute nodejs
Alessandro Tagliapietra
Hi everyone,
I've installed nodejs and node-red by using meta-oe and meta-iot-cloud, with
IMAGE_INSTALL_append = " nodejs node-red bash"
it was initially working but then I've got some pseudo aborts that fixed automatically and then I saw that:
- /usr/bin/node doesn't have the +x flag
- the file is 1.1G big (however the image is 200MB)
- trying to run it says "cannot execute binary file: Exec format error"
any idea why?
Target is core-image-minimal with machine qemuarm.
I've checked the source of the file with `oe-pkgdata-util find-path` it came from the nodejs recipe. I've also tried bitbake -c clean nodejs and nothing changed
I've installed nodejs and node-red by using meta-oe and meta-iot-cloud, with
IMAGE_INSTALL_append = " nodejs node-red bash"
it was initially working but then I've got some pseudo aborts that fixed automatically and then I saw that:
- /usr/bin/node doesn't have the +x flag
- the file is 1.1G big (however the image is 200MB)
- trying to run it says "cannot execute binary file: Exec format error"
any idea why?
Target is core-image-minimal with machine qemuarm.
I've checked the source of the file with `oe-pkgdata-util find-path` it came from the nodejs recipe. I've also tried bitbake -c clean nodejs and nothing changed
Alessandro Tagliapietra
I was able to solve it by forcing recompiling nodejs with `bitbake -f -c compile nodejs`
Not sure what happened there
--
Alessandro Tagliapietra
On Wed, Apr 14, 2021 at 11:51 AM Alessandro Tagliapietra <tagliapietra.alessandro@...> wrote:
Hi everyone,
I've installed nodejs and node-red by using meta-oe and meta-iot-cloud, with
IMAGE_INSTALL_append = " nodejs node-red bash"
it was initially working but then I've got some pseudo aborts that fixed automatically and then I saw that:
- /usr/bin/node doesn't have the +x flag
- the file is 1.1G big (however the image is 200MB)
- trying to run it says "cannot execute binary file: Exec format error"
any idea why?
Target is core-image-minimal with machine qemuarm.
I've checked the source of the file with `oe-pkgdata-util find-path` it came from the nodejs recipe. I've also tried bitbake -c clean nodejs and nothing changed