Postgres failed to build on 10.7 #16941

Closed
amitamb opened this Issue Jan 7, 2013 · 5 comments

Comments

Projects
None yet
2 participants

amitamb commented Jan 7, 2013

I tried installing postgres but got bunch of errors

https://gist.github.com/4475899

Contributor

adamv commented Jan 7, 2013

Pasting in error from config.log:

configure:23745: checking test program
configure:23765: cc -o conftest -I/usr/local/Cellar/ossp-uuid/1.6.2/include -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv  -I/usr/include/libxml2  -L/usr/local/Cellar/ossp-uuid/1.6.2/lib  conftest.c -lxslt -lxml2 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm -luuid >&5
configure:23769: $? = 0
configure:23775: ./conftest
dyld: Library not loaded: @loader_path/../lib/libcrypto.1.0.0.dylib
  Referenced from: /usr/lib/libssl.1.0.0.dylib
  Reason: image not found
./configure: line 23777:  6793 Trace/BPT trap: 5       ./conftest$ac_exeext
Contributor

adamv commented Jan 7, 2013

On Lion, in /usr/lib, I have libssl.0.9.7.dylib, libssl.0.9.8.dylib, and a libssl.dylib symlink.

I have no /usr/lib/libssl.1.0.0.dylib in that folder.

amitamb commented Jan 11, 2013

I am new to OSx and brew. Could you please elaborate on what action should I take? Thanks for looking into it.

Contributor

adamv commented Jan 11, 2013

I'm not sure what to suggest, or why you have a different copy of that file.
Have you installed any software that required a password via a .PKG that possibly wrote files here?

Contributor

adamv commented Jan 20, 2013

These are the ssl files and linkages on my 10.7.5 box; if you have different files here then you'll probably have to clean them out. Of course messing with /usr/lib can cause the system to be unstable.

$ ls -la /usr/lib/libssl*
-rwxr-xr-x  1 root  wheel  428848 Mar 26  2012 /usr/lib/libssl.0.9.7.dylib
-rwxr-xr-x  1 root  wheel  614832 Mar 26  2012 /usr/lib/libssl.0.9.8.dylib
lrwxr-xr-x  1 root  wheel      18 Mar 26  2012 /usr/lib/libssl.dylib -> libssl.0.9.8.dylib

$ otool -L `ls /usr/lib/libssl*`
/usr/lib/libssl.0.9.7.dylib:
    /usr/lib/libssl.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
    /usr/lib/libcrypto.0.9.7.dylib (compatibility version 0.9.7, current version 0.9.7)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.0.0)
/usr/lib/libssl.0.9.8.dylib:
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/lib/libssl.dylib:
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 44.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)

You will likely also need to remove some or all of the "unexpected" files that brew doctor is detecting as well.

adamv closed this Jan 20, 2013

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

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