Setting up a Radian development environment
Radian depends on LLVM 3.0 and libffi 3.0.9.
Mac OS X
You will need to have installed Xcode and Git.
Open Terminal.app, then download and install LLVM 3.0 by entering these commands:
cd
curl -O http://www.llvm.org/releases/3.0/llvm-3.0.tar.gz
tar xfz llvm-3.0.tgz
cd llvm-3.0.src
./configure --enable-targets=host-only --prefix=/usr/lib/llvm-3.0
make
sudo make install
Go back to the home directory, then download and install libffi 3.0.9:
cd
curl -O ftp://sourceware.org/pub/libffi/libffi-3.0.9.tar.gz
tar xfz libffi-3.0.9.tar.gz
cd libffi-3.0.9
./configure --prefix=/usr/lib/libffi-3.0.9
make
sudo make install
Go back to the home directory, then download your own local copy of the Radian source code archive:
cd
git clone http://www.radian-lang.org/git/radian.git
Close the Terminal. Inside radian/macosx, open “radian.xcodeproj”. Select the “radian” target and build. This will compile both the Radian compiler, a command-line utility called “radian”, and the runtime support library, “libstdradian.a”; the files will appear in the project directory.
Linux
You will need to have installed git and the gcc build-essentials. On Ubuntu and other Debian-related systems, open a terminal and use ‘apt’:
sudo apt-get install git
sudo apt-get install build-essentialGo to your home directory or some other suitable place, then download and install LLVM 3.0:
wget http://www.llvm.org/releases/3.0/llvm-3.0.tar.gz
tar xfz llvm-3.0.tgz
cd llvm-3.0.src
./configure --enable-targets=host-only --prefix=/usr/lib/llvm-3.0
make
sudo make install
Go back to the home directory, then download and install libffi 3.0.9:
cd
wget ftp://sourceware.org/pub/libffi/libffi-3.0.9.tar.gz
tar xfz libffi-3.0.9.tar.gz
cd libffi-3.0.9
./configure --prefix=/usr/lib/libffi-3.0.9
make
sudo make install
Make your own local copy of the Radian source code archive:
cd
git clone http://www.radian-lang.org/git/radian.git
Build Radian:
cd radian/linux
make
The compiler is called “radian” and lives in the radian project directory.
Windows
You will need a copy of Visual Studio and Git. You must install LLVM 3.0 and libffi 3.0.9, and you may also need to install MinGW. Beyond that you will have to figure things out for yourself: the source base includes a Win32 project but nobody is maintaining it at present.