This repository has been archived by the owner. It is now read-only.

CouchDB fails on OS X 10.9 Mavericks "Could not find the Erlang crypto library" #23533

Closed
natevw opened this Issue Oct 24, 2013 · 9 comments

Comments

Projects
None yet
6 participants
@natevw

natevw commented Oct 24, 2013

After applying the fix for #23332 at #23458 I still can't build CouchDB.

postel:local natevw$ brew install couchdb
==> Downloading http://www.apache.org/dyn/closer.cgi?path=/couchdb/source/1.4.0/apache-couchdb-1.4.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/couchdb-1.4.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/couchdb/1.4.0 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc --disable-init --with-erlang=/usr/local/lib/erlang/usr/include --with-js-in
Crash dump was written to: erl_crash.dump
init terminating in do_boot (no_crypto)
configure: error: Could not find the Erlang crypto library.

Has Erlang been compiled with OpenSSL support?

brew gist-logs --config --doctor couchdb here: https://gist.github.com/7139581

@matzew

This comment has been minimized.

Show comment
Hide comment
@matzew

matzew Oct 24, 2013

@natevw FWIW - using the Apache CouchDB native application works

Posting here in case someone is OK w/ that route, instead of going via homebrew ;-)

matzew commented Oct 24, 2013

@natevw FWIW - using the Apache CouchDB native application works

Posting here in case someone is OK w/ that route, instead of going via homebrew ;-)

@natevw

This comment has been minimized.

Show comment
Hide comment
@natevw

natevw Oct 24, 2013

Thanks, just finally realized that myself this morning after failing to get either homebrew or build-couchdb to generate a working build. Definitely worth mentioning here.

The actual startup script (which I need to run custom per-project instances e.g. via node-multicouch) is found within the downloaded+unzipped package as ~/Downloads/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/bin/couchdb.

natevw commented Oct 24, 2013

Thanks, just finally realized that myself this morning after failing to get either homebrew or build-couchdb to generate a working build. Definitely worth mentioning here.

The actual startup script (which I need to run custom per-project instances e.g. via node-multicouch) is found within the downloaded+unzipped package as ~/Downloads/Apache\ CouchDB.app/Contents/Resources/couchdbx-core/bin/couchdb.

@strmpnk

This comment has been minimized.

Show comment
Hide comment
@strmpnk

strmpnk Oct 24, 2013

It seems like your Erlang build is the problem. It was likely built w/o openssl. You may want to rebuild that and check the configure log for information on what it is linking to.

strmpnk commented Oct 24, 2013

It seems like your Erlang build is the problem. It was likely built w/o openssl. You may want to rebuild that and check the configure log for information on what it is linking to.

@natevw

This comment has been minimized.

Show comment
Hide comment
@natevw

natevw Oct 24, 2013

Yes, but I did nothing in particular to "break" it, basically just did brew install couchdb and let it install erlang as a dependency for me.

Is there a special incantation to set the right options for brew install erlang manually before trying again, and if so can they be added to the couchdb formula deps so it goes back to Just Working™?

natevw commented Oct 24, 2013

Yes, but I did nothing in particular to "break" it, basically just did brew install couchdb and let it install erlang as a dependency for me.

Is there a special incantation to set the right options for brew install erlang manually before trying again, and if so can they be added to the couchdb formula deps so it goes back to Just Working™?

@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Oct 24, 2013

Contributor

openssl should be in the default erlang install - we request it.

I see that you're on an Xcode-only system. I think it may not be able to find the openssl headers. If you install the CLT by doing xcode-select --install, then reinstall erlang, does that fix this?

Contributor

mistydemeo commented Oct 24, 2013

openssl should be in the default erlang install - we request it.

I see that you're on an Xcode-only system. I think it may not be able to find the openssl headers. If you install the CLT by doing xcode-select --install, then reinstall erlang, does that fix this?

@natevw

This comment has been minimized.

Show comment
Hide comment
@natevw

natevw Oct 24, 2013

Brilliant! Sorry, I just assumed since the only thing in brew doctor was a case-sensitivity warning the Xcode tools were all set. So I ran:

xcode-select --install     # wait for it to complete
brew reinstall erlang      # said "Not now" to javac
brew install couchdb

And now have a working CouchDB again! Thanks much!

natevw commented Oct 24, 2013

Brilliant! Sorry, I just assumed since the only thing in brew doctor was a case-sensitivity warning the Xcode tools were all set. So I ran:

xcode-select --install     # wait for it to complete
brew reinstall erlang      # said "Not now" to javac
brew install couchdb

And now have a working CouchDB again! Thanks much!

@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Oct 24, 2013

Contributor

Since 10.9's quite new, we haven't sorted out all the problems yet. This issue isn't one that we were reporting yet. Sorry!

Contributor

mistydemeo commented Oct 24, 2013

Since 10.9's quite new, we haven't sorted out all the problems yet. This issue isn't one that we were reporting yet. Sorry!

@mistydemeo mistydemeo closed this Oct 24, 2013

@jchris

This comment has been minimized.

Show comment
Hide comment
@jchris

jchris Dec 19, 2013

This ticket saved me some time today, thanks!

jchris commented Dec 19, 2013

This ticket saved me some time today, thanks!

@hethcox

This comment has been minimized.

Show comment
Hide comment
@hethcox

hethcox Dec 27, 2013

Good fix. Natevw's last post worked like a charm.

hethcox commented Dec 27, 2013

Good fix. Natevw's last post worked like a charm.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.