summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon High <highb@users.noreply.github.com>2022-02-04 06:38:55 -0800
committerGitHub <noreply@github.com>2022-02-04 15:38:55 +0100
commitbc5686174463ad6f4f6b824b0e9b97c3039d4886 (patch)
tree4b34f7aa81d8c884ac98642bff8b729cb357229b
parent4cde788d3380c0486e29e194441e6f94f5c0c552 (diff)
doc: Add hints on how to get gcc installed (#741)
-rw-r--r--README.md1
-rwxr-xr-xinstall.sh12
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index b4f6a7e..835200e 100644
--- a/README.md
+++ b/README.md
@@ -16,6 +16,7 @@ Alternatively, for a first-time Rust learner, there are several other resources:
## Getting Started
_Note: If you're on MacOS, make sure you've installed Xcode and its developer tools by typing `xcode-select --install`._
+_Note: If you're on Linux, make sure you've installed gcc. Deb: `sudo apt install gcc`. Yum: `sudo yum -y install gcc`._
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.
diff --git a/install.sh b/install.sh
index e986e74..68b8da3 100755
--- a/install.sh
+++ b/install.sh
@@ -12,6 +12,18 @@ else
exit 1
fi
+if [ -x "$(command -v cc)" ]
+then
+ echo "SUCCESS: cc is installed"
+else
+ echo "ERROR: cc does not seem to be installed."
+ echo "Please download (g)cc using your package manager."
+ echo "OSX: xcode-select --install"
+ echo "Deb: sudo apt install gcc"
+ echo "Yum: sudo yum -y install gcc"
+ exit 1
+fi
+
if [ -x "$(command -v rustc)" ]
then
echo "SUCCESS: Rust is installed"