sudo -i # Start by installing Node 20: sudo apt-get install python3 g++ make python3-pip gcc bison curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n bash n 20 # Node 20 is now at /usr/local/bin/node, but glibc 2.28 is missing: # node: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node) # /usr/local/bin/node: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/bin/node) # Build and install glibc 2.28: apt install -y gawk cd ~ wget -c https://ftp.gnu.org/gnu/glibc/glibc-2.28.tar.gz tar -zxf glibc-2.28.tar.gz cd glibc-2.28 pwd mkdir glibc-build cd glibc-build ../configure --prefix=/opt/glibc-2.28 make -j 4 # Use all 4 Jetson Nano cores for much faster building make install cd .. rm -fr glibc-2.28 glibc-2.28.tar.gz # Patch the installed Node 20 to work with /opt/glibc-2.28 instead: apt install -y patchelf patchelf --set-interpreter /opt/glibc-2.28/lib/ld-linux-x86-64.so.2 --set-rpath /opt/glibc-2.28/lib/:/lib/x86_64-linux-gnu/:/usr/lib/x86_64-linux-gnu/ /usr/local/bin/node # Et voilà: node --version v20.9.0
Referensi : https://github.com/nodesource/distributions/issues/1392#issuecomment-1815887430
Tidak ada komentar:
Posting Komentar