Skip to content

Can't install. Failed to build gem native extension. #8

@egze

Description

@egze

I'm getting this error. Can you help?

Thanks

Installing recommendify (0.3.6) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/xxx/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb 

make
mkdir -p ../bin
gcc -Wall recommendify.c -lhiredis -o ../bin/recommendify
recommendify.c:4:29: error: hiredis/hiredis.h: No such file or directory
recommendify.c: In functionmain’:
recommendify.c:20: error: ‘redisContextundeclared (first use in this function)
recommendify.c:20: error: (Each undeclared identifier is reported only once
recommendify.c:20: error: for each function it appears in.)
recommendify.c:20: error: ‘cundeclared (first use in this function)
recommendify.c:21: error: ‘redisReplyundeclared (first use in this function)
recommendify.c:21: error: ‘all_itemsundeclared (first use in this function)
recommendify.c:22: error: ‘replyundeclared (first use in this function)
recommendify.c:83: warning: implicit declaration of functionredisConnectWithTimeoutrecommendify.c:92: warning: implicit declaration of functionredisCommandrecommendify.c:100: warning: implicit declaration of functionfreeReplyObjectrecommendify.c:111: error: ‘REDIS_REPLY_ARRAYundeclared (first use in this function)
recommendify.c:161: warning: implicit declaration of functionredisAppendCommandrecommendify.c:162: warning: implicit declaration of functionredisGetReplymake: *** [build] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions