clinuxubuntuelementary-osisl

Cannot compile a simple C program on Elementary distro


I'm using elementary OS 5.1.7 Hera (based on Ubuntu 18.04.4 LT) I created a very simple c program:

#include <stdio.h>

int main()
{
  printf( "Hello World!\n" );

  return 0;
}

and executing the following :

gcc -o simple simple.c

I get this error:

/usr/lib/gcc/x86_64-linux-gnu/7/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory

Any suggestions?


Solution

  • I solved with these:

    sudo apt-get remove libisl19 
    sudo apt update
    sudo apt install build-essential