Installation error: Not enough memory on Ubuntu 22.04 with 16 GB of RAM

97 views
Skip to first unread message

krise

unread,
Aug 28, 2023, 3:57:33 AM8/28/23
to torch7
Hi,
When I try to install as described on the getting-started section of the homepage, I get this error when I try to run ./install.sh :

-- Generating done
-- Build files have been written to: /home/myuser/torch/pkg/torch/build
[  2%] Building C object lib/luaT/CMakeFiles/luaT.dir/luaT.c.o
[  5%] Building C object lib/TH/CMakeFiles/TH.dir/THHalf.c.o
[ 10%] Building C object lib/TH/CMakeFiles/TH.dir/THGeneral.c.o
[ 10%] Building C object lib/TH/CMakeFiles/TH.dir/THAllocator.c.o
[ 12%] Building C object lib/TH/CMakeFiles/TH.dir/THLogAdd.c.o
[ 15%] Building C object lib/TH/CMakeFiles/TH.dir/THSize.c.o
[ 17%] Building C object lib/TH/CMakeFiles/TH.dir/THStorage.c.o
[ 23%] Building C object lib/TH/CMakeFiles/TH.dir/THFile.c.o
[ 23%] Building C object lib/TH/CMakeFiles/TH.dir/THBlas.c.o
[ 25%] Building C object lib/TH/CMakeFiles/TH.dir/THLapack.c.o
[ 28%] Building C object lib/TH/CMakeFiles/TH.dir/THTensor.c.o
[ 30%] Building C object lib/TH/CMakeFiles/TH.dir/THRandom.c.o
[ 33%] Building C object lib/TH/CMakeFiles/TH.dir/THDiskFile.c.o
[ 35%] Building C object lib/TH/CMakeFiles/TH.dir/THAtomic.c.o
[ 38%] Building C object lib/TH/CMakeFiles/TH.dir/THMemoryFile.c.o
[ 41%] Building C object lib/TH/CMakeFiles/TH.dir/THVector.c.o
[ 43%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve.c.o
[ 46%] Building C object lib/TH/CMakeFiles/TH.dir/vector/AVX.c.o
[ 48%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_sse.c.o
[ 53%] Building C object lib/TH/CMakeFiles/TH.dir/vector/AVX2.c.o
[ 53%] Building C object lib/TH/CMakeFiles/TH.dir/generic/simd/convolve5x5_avx.c.o
[ 56%] Linking C shared library libluaT.so
[ 56%] Built target luaT
[ 58%] Linking C shared library libTH.so
[ 58%] Built target TH
[ 61%] Generating random.c
[ 64%] Generating TensorMath.c
/home/myuser/torch/install/bin/luajit: not enough memory
make[2]: *** [CMakeFiles/torch.dir/build.make:74: TensorMath.c] Error 1
make[1]: *** [CMakeFiles/Makefile2:133: CMakeFiles/torch.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Error: Build error: Failed building.


I have Ubuntu 22.04.3 LTS with 16 GB of RAM, any ideas how to fix this?
Reply all
Reply to author
Forward
0 new messages