Instalar o Rust manualmente pareceu resolver o problema:
curl https://sh.rustup.rs -sSf | sh
Estou tentando criar o Firefox 51 a partir da fonte no Mint 17.
Já corri o script do boostrap e instalei ferrugem, mas ./mach build aparentemente não consegue encontrá-lo?
O erro é:
0:03.58 checking for rustc... not found
0:03.58 checking for cargo... not found
0:03.58 ERROR: Rust compiler not found.
0:03.58 To compile rust language sources, you must have 'rustc' in your path.
0:03.58 See https//www.rust-lang.org/ for more information.
0:03.58
0:03.58 You can install rust by running './mach bootstrap'
0:03.58 or by directly running the installer from https://rustup.rs/
0:03.58
Mas já corri ./mach bootstrap e instalei ferrugem!
Agora, quando eu executar ./mach bootstrap novamente, ele diz:
Could not find a Rust compiler.
You have some rust files in /home/user/.cargo/bin
but they're not part of this shell's PATH.
To add these to the PATH, edit your shell initialization
script, which may be called ~/.bashrc or ~/.bash_profile or
~/.profile, and add the following line:
source /home/user/.cargo/env
Then restart your shell and run the bootstrap script again.
Então eu fiz isso. ~/.profile agora tem source /home/user/.cargo/env na parte inferior. E eu reiniciei o terminal. E ./mach bootstrap e ./mach build ainda não conseguem encontrar ferrugem.
Como corrijo isso?
Fazer source ~/.profile funcionou para mim, pois o script de bootstrap já havia anexado o caminho rustc no meu ~/.profile .
Caso o caminho seja anexado a ~/.bashrc ou ~/.bash_profile , source ~/.bashrc ou source ~/.bash_profile , respectivamente, devem fazer o trabalho.
Se o caminho não for anexado pelo script a nenhum dos arquivos, você poderá anexar o caminho por você mesmo a qualquer um dos três arquivos ( export PATH="$HOME/.cargo/bin:$PATH" é anexado ao meu ~/.profile ) e fazer source ~/.<respective file> .