Como uso graphics.h no Ubuntu 18.04? Estou recebendo a seguinte mensagem de erro ao tentar seguir as instruções emesta respostapara compilar e instalar o libgraph para usar graphics.h no Ubuntu.
$ sudo apt-get install libsdl-image1.2 libsdl-image1.2-dev guile-1.8 \
> guile-1.8-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \
> libesd0-dev libdirectfb-dev libdirectfb-extra libfreetype6-dev \
> libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev \
> libslang2-dev libasound2 libasound2-dev
[sudo] password for linux:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package guile-1.8
E: Couldn't find any package by glob 'guile-1.8'
E: Couldn't find any package by regex 'guile-1.8'
E: Unable to locate package guile-1.8-dev
E: Couldn't find any package by glob 'guile-1.8-dev'
E: Couldn't find any package by regex 'guile-1.8-dev'
E: Unable to locate package libesd0-dev
Responder1
Três dos pacotes no comando da sua pergunta que retornaram uma mensagem de erro foram atualizados em 18.04. Na etapa "Instalar alguns pacotes adicionais" emesta respostaabra o terminal e digite:
sudo apt install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 \
guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev \
pulseaudio-esound-compat libdirectfb-dev libdirectfb-extra libfreetype6-dev \
libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev \
libslang2-dev libasound2 libasound2-dev
Para facilitar a cópia/cola no terminal, aqui está o comando anterior reformatado como uma única linha:
sudo apt install libsdl-image1.2 libsdl-image1.2-dev guile-2.0 guile-2.0-dev libsdl1.2debian libart-2.0-dev libaudiofile-dev pulseaudio-esound-compat libdirectfb-dev libdirectfb-extra libfreetype6-dev libxext-dev x11proto-xext-dev libfreetype6 libaa1 libaa1-dev libslang2-dev libasound2 libasound2-dev