On Thu, Feb 4, 2021 at 9:01 PM <pteroglos...@pm.me> wrote:
...
> As for installing GRASS GIS, I suspected it wouldn't be as easy as a normal 
> apt-get install...

It is as easy as that but in your "special" case you do not want to
default GDAL.

> Thanks Markus for your input, I read the Quick_instructions for Ubuntu 20.04, 
> and it seems doable. One question though, I won't install GDAL as a 
> prerequisite as instructed because I've compiled it myself, right?

That's right.

> Therefore, I'm gonna need to tell the compiler to get GDAL from the folder 
> it's been installed in.

Well, if you installed GDAL with "make install" it should be there
(ok, probably in /usr/local/bin/ and not /usr/lib/).

> The only reference to GDAL in the guide, apart from the prerequisite install 
> is:
>
> # "configure" source code for local machine (checks for CPU type etc):
> MYCFLAGS='-O2 -fPIC -fno-common -fexceptions -std=gnu99 -fstack-protector 
> -m64'
> #MYCXXFLAGS=''
> MYLDFLAGS='-Wl,--no-undefined -Wl,-z,now'
>
> LDFLAGS="$MYLDFLAGS" CFLAGS="$MYCFLAGS" CXXFLAGS="$MYCXXFLAGS" ./configure \
>   --with-cxx \
>   --enable-largefile \
>   --with-proj --with-proj-share=/usr/share/proj \
>   --with-gdal=/usr/bin/gdal-config \
>
> I happen to have a "gdal-config" in /usr/bin/ but it must be a remnant of a 
> previous install because the creation date is March 29th 2020. Should I 
> change the argument to
> "--with-gdal=/home/k/bin/gdal/gdal-3.1.4/bin/gdal-config" which is the 
> location of the one I compiled?

Yes, that should work.

Best,
Markus
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to