To Update
sudo apt-get update
sudo apt-get upgrade
You'll need Git
sudo apt-get install git
To clone the repository
cd /home
git clone https://github.com/metaeducation/ren-c.git
which clones the repo into the /home/ren-c/
directory
To compile for Linux
Install Make
sudo apt-get install make
Get r3-make
cd /home/ren-c/make
wget https://s3.amazonaws.com/metaeducation/r3-make/r3-make
sudo chmod +x r3-make
And compile
cd /home/ren-c/make
make -f makefile.boot
and this should compile with no errors. You should end up with a r3
which is already executable. Just type ./r3
To Install a cross compiler for Windows
Instructions on SO
sudo apt-get install mingw-w64
Then you can create 32-bit Windows executable with:
i686-w64-mingw32-gcc -o main32.exe main.c
And 64-bit Windows executable with:
x86_64-w64-mingw32-gcc -o main64.exe main.c
Note that these Windows executables will not work inside Linux Subsystem, only outside of it.
Need to Fix something?
cd /home/ren-c/src
grep -r thefunctionIwanttofix
Disk space left?
To see if you're running out of disk space
df
PS: need the commands for compiling ren-c here as well