mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 22:19:01 +00:00
Add installation troubleshooting for missing system dependencies (#2465)
* Initial plan * Add installation troubleshooting section for system dependency errors Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/6c3a5612-bdd5-4611-ba77-aea7ab52e304 Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> * Simplify README troubleshooting to a link to the full docs Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/6c557093-0643-4980-93ad-973e2d3141ef Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
This commit is contained in:
@@ -112,6 +112,10 @@ docker run -v /mydir:/app/reports soxoj/maigret:latest username --html
|
|||||||
docker build -t maigret .
|
docker build -t maigret .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Troubleshooting
|
||||||
|
|
||||||
|
If you encounter build errors during installation, check the [troubleshooting guide](https://maigret.readthedocs.io/en/latest/installation.html#troubleshooting).
|
||||||
|
|
||||||
## Usage examples
|
## Usage examples
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -90,3 +90,39 @@ Docker
|
|||||||
|
|
||||||
# manual build
|
# manual build
|
||||||
docker build -t maigret .
|
docker build -t maigret .
|
||||||
|
|
||||||
|
Troubleshooting
|
||||||
|
---------------
|
||||||
|
|
||||||
|
If you encounter build errors during installation such as ``cannot find ft2build.h``
|
||||||
|
or errors related to ``reportlab`` / ``_renderPM``, you need to install system-level
|
||||||
|
dependencies required to compile native extensions.
|
||||||
|
|
||||||
|
**Debian/Ubuntu/Kali:**
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
sudo apt install -y libfreetype6-dev libjpeg-dev libffi-dev
|
||||||
|
|
||||||
|
**Fedora/RHEL/CentOS:**
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
sudo dnf install -y freetype-devel libjpeg-devel libffi-devel
|
||||||
|
|
||||||
|
**Arch Linux:**
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
sudo pacman -S freetype2 libjpeg-turbo libffi
|
||||||
|
|
||||||
|
**macOS (Homebrew):**
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
brew install freetype
|
||||||
|
|
||||||
|
After installing the system dependencies, retry the maigret installation.
|
||||||
|
|
||||||
|
If you continue to have issues, consider using Docker instead, which includes all
|
||||||
|
necessary dependencies.
|
||||||
|
|||||||
Reference in New Issue
Block a user