./a.out: error while loading shared libraries: libgraph.so.1: cannot open shared object file: No such file or directory

asked 2018-03-11 00:59:46 -0600

i just installed my library file required for graphics.h. and then i'm getting above error.

edit retag flag offensive close merge delete


Could you please a bit more information about how you installed the library in exact steps. Also provide the output of ldd a.out to see a list of dynamic libraries needed.

thomaswood gravatar imagethomaswood ( 2018-03-11 06:26:03 -0600 )edit

linux-vdso.so.1 (0x00007ffc5bff4000) libgraph.so.1 => not found libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fa242377000) libm.so.6 => /lib64/libm.so.6 (0x00007fa242022000) libgccs.so.1 => /lib64/libgccs.so.1 (0x00007fa241e0b000) libc.so.6 => /lib64/libc.so.6 (0x00007fa241a28000) /lib64/ld-linux-x86-64.so.2 (0x00007fa2426fe000)

abhi9817 gravatar imageabhi9817 ( 2018-03-11 07:58:34 -0600 )edit

procedure:- 1) tar xvfz libgraph-1.0.2.tar.gz 2) cd libgraph-1.0.2 3)./configure 4)make 5)make install. Done.

abhi9817 gravatar imageabhi9817 ( 2018-03-11 08:03:23 -0600 )edit

Okay, so libgraph.so.1 seems to be the only missing library. Where did you get the a.out' binary from? Which program is it, is there any install how-to. Searching through the Fedora repos, there seems no package providinglibgraph.so.1 `.

thomaswood gravatar imagethomaswood ( 2018-03-11 08:19:01 -0600 )edit

okay so i got that a.out from terminal. i'm trying to run a small graphics pgm. can you tell me how to get that file.

abhi9817 gravatar imageabhi9817 ( 2018-03-12 08:44:23 -0600 )edit