简体   繁体   中英

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?

I solved with these:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM