Building Rust on Fedora
Posted on 2013-07-27
What is Rust?
Rust is a new programming language headed by Mozilla, the same people bringing you the Firefox browser.
Getting Started
According to Rust’s wiki, you’ll need the following to build the compiler.
- A recent Linux, OS X 10.6 or later, Win32 or FreeBSD system
- 1.6 GiB RAM available for the build process (see note below about memory usage)
- Python 2.x (version 2.7 is known to work)
- GNU make 3.81
- git 1.7
- g++ 4.4 at least on Linux, 4.5 on Windows, and the 4.x gcc in Apple’s SDK for OS X.
- curl
- Valgrind 3.5 or later (recommended, but not required for Linux)
- pandoc 1.8 at least (optional, if you wish to build HTML docs)
- pdflatex (optional, if you wish to build PDF docs)
- ccache (optional)
Here is the command to get all of the above.
Download and Build Rust
git clone git://github.com/mozilla/rust.git
cd rust
./configure --enable-ccache # this may take a while if this is your first time, as it downloads LLVM
make # this will download stage-0 Rust compiler in order to compile the Rust source
If the process runs smoothly, you will have the Rust compiler and toolchain residing in <archtecture>/stage2/bin
(on my machine, it’s x86_64-unknown-linux-gnu/stage2/bin
).