how to get the couchbase ruby client installed on mac os
I have got couchbase server up and running. now I want to use the ruby client(https://github.com/couchbase/couchbase-ruby-client) provided by couchbase team to interact with the server. but i am getting errors while installing the libcouchbase library. as mentioned on the git page, I am trying to install the libcouchbase by
brew install libcouchbase
but this gives me error like
brew install libcouchbase
Error: No available formula for libcouchbase
i tried several other options, but no luck. any help is appreciated.
Hi Jan,
Thank you for replying.
and I think i tried those separate brew installs before and was giving some weird error.
today the errors are different . as per below
######################################################################## 100.0%
Error: /Users/admin/Library/Caches/Homebrew/Formula/libvbucket.rb:4: syntax error, unexpected '<'
^
/Users/admin/Library/Caches/Homebrew/Formula/libvbucket.rb:5: syntax error, unexpected '<'
^
/Users/admin/Library/Caches/Homebrew/Formula/libvbucket.rb:8: syntax error, unexpected '<'
^
/Users/admin/Library/Caches/Homebrew/Formula/libvbucket.rb:8: syntax error, unexpected tIDENTIFIER, expecting $end
^
Please report this bug: https://github.com/mxcl/homebrew/wiki/new-issue
/usr/local/Library/Homebrew/formula.rb:381:in `require'
/usr/local/Library/Homebrew/formula.rb:381:in `factory'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `map'
/usr/local/Library/Homebrew/extend/ARGV.rb:12:in `formulae'
/usr/local/Library/Homebrew/cmd/install.rb:12:in `install'
/usr/local/bin/brew:82:in `send'
/usr/local/bin/brew:82
is that because something is wrong with brew command or with the package its getting from http://packages.couchbase.com/clients/c/homebrew/libvbucket.rb ?
Hi abhishek
Looks like we uploaded wrong files to S3, thanks for pointing this out. Here is my pull requests to homebrew
https://github.com/mxcl/homebrew/pulls/avsej
you can test them and +1 if all is ok.
Here is direct links to files from that pull requests:
https://raw.github.com/avsej/homebrew/libvbucket/Library/Formula/libvbucket.rb https://raw.github.com/avsej/homebrew/libcouchbase/Library/Formula/libcouchbase.rb
Hi avsej
Thank you for your reply and your efforts.
But i still have following issue :(
I tried
brew install https://raw.github.com/avsej/homebrew/libvbucket/Library/Formula/libvbuc...
==> this worked fine
but when i tried
brew install https://raw.github.com/avsej/homebrew/libcouchbase/Library/Formula/libco...
==> ######################################################################## 100.0%
Warning: It appears you have Macports or Fink installed
Software installed with other package managers causes known problems for
Homebrew. If formula fail to build uninstall Macports/Fink and reinstall any
affected formula.
Error: No available formula for libvbucket
though the formula libvbucket is installed.
any idea?
Thanks
I may know someone who can guide you. Let me get back to you.
Hi avsej:
Do these library versions work with couchbase server 2.0.0-dev-preview-3?
If not what should I use instead?
Thanks, Andreas
Check the brew version. I have some error on brew 0.7.1
I update brew to 0.8.1 and all fine.
Hi,
it looks like the homebrew team hasn't merged our pull requests yet. But fear not :)
$ brew install http://packages.couchbase.com/clients/c/homebrew/libvbucket.rb
$ brew install http://packages.couchbase.com/clients/c/homebrew/libcouchbase.rb
Should get you there. Let us know if this works and if you have any other questions :)
Cheers
Jan
--