On 5/9/13, Hamish <hamis...@yahoo.com> wrote: > Gaganjyot wrote: >> No. I guess, Libredwg is not able to open libredwg.so.0 >> shared library file :(. >> Any Ideas why is this happening ? >> I gave command to compile testSVG.c >> gcc -g -o testSVG testSVG.c -lredwg -lm >> It gets compiled but when I run it, also gives error as >> >> ./testSVG: error while loading shared libraries: >> libredwg.so.0: cannot >> open shared object file: No such file or directory > > silly question perhaps, but does libredwg.so.0 exist? where is > it? e.g. if in /usr/local/bin/ make sure you can find that > path in /etc/ld.so.conf[.d/], and rerun ldconfig as root to add > it to the library search path.
Oh Thanks! This helped me. Actually the path given was correct but not activated. So I ran ldconfig and it worked like charm :) -- Thanks Gaganjyot