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

dyld: lazy symbol binding failed: Symbol not found: _curl_global_init #61

Closed
johntdyer opened this Issue Nov 29, 2010 · 5 comments

Comments

Projects
None yet
4 participants
@johntdyer

johntdyer commented Nov 29, 2010

I am getting the following when trying to start a Rails project

dyer:~/dev/Tropo/tropo-app-manager git:master
→ rails s
dyld: lazy symbol binding failed: Symbol not found: _curl_global_init
Referenced from: /Users/dyer/.rvm/gems/ruby-1.8.7-p302/gems/curb-0.7.8/lib/curb_core.bundle
Expected in: flat namespace

dyld: Symbol not found: _curl_global_init
Referenced from: /Users/dyer/.rvm/gems/ruby-1.8.7-p302/gems/curb-0.7.8/lib/curb_core.bundle
Expected in: flat namespace

Trace/BPT trap

dyer:~/dev/Tropo/tropo-app-manager git:master
→ mate /Users/dyer/.rvm/gems/ruby-1.8.7-p302/gems/curb-0.7.8/lib/curb_core.bundle

dyer:~/dev/Tropo/tropo-app-manager git:master

The error seems to be related to Curb, any ideas what this is about?
Thanks

john

@taf2

This comment has been minimized.

Show comment
Hide comment
@taf2

taf2 Nov 29, 2010

Owner

make sure libcurl and ruby are properly linked...

on mac

otool -L curb.bundle

on linux

ldd curb.so

Owner

taf2 commented Nov 29, 2010

make sure libcurl and ruby are properly linked...

on mac

otool -L curb.bundle

on linux

ldd curb.so

@johntdyer

This comment has been minimized.

Show comment
Hide comment
@johntdyer

johntdyer Nov 29, 2010

dyer:~
→ otool -L curb.bundle
otool: can't open file: curb.bundle (No such file or directory)

dyer:~

Hope that helps give you more insight into my issue, but it seems something is definitely off here

johntdyer commented Nov 29, 2010

dyer:~
→ otool -L curb.bundle
otool: can't open file: curb.bundle (No such file or directory)

dyer:~

Hope that helps give you more insight into my issue, but it seems something is definitely off here

@taf2

This comment has been minimized.

Show comment
Hide comment
@taf2

taf2 Nov 30, 2010

Owner

ruby gems are in your $GEM_HOME

curb specifically compiles a .bundle file in the ext/ directory.

this is a good reference about dynamic libraries: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html

Owner

taf2 commented Nov 30, 2010

ruby gems are in your $GEM_HOME

curb specifically compiles a .bundle file in the ext/ directory.

this is a good reference about dynamic libraries: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html

@mikaelprag

This comment has been minimized.

Show comment
Hide comment
@mikaelprag

mikaelprag Feb 8, 2011

A more specific solution to the issue is to remove the gem then install it with this command: sudo env ARCHFLAGS="-arch x86_64" gem install curb

This is if you run Snow Leopard which is in 64 bit.

mikaelprag commented Feb 8, 2011

A more specific solution to the issue is to remove the gem then install it with this command: sudo env ARCHFLAGS="-arch x86_64" gem install curb

This is if you run Snow Leopard which is in 64 bit.

@erochest

This comment has been minimized.

Show comment
Hide comment
@erochest

erochest Jun 6, 2011

I had this problem too. The issue seemed to be having other versions of curl installed. In my case, this meant the curl binary that was installed with MAMP. I re-arranged my path to put /usr/bin before /Applications/MAMP/Library/bin, re-installed curb, and it worked fine.

erochest commented Jun 6, 2011

I had this problem too. The issue seemed to be having other versions of curl installed. In my case, this meant the curl binary that was installed with MAMP. I re-arranged my path to put /usr/bin before /Applications/MAMP/Library/bin, re-installed curb, and it worked fine.

@johntdyer johntdyer closed this Jun 8, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment