📦Prerequisites
All required softwares to compile and run the project
Last updated
All required softwares to compile and run the project
Last updated
Our project is coded in C, and uses ncurses C library so prerequisites are:
GCC (GNU Compiler Collection): #1.-gcc-gnu-compiler-collection
nurses (New Curses library): #2.-ncurses-new-curses-library
The GNU Compiler Collection is an optimizing compiler produced by the GNU Project supporting various programming languages, inclduing C language
In order to install GCC on Windows, you need a toolkit such as MinGW (Minimalist GNU for Windows) to install it:
Download and install MinGW:
Install needed packages:
Mark this following packages for installation:
mingw32-base
mingw32-gcc-g++
then click on "Installation -> Apply Changes":
Now confirm installation and wait until it finishs and click "Close"
Add GCC to the PATH:
Currently, the command prompt cannot detect the GCC because the environment path variable has not been set. Follow the steps below to set the environment path variable for MinGW on the Windows system.
The environment path variable helps to detect the compiler in your whole system. It makes the alias name for the compiler, which denotes the path.
Navigate to MinGW installation folder "default: C:\\MinGW\" and copy "bin" folder's adress (Default: "C:\\MinGW\bin").
And finally, you've GCC installed Successfully!, now you can compile C programs using gcc command:
We suppose MinGW is already installed in the system, if it's not should go back to #1.-gcc-gnu-compiler-collection
Open MinGW Installation Manager.
Look for the following packages and mark the checkbox:
a- mingw32-libncurses (dll)
b- mingw32-libncurses (dev)
c- mingw32-libpdcurses (dll)
d- mingw32-libpdcurses (dev)
In the context menu click on Installation → Apply Changes.
Click on Windows Search bar and type "Environment Variables" or "PATH"
Click on "PATH" then "Edit" button
Now click on "New" and paste the "/bin" folder address then click "OK"
Distro | |
---|---|
Distro | |
---|---|
Debian or Ubuntu
sudo apt install build-essential
Arch Linux
sudo pacman -S base-devel
Fedora or Red Hat
sudo dnf install gcc
CentOS or RHEL
sudo yum groupinstall "Development Tools"
Debian or Ubuntu
sudo apt-get install libncurses5-dev libncursesw5-dev
Arch Linux
sudo pacman -S ncurses
Fedora or Red Hat
sudo dnf install ncurses-devel
CentOS or RHEL
sudo yum install ncurses-devel