You are not logged in.

#1 2023-10-03 14:30:04

sbilgil
Member
Registered: 2023-10-03
Posts: 1

how to install node v14 on arch docker base

I need nodejs for my app. And it is restricted to node14 because of meteor version. And i couldnt found an arch distro with node14. I tried to install it with below commands but it gots error and i couldnt figured out. How can i use node14 with arch dokcer images.

my code in dockerfile is :

WORKDIR /app

# Clone the Node.js source code from the official repository
RUN git clone https://github.com/nodejs/node.git

# Change to the Node.js source code directory
WORKDIR /app/node
RUN git checkout v16.4.0
# Build and install Node.js from source
RUN ./configure
RUN make
RUN make install

# Cleanup
RUN rm -rf /app/node

my long error ends with:

477.1 ../deps/v8/src/base/macros.h:373:47: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
477.1 rm 6c7bbe92ac8ea5f2918c7b11e3843a9f1edb602c.intermediate
477.1 make[1]: *** [tools/v8_gypfiles/v8_libbase.target.mk:152: /app/node/out/Release/obj.target/v8_libbase/deps/v8/src/base/cpu.o] Error 1
477.1 make: *** [Makefile:101: node] Error 2
------
failed to solve: process "/bin/sh -c make" did not complete successfully: exit c

Offline

#2 2023-10-03 14:53:31

loqs
Member
Registered: 2014-03-06
Posts: 18,929

Re: how to install node v14 on arch docker base

You could try using the EOL nodejs-lts-fermium PKGBUILD.  I have no idea if it still builds.
Is there no way to use meteor with a version of nodejs that is not EOL?  Note Arch is also in the process of removing nodejs-lts-gallium https://bugs.archlinux.org/task/79684.

Last edited by loqs (2023-10-03 15:00:42)

Offline

#3 2023-10-03 15:47:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,104

Re: how to install node v14 on arch docker base

477.1 ../deps/v8/src/base/macros.h:373:47: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?

That error is probably because gcc 13.x made changes in how C++ header files are handled.
see https://gcc.gnu.org/gcc-13/porting_to.html for details how to work around that.

There may be other compile errors that are harder to fix.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB