# Installation error on Linux

**URL:** https://community.mrtrix.org/t/installation-error-on-linux/1442
**Category:** Uncategorized
**Created:** [January 31, 2018, 10:36am UTC](https://community.mrtrix.org/t/installation-error-on-linux/1442 "2018-01-31T10:36:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![behnam](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@behnam](https://community.mrtrix.org/u/behnam)
#### Post date: [January 31, 2018, 10:36am UTC](https://community.mrtrix.org/t/installation-error-on-linux/1442/1 "2018-01-31T10:36:28Z")

</div>

Hi everyone,

I am going to install MRtrix on Linux. But, this does not compile on my systems due to following error which is related to memory error:  
I am grateful if you could give me any suggestion in order to solve this problem and install it successfully.

Best,  
Behnam

```auto
_ Looking for compiler [g++]: g++ (Debian 4.9.2-10) 4.9.2_
_ Checking for C++11 compliance: ok_
_ Checking shared library generation: ok_
_ Detecting pointer size: 64 bit_
_ Detecting byte order: little-endian_
_ Checking for variable-length array support: ok_
_ Checking for non-POD variable-length array support: ok_
_ Checking for ::max_align_t: 16 bytes_
_ Checking for std::max_align_t: 16 bytes_
_ Checking for Eigen3 library: 3.2.2_
_ Checking for zlib compression library: 1.2.8_
_ Checking for "JSON for Modern C++" requirements: ok_
_ Checking for TIFF library: LIBTIFF, Version 4.0.3_
_ Checking for FFTW library: fftw-3.3.4-sse2-avx_
_ Checking for Qt moc: moc (version 4.8.6)_
_ Checking for Qt qmake: qmake (version 4.8.6)_
_ Checking for Qt rcc: rcc (version 4.8.6)_
_ Checking for Qt: 4.8.6_

_ writing configuration to file './config': ok_

_ # ./build_
_ ( 1/498) [CC] tmp/cmd/labelconvert.o_
_ ( 3/498) [MOC] tmp/src/gui/opengl/lighting_moc.cpp_
_ ( 4/498) [CC] tmp/cmd/mrcalc.o_
_ ( 6/498) [CC] tmp/src/gui/projection.o_
_ ( 7/498) [CC] tmp/cmd/mrdump.o_
_ ( 5/498) [CC] tmp/core/version.o_
_ ( 8/498) [CC] tmp/core/file/dicom/tree.o_
_ ( 2/498) [CC] tmp/src/dwi/directions/file.o_
_ ( 9/498) [CC] tmp/src/registration/transform/rigid.o_
_ ( 10/498) [MOC] tmp/src/gui/shview/render_window_moc.cpp_
_ ( 11/498) [CC] tmp/src/dwi/tractography/resampling/upsampler.o_
_ ( 12/498) [CC] tmp/cmd/dirstat.o_
_ ( 13/498) [CC] tmp/src/gui/shapes/cylinder.o_
_ ( 14/498) [CC] tmp/cmd/mrconvert.o_
_ ERROR: ( 9/498) [CC] tmp/src/registration/transform/rigid.o_
_ g++ -c -std=c++11 -pthread -fPIC -DMRTRIX_WORD64 -DMRTRIX_TIFF_SUPPORT -isystem /usr/include/x86_64-linux-gnu -DEIGEN_FFTW_DEFAULT -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /usr/include/eigen3 -DEIGEN_DONT_PARALLELIZE src/registration/transform/rigid.cpp -o tmp/src/registration/transform/rigid.o_
_ failed with output_
_ cc1plus: out of memory allocating 4064 bytes after a total of 35667968 bytes_
_ ( 15/498) [CC] tmp/src/dwi/tractography/mapping/mapper.o_
_ ERROR: ( 7/498) [CC] tmp/cmd/mrdump.o_
_ g++ -c -std=c++11 -pthread -fPIC -DMRTRIX_WORD64 -DMRTRIX_TIFF_SUPPORT -isystem /usr/include/x86_64-linux-gnu -DEIGEN_FFTW_DEFAULT -Wall -O3 -DNDEBUG -Isrc -I./core -Icmd -isystem /usr/include/eigen3 -DEIGEN_DONT_PARALLELIZE cmd/mrdump.cpp -o tmp/cmd/mrdump.o_
_ failed with output_
_ virtual memory exhausted: Cannot allocate memory_

```

---

<div class="post-metadata">

### Author: ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)
#### Post date: [February 1, 2018, 11:46pm UTC](https://community.mrtrix.org/t/installation-error-on-linux/1442/2 "2018-02-01T23:46:25Z")

</div>

Hi Benham,

Yep, that looks like a typical out-of-memory issue, as described in the documentation [here](http://mrtrix.readthedocs.io/en/latest/troubleshooting/compiler_error_during_build.html). Give the fix suggested in that page a try, and let us know if it works.

Rob

---

<div class="post-metadata">

### Author: ![behnam](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/b/b4bc9f/32.png) [@behnam](https://community.mrtrix.org/u/behnam)
#### Post date: [February 15, 2018, 3:25pm UTC](https://community.mrtrix.org/t/installation-error-on-linux/1442/3 "2018-02-15T15:25:06Z")

</div>

Hi Rob,

Thank you for your suggestion. Now it works successfully.

Best  
Behnam
