squib icon indicating copy to clipboard operation
squib copied to clipboard

squib error on Ubuntu 22.04 "undefined symbol: g_bookmark_file_get_type"

Open cdesch opened this issue 2 years ago • 3 comments

Describe the bug I receive the following error when running squib new my_project or any squib ... command on Ubuntu 22.04

ruby: symbol lookup error: /home/my_home/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/glib2-4.2.0/lib/glib2.so: undefined symbol: g_bookmark_file_get_type

To Reproduce Steps to reproduce the behavior:

❯ squib new my_project
ruby: symbol lookup error: /home/my_home/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/glib2-4.2.0/lib/glib2.so: undefined symbol: g_bookmark_file_get_type

Expected behavior For it to work....: -)

Environment

  • OS:
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.3 LTS
Release:	22.04
Codename:	jammy
  • Ruby version: 3.2.2

Additional context Add any other context about the problem here.

Check the following:

  • [X] I have updated Squib to the latest version.
  • [X] I have checked the Squib issues backlog for something similar
  • [X] I have attempted to make a minimal script demonstrating my problem
  • [X] I have reviewed the Squib Docs and there's still a problem

cdesch avatar Oct 24 '23 14:10 cdesch

Interesting. I don't have an Ubuntu machine these days, but the glib2 sometimes needs a separate apt install that wasn't called on installation. Did you get any errors on installation?

andymeneely avatar Nov 10 '23 19:11 andymeneely

No. It seems to install fine with sudo apt-get install libglib2.0-dev. I've been able to work with squib using docker for the interim:

Create new squib project:

docker run --rm -v "$PWD":/usr/src/app andymeneely/squib squib new my_card_game

Generate Cards

docker run --rm -v "$PWD":/usr/src/app andymeneely/squib ruby deck.rb

cdesch avatar Nov 10 '23 23:11 cdesch

Was this issue solved? and how? Facing the same in 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

cmembreno2 avatar Jun 10 '24 23:06 cmembreno2