zoglauer / megalib

MEGAlib - the Medium-Energy Gamma-ray Astronomy library
http://megalibtoolkit.com
Other
41 stars 32 forks source link

Too many open files during root installation. #50

Closed glicka closed 5 years ago

glicka commented 5 years ago

Running the installation failed with the error:

error: unable to open output file './allDict_rdict.pch': 'Too many open
files'
Error in <WriteAST>: Couldn't open output stream to './allDict_rdict.pch'!

I was able to increase the allowable number of open files by running:

sudo sh -c "ulimit -n 65535 && exec su $LOGNAME"

This must be done in the same terminal that you are using to install MEGAlib.