Installation Errors On OSX

49 views
Skip to first unread message

Bryce Thornton

unread,
Jul 2, 2009, 5:14:12 PM7/2/09
to Curb - Ruby libcurl Bindings
I'm trying to get curb installed in order to use the feedzirra gem.
I've been having the following issue on Leopard:

/Users/bryce/Sites/curb>rake install
(in /Users/bryce/Sites/curb)
cc -arch ppc -arch i386 -pipe -bundle -undefined dynamic_lookup -o
curb_core.bundle curb.o curb_easy.o curb_errors.o curb_multi.o
curb_postfield.o curb_upload.o -L. -L/System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib -L/opt/local/lib/ -L. -arch ppc -
arch i386 -lruby -lpthread -ldl -lm -L/usr/local/php5/lib -lcurl
-L/usr/local/php5/lib -arch i386 -arch x86_64 -arch ppc7400 -arch
ppc64 -lssl -lcrypto -lldap -lz
ld warning: in curb.o, missing required architecture x86_64 in file
ld warning: in curb_easy.o, missing required architecture x86_64 in
file
ld warning: in curb_errors.o, missing required architecture x86_64 in
file
ld warning: in curb_multi.o, missing required architecture x86_64 in
file
ld warning: in curb_postfield.o, missing required architecture x86_64
in file
ld warning: in curb_upload.o, missing required architecture x86_64 in
file
ld warning: in /opt/local/lib//libssl.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libcrypto.dylib, file is not of
required architecture
ld warning: in /opt/local/lib//libz.dylib, file is not of required
architecture
ld warning: in curb.o, missing required architecture ppc64 in file
ld warning: in curb_easy.o, missing required architecture ppc64 in
file
ld warning: in curb_errors.o, missing required architecture ppc64 in
file
ld warning: in curb_multi.o, missing required architecture ppc64 in
file
ld warning: in curb_postfield.o, missing required architecture ppc64
in file
ld warning: in curb_upload.o, missing required architecture ppc64 in
file
ld warning: in /opt/local/lib//libssl.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libcrypto.dylib, file is not of
required architecture
ld warning: in /opt/local/lib//libz.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libssl.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libcrypto.dylib, file is not of
required architecture
ld warning: in /opt/local/lib//libz.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libssl.dylib, file is not of required
architecture
ld warning: in /opt/local/lib//libcrypto.dylib, file is not of
required architecture
ld warning: in /opt/local/lib//libz.dylib, file is not of required
architecture
lipo: /var/tmp//ccSY2vpj.out and /var/tmp//cc0NvU4c.out have the same
architectures (ppc7400) and can't be in the same fat output file
make: *** [curb_core.bundle] Error 1
rake aborted!
Make failed (status 2)
/Users/bryce/Sites/curb/Rakefile:60
(See full trace by running task with --trace)
/Users/bryce/Sites/curb>

Any ideas?

Bryce Thornton

unread,
Jul 2, 2009, 5:26:17 PM7/2/09
to Curb - Ruby libcurl Bindings
Nevermind. I'm not sure why all these architectures were in my
Makefile:

-arch i386 -arch x86_64 -arch ppc7400 -arch ppc64

but I just changed it to "-arch i386" and it seemed to work.

Now I'm getting a failed test:

/Users/bryce/Sites/curb>rake install
(in /Users/bryce/Sites/curb)
Loaded suite /Users/bryce/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader
Started
.........................E............................................................
Finished in 30.537885 seconds.

1) Error:
test_head_accessor(TestCurbCurlEasy):
Curl::Err::PartialFileError: Transferred a partial file
./tests/tc_curl_easy.rb:529:in `perform'
./tests/tc_curl_easy.rb:529:in `test_head_accessor'

86 tests, 376 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/
Ruby.framework/...]

(See full trace by running task with --trace)

I'll report back if I figure this one out.

Todd Fisher

unread,
Jul 2, 2009, 5:49:18 PM7/2/09
to curb---ruby-li...@googlegroups.com
Hi can you provide complete output when running rake install?  it should show the configuration step as well as the compilation steps... e.g.

rake clobber
rake compile
rake test

thanks,
Todd

Bryce Thornton

unread,
Jul 2, 2009, 7:25:41 PM7/2/09
to Curb - Ruby libcurl Bindings
Hmm, I'm not seeing that. I blew the repo away and started fresh.
Here's what I get after a fresh checkout from github:

/Users/bryce/Sites/curb>rake install
(in /Users/bryce/Sites/curb)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for curl-config... yes
checking for curlinfo_redirect_time... no
checking for curlinfo_response_code... no
checking for curlinfo_filetime... no
checking for curlinfo_redirect_count... no
checking for curlinfo_os_errno... no
checking for curlinfo_num_connects... no
checking for curlinfo_ftp_entry_path... no
checking for curl_version_ssl... no
checking for curl_version_libz... no
checking for curl_version_ntlm... no
checking for curl_version_gssnegotiate... no
checking for curl_version_debug... no
checking for curl_version_asynchdns... no
checking for curl_version_spnego... no
checking for curl_version_largefile... no
checking for curl_version_idn... no
checking for curl_version_sspi... no
checking for curl_version_conv... no
checking for curlproxy_http... no
checking for curlproxy_socks4... no
checking for curlproxy_socks5... no
checking for curlauth_basic... no
checking for curlauth_digest... no
checking for curlauth_gssnegotiate... no
checking for curlauth_ntlm... no
checking for curlauth_anysafe... no
checking for curlauth_any... no
checking for curle_tftp_notfound... no
checking for curle_tftp_perm... no
checking for curle_tftp_diskfull... no
checking for curle_tftp_illegal... no
checking for curle_tftp_unknownid... no
checking for curle_tftp_exists... no
checking for curle_tftp_nosuchuser... no
checking for curle_send_fail_rewind... no
checking for curle_ssl_engine_initfailed... no
checking for curle_login_denied... no
checking for curlmopt_maxconnects... no
checking for curle_conv_failed... no
checking for curle_conv_reqd... no
checking for curle_ssl_cacert_badfile... no
checking for curle_remote_file_not_found... no
checking for curle_ssh... no
checking for curle_ssl_shutdown_failed... no
checking for curle_again... no
checking for curle_ssl_crl_badfile... no
checking for curle_ssl_issuer_error... no
checking for curlm_bad_socket... no
checking for curlm_unknown_option... no
checking for curl_multi_timeout()... no
checking for curl_multi_fdset()... no
checking for curl_multi_perform()... no
checking for Ruby 1.9 Hash... no
checking for Ruby 1.9 st.h... no
checking for curl_easy_escape... no
creating curb_config.h
creating Makefile
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb_easy.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb_errors.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb_multi.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb_postfield.c
gcc -I. -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/
usr/lib/ruby/1.8/universal-darwin9.0 -I. -DRUBY_EXTCONF_H=
\"curb_config.h\" -fno-common -arch ppc -arch i386 -Os -pipe -fno-
common -I/usr/local/php5/include -Wall -c curb_upload.c
cc -arch ppc -arch i386 -pipe -bundle -undefined dynamic_lookup -o
curb_core.bundle curb.o curb_easy.o curb_errors.o curb_multi.o
curb_postfield.o curb_upload.o -L. -L/System/Library/Frameworks/
Ruby.framework/Versions/1.8/usr/lib -L. -arch ppc -arch i386 -
lruby -lpthread -ldl -lm -L/usr/local/php5/lib -lcurl -L/usr/local/
php5/lib -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64 -lssl -
lcrypto -lldap -lz
ld warning: in curb.o, missing required architecture x86_64 in file
ld warning: in curb_easy.o, missing required architecture x86_64 in
file
ld warning: in curb_errors.o, missing required architecture x86_64 in
file
ld warning: in curb_multi.o, missing required architecture x86_64 in
file
ld warning: in curb_postfield.o, missing required architecture x86_64
in file
ld warning: in curb_upload.o, missing required architecture x86_64 in
file
ld warning: in curb.o, missing required architecture ppc64 in file
ld warning: in curb_easy.o, missing required architecture ppc64 in
file
ld warning: in curb_errors.o, missing required architecture ppc64 in
file
ld warning: in curb_multi.o, missing required architecture ppc64 in
file
ld warning: in curb_postfield.o, missing required architecture ppc64
in file
ld warning: in curb_upload.o, missing required architecture ppc64 in
file
lipo: /var/folders/QH/QHT85hs5EJmBy-DvlvKuo++++TI/-Tmp-//cciDQbEB.out
and /var/folders/QH/QHT85hs5EJmBy-DvlvKuo++++TI/-Tmp-//cc8Ozq3k.out
have the same architectures (ppc7400) and can't be in the same fat
output file
make: *** [curb_core.bundle] Error 1
rake aborted!
Make failed (status 2)
/Users/bryce/Sites/curb/Rakefile:60
(See full trace by running task with --trace)
/Users/bryce/Sites/curb>

On Jul 2, 5:49 pm, Todd Fisher <todd.fis...@gmail.com> wrote:
> Hi can you provide complete output when running rake install?  it should
> show the configuration step as well as the compilation steps... e.g.
>
> rake clobber
> rake compile
> rake test
>
> thanks,
> Todd
>

Todd Fisher

unread,
Jul 3, 2009, 9:01:06 AM7/3/09
to curb---ruby-li...@googlegroups.com
Okay, so from the tests it looks like you don't have libcurl installed... or only partially installed?  Okay, extconf.rb will output a mkmf.log  can you attach that too.  We need to figure out why core features of libcurl are not detected.

What version of libcurl do you have installed?

Bryce Thornton

unread,
Jul 3, 2009, 10:28:30 AM7/3/09
to Curb - Ruby libcurl Bindings
Just figured out the main problem. I had "/usr/local/php5/bin" in my
path, which happens to have a curl binary in it's directory. That was
the one that was being used and causing all kinds of problems.

Once I made sure that the curl in "/usr/bin" was being used everything
worked fine.

Sorry for the trouble and thanks for trying to help.

Bryce

On Jul 3, 9:01 am, Todd Fisher <todd.fis...@gmail.com> wrote:
> Okay, so from the tests it looks like you don't have libcurl installed... or
> only partially installed?  Okay, extconf.rb will output a mkmf.log  can you
> attach that too.  We need to figure out why core features of libcurl are not
> detected.
> What version of libcurl do you have installed?
>
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages