Comments (8)
Hey, just wanted to chime in on this - I've spent the evening trying to get this installed with bundle install
on my M1 Air and was failing with errors similar to;
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
and
An error occurred while installing cairo-gobject (3.5.1), and Bundler cannot continue.
Then I tried with the gem install squib
method and was getting similar errors;
_rb_gio2_init_application in rb-gio2-application.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [gio2.bundle] Error 1
But for cairo, gio, etc.
This led me to just do the gem install
for the one that was giving me the error and most likely, it installed successfully.
Eventually what worked (this is copy-paste from my history) was;
gem install gobject-introspection # installed v4.0+
gem install cairo-gobject # installed v4.0+
gem install pango # installed v4.0+
gem install squib # failed
gem install rb-gio2 # not a real ruby package
gem install gio2 # okay
gem install squib # failed
gem install gio2 # okay
gem install squib # failed
arch -arch x86_64 gem install squib # failed
gem install squib -- --with-ldflags="-Wl,-undefined,dynamic_lookup" # failed, inspired by above
gem install squib # success??
Ruby version:
% ruby --version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin22]
Gem versions:
% gem search cairo cairo-gobject gobject-introspection gio2
*** REMOTE GEMS ***
cairo (1.17.8, 1.16.1 x64-mingw32 x86-mingw32, 1.8.1 x86-mswin32)
cairo-gobject (4.0.8, 3.2.9 x64-mingw32 x86-mingw32)
cairo-graph (0.0.2)
caironoleto-feedtools (0.2.31)
caironoleto-feedupdater (0.2.7)
carray-cairo (1.0.1)
gir_ffi-cairo (0.0.15)
*** REMOTE GEMS ***
cairo-gobject (4.0.8, 3.2.9 x64-mingw32 x86-mingw32)
*** REMOTE GEMS ***
gobject-introspection (4.0.8, 3.2.9 x64-mingw32 x86-mingw32)
*** REMOTE GEMS ***
gio2 (4.0.8, 3.2.9 x64-mingw32 x86-mingw32)
I just re-ran bundle install
to try to capture the errors and this time it worked?
Gemfile:
source 'https://rubygems.org'
gem 'squib'
I think this quote quite describes my night:
Insanity is doing the same thing over and over again and expecting different results.
from squib.
Just wanted to link this similar issue on BGG
from squib.
Hm. Interesting. It works on my M1. I'll look into it more
from squib.
I THINK it might be something with gobject_introspection. I've put the install output here: https://pastebin.com/udPfmtwt
from squib.
Some dependancies must be installed with specific ldflags in order to build on M1.
gem install gobject-introspection:3.5.1 -- --with-ldflags="-Wl,-undefined,dynamic_lookup"
gem install cairo-gobject:3.5.1 -- --with-ldflags="-Wl,-undefined,dynamic_lookup"
gem install pango:3.5.1 -- --with-ldflags="-Wl,-undefined,dynamic_lookup"
from squib.
Ah - interesting. Actually it looks like they went to 4.0 a few months ago anyway, and that works out of the box for me. They had some breaking changes that messes some obscure ways Squib can take font strings, so I'm going to do a little more testing. But the next version of Squib should be able to work without this workaround
from squib.
I'm on a 2019 intel mac running Ventura and still getting a
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [cairo_gobject.bundle] Error 1
I never use ruby so it's a fresh brew ruby, which is a more recent version, ruby 3.2.0 (2022-12-25 revision a528908271) [x86_64-darwin22]
. Rails installed fine however.
Tried the above and working through the errors and didn't get anywhere.
from squib.
@spencerm Can you try the latest Squib? Should be 0.19.0
from squib.
Related Issues (20)
- Can I override the height+width of (or get a reference to) a card in a deck? HOT 1
- Add config option: `missing_image: ` for `fail` or `warn` HOT 1
- More flexible save_png names HOT 8
- Release v0.18.0
- Embedded icon alignment not as expected HOT 2
- Can't get emojis working on macOS HOT 1
- Google Sheets support HOT 1
- Checking a condition (using if or case) HOT 2
- undefined method "render_cairo"
- Shadow in text or images HOT 1
- CLI: in `squib new` choose advanced via menu or CLI option
- CLI: `squib add` to add a new deck
- Change config.yml to squib.yml
- Unable to install gem because of dependency HOT 6
- Release v0.19.0
- Document Notion integration
- Unable to load variants with fonts
- Default save_pdf location is incorrect HOT 3
- Squib post-installation with Gem on M1 Macbook error: dyld[xxxx] missing symbol called 'new' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from squib.