-
Notifications
You must be signed in to change notification settings - Fork 120
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
Phashion v1.2.0 build failing on MacOS Ventura 13.3.1 #97
Comments
Just noted that there is a PR for M1 compatibility https://github.com/westonplatter/phashion/pull/85/files Looking at the changes though I don't think this would affect my use case as my homebrew installation for this is located at just some extra context in case that's helpful. |
Hi! I'm having the same issue on M1 Mac (MacOS Monterey 12.5). I'm using
DYLD_FALLBACK_LIBRARY_PATH=.:/Users/ipm/.rbenv/versions/3.1.2/lib "clang -o conftest -I/Users/ipm/.rbenv/versions/3.1.2/include/ruby-3.1.0/arm64-darwin21 -I/Users/ipm/.rbenv/versions/3.1.2/include/ruby-3.1.0/ruby/backward -I/Users/ipm/.rbenv/versions/3.1.2/include/ruby-3.1.0 -I. -I/Users/ipm/.rbenv/versions/3.1.2/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/Users/ipm/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/phashion-6a316ea715d6/ext/phashion_ext/include -L/Users/ipm/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/phashion-6a316ea715d6/ext/phashion_ext/lib -L/usr/local/lib -x c++ -fdeclspec conftest.c -L. -L/Users/ipm/.rbenv/versions/3.1.2/lib -L/Users/ipm/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/phashion-6a316ea715d6/ext/phashion_ext/lib -L/Users/ipm/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/bundler/gems/phashion-6a316ea715d6/ext/phashion_ext/lib -L/usr/local/lib -L. -L/Users/ipm/.rbenv/versions/3.1.2/lib -fstack-protector-strong -lruby.3.1 -lpthread -lpHash_gem -lstdc++ -ljpeg -lpng -lm"
ld: library not found for -ljpeg
clang: error: linker command failed with exit code 1 (use -v to see invocation)
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
I've also tried adding
to my |
I'm still facing the same issue, any updates on this ? I can't reset my macbook and reinstall the whole homebrew in rosetta mode because I have multiple projects there |
I found that I didn't need to use the rosetta version in the end and just needed to make the adjustments in this PR: |
I'm setting up a intel based project and so I'm doing all this from a x86 shell and installed dependencies using the x86 version of homebrew.
I've done
brew install imagemagick
along withbrew install libpng
andbrew install libjpeg
libpng
was installed as dependancy ofimagemagick
along withturbo-jpeg
which conflicts withlibjpeg
It gave me these options during installation of
libjpeg
to work around this. which I have tried using but no dice.Output from `brew install -v libjpeg`
I've tried forcing the linking of the library with these two commands but they didn't make any difference
When trying to compile the gem (CLI ouput here) I get the following mkmf.log.
mkmf.log output
This gives the main error I think is the problem here
ld: library not found for -ljpeg
As far as I can see I've given the system this library and the information on how to find it so I'm a little stuck on what to do next. What am I missing here?
The text was updated successfully, but these errors were encountered: