Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
turn couchdb to .11
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
Matt Lyon authored and adamv committed Apr 11, 2010
1 parent 5ebe781 commit 46a3224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Formula/couchdb.rb
Expand Up @@ -3,8 +3,8 @@
class Couchdb <Formula
url 'git://github.com/apache/couchdb.git'
homepage='http://couchdb.apache.org/'
version "0.10.1"
@specs = {:tag => "tags/0.10.1"}
version "0.11.0"
@specs = {:tag => "tags/0.11.0"}

depends_on 'spidermonkey'
depends_on 'icu4c'
Expand Down

9 comments on commit 46a3224

@caleb
Copy link
Contributor

@caleb caleb commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my machines, if icu4c isn't linked (which it isn't by default, since it's keg only) I get an error when I run couchdb 0.11:

=INFO REPORT==== 11-Apr-2010::13:45:29 ===
    application: couch
    exited: {bad_return,{{couch_app,start,
                                    [normal,
                                     ["/usr/local/etc/couchdb/default.ini",
                                      "/usr/local/etc/couchdb/local.ini"]]},
                         {'EXIT',"dlopen(/usr/local/Cellar/couchdb/0.11.0/lib/couchdb/erlang/lib/couch-0.11.0/priv/lib/couch_icu_driver.so, 2): Library not loaded: libicuuc.43.dylib\n  Referenced from: /usr/local/Cellar/couchdb/0.11.0/lib/couchdb/erlang/lib/couch-0.11.0/priv/lib/couch_icu_driver.so\n  Reason: image not found"}}}
    type: temporary

@mattly
Copy link
Contributor

@mattly mattly commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm, did 0.10.1 work for you?

@caleb
Copy link
Contributor

@caleb caleb commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup.

Does 0.11 work if you unlink icu4c? If you otool -L the couch_icu_driver.so you see relative references to the icu4c libraries, and since icu4c is keg-only, it can't find those libraries since the keg directory isn't in the rpath...

I'm working on patching icu4c to include the full path in the library's ids

Are you launching couchdb with the launchctl service? I'm trying to run it with couchdb start

@mattly
Copy link
Contributor

@mattly mattly commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i just run couchdb from the command-line: > couchdb

this also worked by default on my non-dev mac that doesn't have anything special going on. perhaps instead of making icu4c link by default we should have this recipe link it?

@caleb
Copy link
Contributor

@caleb caleb commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the icu formula to fix the shared library ids of the icu dylibs... this isn't actually linking it in brew, just telling each of the libraries where they live so that when dependent formula are linked to icu, they "remember" where to find the icu4c dylibs:

http://github.com/mxcl/homebrew/issues/issue/1159

@caleb
Copy link
Contributor

@caleb caleb commented on 46a3224 Apr 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's strange that it worked for you. I tried installing couchdb on my macbook pro, and it gives me the same error. The macbook pro installation is 5 days old, and the only formula I installed was imagemagick.

@leepa
Copy link
Contributor

@leepa leepa commented on 46a3224 Apr 13, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work for me either. Just did:

brew uninstall couchdb
brew install couchdb

Ran couchdb and got the error above.

@mxcl
Copy link
Contributor

@mxcl mxcl commented on 46a3224 Apr 13, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah the problem is icu4c has the wrong install_names. I can fix. You'll have to recompile icu4c and then couchdb after though.

@mxcl
Copy link
Contributor

@mxcl mxcl commented on 46a3224 Apr 13, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed: 808f2d0

Uninstall icu4c and couchdb, reinstall icu4c and couchdb.

Please sign in to comment.