Error installing PostgreSQL on Mac OS X 10.5 using MacPorts

I installed PostgreSQL using MacPorts on several different computers, no problem, but when it comes to my own laptop, I cannot build it.

When I do this command:

sudo port install postgresql83

I get this error:

checking test program... failed
configure: error:
Could not execute a simple test program.  This may be a problem
related to locating shared libraries.  Check the file 'config.log'
for the exact reason.

Error: The following dependencies failed to build: postgresql83
Error: Status 1 encountered during processing.

The config.log file has a length of 7000 lines without the obvious problems that I see (it says "exit 1" on the last line, though!).

I have developer tools and what is not installed, and I upgraded to the latest version of MacPorts and synchronized the ports tree. I can install other things through MacPorts.

I searched in vain for details about what this means. Any suggestions? Thank!

UPDATE: I think this is what causes the crash (from config.log):

configure:8307: ./conftest
dyld: Library not loaded: /opt/local/lib/libxml2.2
  Referenced from: /opt/local/lib/libxslt.1.dylib
  Reason: image not found

libxml2, , , . libxml2 libxslt , , .

+1
3

:

configure:8307: ./conftest
dyld: Library not loaded: /opt/local/lib/libxml2.2
  Referenced from: /opt/local/lib/libxslt.1.dylib
  Reason: image not found

config.log, 700.

, libxml ( , postgresql), libxslt.

libxml ( , ) libxslt, postgresql, .

, postgresql, .

BTW, config.log :

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql83/work/postgresql-8.3.6/config.log
+2

postgresql83 8.3.6 MacPorts. , ? "port info postgresql83" , "sudo port selfupdate && sudo port upgrade -u outdated & sudo port clean postgresql83", , .

, , postgresql83 libxml2, libxml. MacPorts. , (, , ).

0

, , , Mac, mac, postgres. postgres EnterpriseDB .

I tried to install it via mac ports in the past and ended up deciding to manually install it from the source, and it was painful. This installer is pretty good. It puts executables in places suitable for the Mac, puts libraries in the library, and even includes several additional programs that help work with postgres. Give it a chance, there is no need to pull hair with flaky mac ports when there is a good quality installer.

0
source

All Articles