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

Do not build on OS X Snow Leopard #12

Closed
erikdahlstrand opened this issue Oct 11, 2009 · 1 comment
Closed

Do not build on OS X Snow Leopard #12

erikdahlstrand opened this issue Oct 11, 2009 · 1 comment

Comments

@erikdahlstrand
Copy link

$ sudo gem install curb
Building native extensions.  This could take a while...
ERROR: Error installing curb:
ERROR: Failed to build gem native extension.
make
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -DRUBY_EXTCONF_H=\"curb_config.h\"  -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -I/opt/local/include -Wall  -c curb.c
In file included from /opt/local/include/curl/curl.h:36,
                 from curb.h:12,
                 from curb.c:8:
/opt/local/include/curl/curlrules.h:144: error: size of array ‘__curl_rule_01__’ is negative
/opt/local/include/curl/curlrules.h:154: error: size of array ‘__curl_rule_02__’ is negative
lipo: can't open input file: /var/tmp//ccgPJWIG.out (No such file or directory)
make: *** [curb.o] Error 1

This works:

$ sudo env ARCHFLAGS="-arch x86_64" gem install curb
Building native extensions.  This could take a while...
Successfully installed curb-0.5.4.0
@taf2
Copy link
Owner

taf2 commented Oct 11, 2009

This is an issue with your installed version of libcurl and ruby not having the same arch. Check to make sure you have installed the 86_64 version of libcurl especially if you're using mac ports... see the FAQ.

jtnegrotto pushed a commit to jtnegrotto/curb that referenced this issue Jun 6, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants