Ruby: symbol lookup error: /home/membrish1989/.rvm/gems/ruby-3.0.6/gems/glib2-4.2.2/lib/glib2.so: undefined symbol: g_bookmark_file_get_type

Facing the following issue on Linux Ubuntu

ruby: symbol lookup error: /home/membrish1989/.rvm/gems/ruby-3.0.6/gems/glib2-4.2.2/lib/glib2.so: undefined symbol: g_bookmark_file_get_type

Any idea on how to solve it?