• Uncategorized

About linux : Git-cannot-allocate-enough-memory-to-install-Homebrew

Question Detail

I am trying to install Homebrew on Linux on a cluster. But I am constantly getting the following error messages:

fatal: packfile .git/objects/pack/pack-9d2d97f367d3ebfa65a3b708b2d87333a8eb2bf0.pack cannot be mapped: Cannot allocate memory

error: https://github.com/Homebrew/homebrew-core did not send all necessary objects

Failed during: git fetch --force origin refs/heads/master:refs/remotes/origin/master

I then created a .git repository using the git init command on the .linuxbrew folder.

Can you please tell me how can I solve this problem?

Thank you.

Question Answer

From the message it looks like git is trying to memory map the entire given file and running out of physical memory. You might want to add more virtual memory to your sistem. It will be slower but there is a chance it will proceed forward.


You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.