Crystal: cannot alocate memory ,,

Created on 14 Apr 2017  路  12Comments  路  Source: crystal-lang/crystal

hi, my os is Ubuntu 16.04 (Xenial), and i just installing Crystal on my computer, and i try to use kemalcr (crystal web framework), then,, i got some error
say : Cannot Alocate Memory
https://s27.postimg.org/s5vdlu56b/kemalb.png

Most helpful comment

FWIW if you like Atom, you might like VS Code, which is similar but IIRC a bit more lightweight.

Also cough shameless plug http://howl.io cough

All 12 comments

How many ram do you have on your computer?
Try building without the release option, it might take less memory.

You can check the available memory with free -h

hmm, just 283MB,,, but can i run in 5GB free memory (on my desktop) ?

just 283MB...

This is too low I think, you'll get into trouble (and slow-ness) soon if you don't add more ram.

but can i run in 5GB free memory (on my desktop) ?

Is it a question? What do you mean?

I would say at least 2gb of available memory (please see http://www.linuxatemyram.com, you're reading free wrong) is required to compile most crystal programs. Maybe close a few applications of you have 5gb of total memory.

To expand on what @RX14 said, in particular, try closing any Chromium-/Electron-based applications (e.g. Chrome/Chromium, Atom, VS Code, Slack, Spotify, etc.).

ok kirby,

"Is it a question? What do you mean?" i askin that question before start working in desktop :D, if you say yes, then i'll start, and RX14 just say yes :D

after closing atom, my free memori is 400MB > ( < 500MB ), and its work to run crystal compiler, thanks kirby

FWIW if you like Atom, you might like VS Code, which is similar but IIRC a bit more lightweight.

Also cough shameless plug http://howl.io cough

i just change to sublime text

if you build without "--release" then it doesn't take as much RAM to compile, FWIW.

Closing, seems the issue was solved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asterite picture asterite  路  70Comments

asterite picture asterite  路  139Comments

HCLarsen picture HCLarsen  路  162Comments

benoist picture benoist  路  59Comments

rdp picture rdp  路  112Comments