-
Notifications
You must be signed in to change notification settings - Fork 65
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
cannot create instance #1
Comments
I got this in get-deps: checking for C compiler default output file name... |
I got the same error output on Ubuntu 12.04 and I was able to fix it but don't remember exactly how. I hope that helps. When you figure it out let us know what the cause was because the readme will need updating so someone doesn't run into this a third time. |
littlewitchanita - Do you have glibc installed? Google indicates that's a likely cause. Other possible causes are:
It does not appear to be an error with libcouchbase anyhow. What is the system you're trying to build on? I'll create a VM, attempt to compile, and identify what packages are necessary. |
thx xcrdev and fauxsoup, I've tried installing and updating my libraries, but didn't help. fauxsoup: I'm using an amazon VM, which should be a CentOS. Thanks a lot~ |
Use https://github.com/aliyakamercan/cberl instead and install libcouchbase separetely. On amazon linux you can install it like this; sudo wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo |
I can go through get-deps now but got many compile errors in the c_src folder... c_src/callbacks.h:11:5: error: unknown type name ‘libcouchbase_error_t’ |
Did you grab cberl from https://github.com/aliyakamercan/cberl ? In that version several types were renamed to compile with the latest version of libcouchbase. For example libcouchbase_error_t is now lcb_error_t. |
this time i got this in get-deps.... ==> cberl-master (get-deps) ERROR: 'get-deps' failed while processing /tmp/cberl-master: rebar_abort |
try this ==> https://help.github.com/articles/generating-ssh-keys https://github.com/aliyakamercan/cberl builds succesfully without any problems use that one and find answers to your generic questions on google please. |
Ali's solution works, but the dependencies should probably be switched to read-only http URLs instead of SSH. That will prevent people from having the same problem in the future. |
Many thanks to both of you. Yes, it builds successfully. Sorry for being annoying. |
fixed: include/cberl.hrl:7: opaque type handle() is not exported
Hi,
I tried to compile your code with
"./rebar compile"
but an error occured:
==> cberl-master (compile)
Dependency not available: jiffy- ({git,"https://github.com/davisp/jiffy.git",
{branch,master}})
I've tried deleting and getting the deps using rebar, still failed...
How can I compile your code?
Thanks a lot!
Sorry it is my problem, but now I got massive amount of compilation error in c_src/cberl_nif.c
And when I try running, an error occurred:
** exception error: undefined function cberl_nif:new/4
in function cberl:new/5 (src/cberl.erl, line 47)
=ERROR REPORT==== 29-Nov-2012::17:51:27 ===
The on_load function for module cberl_nif returned {error,
{load_failed,
"Failed to load NIF library: './cberl-master/priv/cberl_drv.so: cannot open shared object file: No such file or directory'"}}
I'm pulling the master branch, is there any fix?
The text was updated successfully, but these errors were encountered: