After GRASS was installed.....
After GRASS is compiled the GDAL need to be recompiled pointing to the GRASS directory
>./configure –with-grass=/usr/local/grass-6.2.0 && make
Normally when using gdal (in this case gdalinfo) it may get an error message like this
>gdalinfo: error while loading shared libraries: libgrass_vect.so: cannot open shared object file: No such file or directory
This means that gdal is not finding the libraries of GRASS, the best thing is to put the GRASS path on the ld.so.config and run the ldconfig
>echo /usr/local/grass-6.2.0/lib >> /etc/ld.so.conf
>ldconfig
If you put > instead of >> it will fuck up all ld.so.conf