uirc/INSTALL.rst

120 lines
3.7 KiB
ReStructuredText
Raw Normal View History

2022-03-24 15:00:05 -06:00
Installation
2022-03-24 15:52:10 -06:00
*************
2022-03-24 15:00:05 -06:00
2022-03-24 15:45:27 -06:00
Instructions are available for the following operating systems:
2022-03-24 15:45:59 -06:00
2022-03-24 15:45:27 -06:00
* `Linux/BSD <#linuxbsd>`_
2022-03-25 23:09:18 -06:00
* `macOS <#macos>`_
2022-03-24 15:45:27 -06:00
* `Windows <#windows>`_
Linux/BSD
==========
2022-03-24 15:00:05 -06:00
To install ``uirc``, you need to have the following items:
2022-03-24 15:52:10 -06:00
* Git (obviously)
2022-03-24 15:00:05 -06:00
* A C compiler (``uirc`` uses ``gcc`` by default, but you can change what compiler you use in the `config.mk file <config.mk>`_.)
* The cURL libraries
* The ``stb`` libraries
2022-03-24 15:52:10 -06:00
If you want to install all four at once, follow the instructions for your system below.
2022-03-24 15:00:05 -06:00
Debian/Debian-based (Ubuntu, Pop!_OS, etc.)
--------------------------------------
.. code:: bash
2022-03-24 15:31:57 -06:00
$ sudo apt install git gcc libcurl3-gnutls libstb-dev
$ git clone https://github.com/brysonsteck/uirc && cd uirc
# build uirc with:
$ make
# or, if you want to install globally, use:
$ sudo make install
2022-03-24 15:00:05 -06:00
RHEL-based (Fedora, CentOS, etc.)
----------------------------------
.. code:: bash
2022-03-24 15:31:57 -06:00
$ sudo dnf install git gcc libcurl-devel stb-devel
$ git clone https://github.com/brysonsteck/uirc && cd uirc
# build uirc with:
$ make
# or, if you want to install globally, use:
$ sudo make install
2022-03-24 15:00:05 -06:00
OpenSUSE
---------
.. code:: bash
2022-03-24 15:31:57 -06:00
$ sudo zypper install git gcc libcurl-devel stb-devel
$ git clone https://github.com/brysonsteck/uirc && cd uirc
# build uirc with:
$ make
# or, if you want to install globally, use:
$ sudo make install
2022-03-24 15:00:05 -06:00
Arch/Arch-based (Manjaro, EndeavourOS, etc.)
---------------------------------------------
.. code:: bash
2022-03-24 15:31:57 -06:00
# 'stb' is an AUR package and must be installed with an AUR helper, such as 'yay'.
$ yay -S git gcc libcurl-gnutls stb
$ git clone https://github.com/brysonsteck/uirc && cd uirc
# build uirc with:
$ make
# or, if you want to install globally, use:
$ sudo make install
2022-03-24 15:00:05 -06:00
FreeBSD/OpenBSD
----------------
2022-03-24 15:31:57 -06:00
.. code:: bash
2022-03-24 15:45:27 -06:00
$ doas pkg_add git curl wget
2022-03-24 15:31:57 -06:00
$ git clone https://github.com/brysonsteck/uirc && cd uirc
2022-03-24 15:45:27 -06:00
# in BSD, you must install the 'stb' library manually from GitHub. do this with:
2022-03-24 15:31:57 -06:00
$ doas make stb
To build ``uirc`` on BSD, you need to uncomment the OPTIONS line at the bottom of the `config.mk <config.mk>`_ file. Additionally, if you would rather use ``cc`` instead of ``gcc``, you can change that in this file as well. Then, you can continue with the instructions.
.. code:: bash
2022-03-24 15:00:05 -06:00
2022-03-24 15:31:57 -06:00
# build uirc with:
$ make
# or, if you want to install globally, use:
$ doas make install
2022-03-24 15:45:27 -06:00
2022-03-24 15:52:10 -06:00
Other Linux/UNIX-based systems
-------------------------------
If you fit this category, you probably know what you need to build ``uirc``.
2022-03-25 23:09:18 -06:00
macOS
======
To build ``uirc`` on macOS, make sure `brew <https://brew.sh>`_ and the Xcode Command Line tools (run ``xcode-select --install`` to make sure) are installed, then follow the instructions below.
.. code:: bash
% brew install curl wget
% git clone https://github.com/brysonsteck/uirc && cd uirc
You will also need to uncomment the INCLUDE_PREFIX line at the top of the `config.mk <config.mk>`_ file to make sure that the stb library is downloaded correctly.
.. code:: bash
# in macOS, you must install the 'stb' library manually from GitHub. do this with:
% make stb
# build uirc with:
% make
# or, if you want to install globally, use:
% make install
2022-03-24 15:45:27 -06:00
Windows
========
To build on Windows, you need to install a Linux distribution through WSL. This can be done with the following command in Command Prompt::
>wsl --install
Once installed and you set up your user account, run ``sudo apt update && sudo apt upgrade`` and confirm to install the updates. Let it sit here, this might take a while.
Once you have updated your WSL instance, read the `Linux <#linuxbsd>`_ section above, following instructions for your WSL distribution (if you followed this guide to install, you will be following instructions for Debian).