agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Building pl/java on OS/X (Mountain Lion)
Date: Sat, 13 Oct 2012 17:01:09 -0700
Message-ID: <E4ADE262-FAE2-40EC-B53F-D92F2FA51185@me.com> (raw)
In-Reply-To: <86510D0E-3824-40CC-B432-944032169D3E@me.com>
References: <86510D0E-3824-40CC-B432-944032169D3E@me.com>
Sadly, I am not successful at having pl/java work from this binary build. Perhaps some kind soul will know how to make this work, but here's what I've tried:
dynamic_library_path = $libdir:'/Library/PostgreSQL/9.2/pljava/'
log_min_messages = info
custom_variable_classes = 'pljava'
pljava.classpath = '/Library/PostgreSQL/9.2/pljava/pljava.jar'
I have put the pljava.so and *.jars in /Library/PostgreSQL/9.2/pljava
This results with the startup of the postmaster with :
10/13/12 4:52:01.866 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.2[1778]) Exited with code: 1
10/13/12 4:52:01.866 PM com.apple.launchd[1]: (com.edb.launchd.postgresql-9.2) Throttling respawn: Will start in 10 seconds
I then tried to rename pljava.so to pljava.dynlib. Same result. I've chown'd the files to root and postgres, still the same result. I moved pljava.dynlib to /Library/PostgreSQL/lib, with the same results (I commented out the dynamic_library_path, when I tried that).
So at this point, I'm out of ideas. I haven't programmed in C for over a decade and never on the Mac so I'm not going to think up anything brilliant.
Hopefully someone out there has either done this or has some idea of what I'm doing wrong and can give a shout out...
-Hal
On Oct 13, 2012, at 10:39 AM, Hal Hildebrand <hal.hildebrand at me.com> wrote:
> So, I've managed to get a clean build of this, but haven't actually gone through the process of verifying it. Will do so later this weekend and post the results. Here's what I had to do to get this to work.
>
> First, make sure you're using Java 1.6. PL/Java will compile with errors and die.
>
> Make sure you have XCode 4.5. However, for some reason I can't fathom, the build wants to use the 10.6 framework, which doesn't exist in XCode 4.5. After much pain and suffering, I found this link http://www.jamesgeorge.org/uploads/MacOSX10.6.sdk.zip, which you can use to install the 10.6 framework for 4.5. The contents of this file should be expanded into /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
>
> Make sure that you have the postgres binaries in your path. I used the enterprise DB installation for 9.2 and have PATH=/Library/Postgres/9.2/bin:$PATH.
>
> Make sure that you have the PORTNAME environment variable set to "darwin".
>
> Then everything should just work for the make.
>
> As I said, I haven't validated this so I'll be doing that, but fingers crossed....
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
view thread (7+ messages) latest in thread
Message-ID: <E4ADE262-FAE2-40EC-B53F-D92F2FA51185@me.com>
Permalink: ../E4ADE262-FAE2-40EC-B53F-D92F2FA51185@me.com/
Also on: postgresql.org/message-id/E4ADE262-FAE2-40EC-B53F-D92F2FA51185@me.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] Building pl/java on OS/X (Mountain Lion)
In-Reply-To: <E4ADE262-FAE2-40EC-B53F-D92F2FA51185@me.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox