I built 2.2 on a Debian Bullseye PC and it is working nicely. I followed the procedure described on
Build from source
The develop directory comprises about 1.1 GB. Are there directories and files that are only associated with the build process and can be deleted? Do I only need to keep the Unix directory which holds the generated executable which is about 262 MB? Not a big deal but if the files aren't needed, I'd rather not keep them.
The executable is that big, because it contains a lot of debug information, which is not needed for regular use.
You can wipe out debug infos with the command strip librecad in the unix folder.
Then the executable is about 10MB.
If you plan to pull sources later again, you can keep everything untouched and only delete the contents of the generated folder.
There are all binary and other files created by the build process, which are not needed for execution.
This should also minimize the used space to about the half.
investing less than half an hour into Search function can save hours or days of waiting for a solution