Skip to content

Commit bc56861

Browse files
authored
doc: Add hints on how to get gcc installed (#741)
1 parent 4cde788 commit bc56861

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Alternatively, for a first-time Rust learner, there are several other resources:
1616
## Getting Started
1717

1818
_Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing `xcode-select --install`._
19+
_Note: If you're on Linux, make sure you've installed gcc. Deb: `sudo apt install gcc`. Yum: `sudo yum -y install gcc`._
1920

2021
You will need to have Rust installed. You can get it by visiting https://rustup.rs. This'll also install Cargo, Rust's package/project manager.
2122

install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ else
1212
exit 1
1313
fi
1414

15+
if [ -x "$(command -v cc)" ]
16+
then
17+
echo "SUCCESS: cc is installed"
18+
else
19+
echo "ERROR: cc does not seem to be installed."
20+
echo "Please download (g)cc using your package manager."
21+
echo "OSX: xcode-select --install"
22+
echo "Deb: sudo apt install gcc"
23+
echo "Yum: sudo yum -y install gcc"
24+
exit 1
25+
fi
26+
1527
if [ -x "$(command -v rustc)" ]
1628
then
1729
echo "SUCCESS: Rust is installed"

0 commit comments

Comments
 (0)