Issues using GRASS 8.5 on Ubuntu 24.04

Hi everyone!
I am looking for some guidance on using GRASS GIS 8.5 on Ubuntu 24.04.

Recently, I am contributing to GRASS and need to test code against GRASS 8.5.

I want to use :tools.g_region(flags="g", format="json"), which is not supported by GRASS older version. However, I’ve had trouble setting up a clean local GRASS 8.5 environment on my system.

Any advice or recommended approaches would be greatly appreciated.

Thank you.

Here you may find some guidance: https://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu

On 29 Jan 2026, at 06:45, Ayush Kumar via OSGeo Discourse noreply@discourse.osgeo.org wrote:

ayush.kumar
January 29

Hi everyone!
I am looking for some guidance on using GRASS GIS 8.5 on Ubuntu 24.04.

Recently, I am contributing to GRASS and need to test code against GRASS 8.5.

I want to use :tools.g_region(flags="g", format="json"), which is not supported by GRASS older version. However, I’ve had trouble setting up a clean local GRASS 8.5 environment on my system.

Any advice or recommended approaches would be greatly appreciated.

Thank you.


Visit Topic or reply to this email to respond.

To unsubscribe from these emails, click here.

You will need to update your wx and libfftw libraries to the Ubuntu 24.04 equvilents .

If you plan on working with LiDAR, you will need to install pdal libpdal-dev and I think libpdal-plugins These libraries are only available if you install the ubuntugis unstable ppa

This is what I put together tonight to install on mint 22.3 ( Ubuntu version, which uses Ubuntu 24.04 repositories ) Bear in mind I have GRASS installed from the ubuntugis-unstable repository , which may have put in the relevent WX python Library.

sudo apt-get install
build-essential
flex make bison gcc libgcc1 g++ ccache
python3 python3-dev python3-pip
python3-opengl python3-wxgtk4.0
python3-dateutil libgsl-dev python3-numpy
wx3.2-headers wx-common libwxgtk3.2-dev
libwxbase3.2-1t64
libncurses5-dev
libbz2-dev
zlib1g-dev gettext
libtiff5-dev libpnglite-dev
libcairo2 libcairo2-dev
sqlite3 libsqlite3-dev
libpq-dev libreadline-dev
libfreetype6-dev libfftw3-bin
libfftw3-dev libboost-thread-dev
libboost-program-options-dev git
libzstd-dev checkinstall
libglu1-mesa-dev libxmu-dev
ghostscript wget pdal libpdal-dev libpdal-plugins -y

sudo apt-get install
ffmpeg libavutil-dev
libffmpegthumbnailer-dev
libavcodec-dev
libxmu-dev
libavformat-dev libswscale-dev -y

“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
–with-python
–with-geos
–with-sqlite
–with-nls
–with-zstd
–with-pdal
–with-cairo --with-cairo-ldflags=-lfontconfig
–with-freetype=yes --with-freetype-includes=“/usr/include/freetype2/”
–with-wxwidgets
–with-fftw
–with-openmp
–with-opengl-libs=/usr/include/GL
–with-postgres=yes --with-postgres-includes=“/usr/include/postgresql”
–without-netcdf
–without-mysql
–without-odbc
–with-ffmpeg \

This complied and got me into the gui.