but libpgplot.so is in the same directory from where i am
trying to execute ./pgdemo. isnt tht supposed to work?
No, see # 3.
I guess, you will have a 'Makefile' in pgplot/
( the top directory )
May be, you will run 'make install' in that directory.
'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/pratyuze/ \
( replace everything with the actual path )
to have libpgplot.so in a traceable path.
And finally this option : cp libpgplot.so /usr/local/lib
One of the above options should work.