OS X Homebrew script for C-SDK points at a downlevel version


#1

Gentlefolk,

The Homebrew script for the C SDK on OS X still points at libcouchbase-2.2.0.

astraeus:~ awd$ brew install https://github.com/couchbase/homebrew/raw/stable/Library/Formula/libcouchbase.rb ######################################################################## 100.0% Warning: libcouchbase-2.2.0 already installed astraeus:~ awd$ brew upgrade https://github.com/couchbase/homebrew/raw/stable/Library/Formula/libcouchbase.rb ######################################################################## 100.0% Error: libcouchbase-2.2.0 already installed

Please upgrade the script as part of your release process.

Anon,
Andrew


#2

Hi,

Thanks for reporting this has been updated, and seems to be in master. If it doesn’t update for you could you please check via $ brew edit libcouchbase to see if you have the newest version pulled? It should point to 2.3.0

class Libcouchbase < Formula homepage 'http://couchbase.com/communities/c' url 'http://packages.couchbase.com/clients/c/libcouchbase-2.3.0.tar.gz' sha1 'dbb97594582e5a9240fa8090bb756990f2d1b550' ... end

Cheers Phil


#3

Phil,

It does not appear to have migrated into the Homebrew infrastructure:

astraeus:~ awd$ brew update Updated Homebrew from 36ce17eb to 46a69afc. ==> Updated Formulae align coremod fwknop gnu-apl haxe nettle pcre ruby vte yajl bash docbook-xsl giflib gnutls libxmp opam readline rzip wdiff astraeus:~ awd$ brew upgrade https://github.com/couchbase/homebrew/raw/stable/Library/Formula/libcouchbase.rb ######################################################################## 100.0% Error: libcouchbase-2.2.0 already installed

Anon,
Andrew


#4

You are actually installing from the couchbase for with 2.2.0 explicitly, what you should do is just run

$ brew upgrade libcouchbase

without the https:// … because libcouchbase is actually part of the master homebrew repo. If this does not work try uninstalling and reinstalling

$ brew uninstall libcouchbase && brew cleanup $ brew install libcouchbase

hope that helps

Cheers Phil


#5

Phil,

Thank you for the added advice.

The commands above come from Couchbase documentation. I only use Homebrew to install libcouchbase. Hence, I do not know the other commands and do not have the time or need to learn them. You may wish to modestly expand your installation instructions for libcouchbase to include this upgrade case. One way to save your firm support cash is to edit-in the common problems into your documentation.

Again, thank you for the solution.

Anon,
Andrew


#6

Sorry for the misleading documentation, do you mind pointing me where this is stated so I can make sure that it will be updated?

Thanks, and if you have any more questions ask away!


#7

Phil,

Here you go.

Anon,
Andrew


#8

http://docs.couchbase.com/couchbase-sdk-c-2.3/index.html#installing-using-packages-on-mac-os-x.

https://www.couchbase.com/issues/browse/CCBC-363