Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

squib error on Ubuntu 22.04 "undefined symbol: g_bookmark_file_get_type" #382

Open
4 tasks done
cdesch opened this issue Oct 24, 2023 · 3 comments
Open
4 tasks done
Labels

Comments

@cdesch
Copy link

cdesch commented Oct 24, 2023

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:

  • I have updated Squib to the latest version.
  • I have checked the Squib issues backlog for something similar
  • I have attempted to make a minimal script demonstrating my problem
  • I have reviewed the Squib Docs and there's still a problem
@cdesch cdesch added the bug label Oct 24, 2023
@andymeneely
Copy link
Owner

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?

@cdesch
Copy link
Author

cdesch commented Nov 10, 2023

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

@cmembreno2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants