1

How do I use graphics.h in Ubuntu 18.04? I am getting the following error message when trying to follow the instructions in this answer to compile and install libgraph in order to use graphics.h on 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
karel
  • 122,292
  • 133
  • 301
  • 332
nilopy
  • 31

1 Answers1

2

Three of the packages in the command in your question that returned an error message have been updated in 18.04. In the "Install some additional packages" step in this answer open the terminal and type:

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  

To make it easier to copy/paste it in the terminal here is the previous command reformatted as a single line:

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
karel
  • 122,292
  • 133
  • 301
  • 332