pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Pgaccess on MacOSX.... solved
3+ messages / 2 participants
[nested] [flat]
* Re: Pgaccess on MacOSX.... solved
@ 2002-09-24 10:31 Adam Witney <awitney@sghms.ac.uk>
2002-09-24 11:54 ` Re: Pgaccess on MacOSX.... solved C. Maj <cmaj@freedomcorpse.info>
0 siblings, 1 reply; 3+ messages in thread
From: Adam Witney @ 2002-09-24 10:31 UTC (permalink / raw)
To: pgsql-interfaces
Well, I kind of fiddled it a little... From the src/interface/libpgtcl
directory I ran 'make' then 'make clean' and then manually ran the compile
commands from the command line, only changing the last command...
Substituting -dynamiclib for -bundle and changing the name of the output
lib. Then copied the .dylib to the appropriate place
I have pasted it here in case it is of use to anyone else
make -C ../../../src/interfaces/libpq all
gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include -c -o pgtcl.o pgtcl.c
gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include -c -o pgtclCmds.o pgtclCmds.c
gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../src/interfaces/libpq
-I../../../src/include -c -o pgtclId.o pgtclId.c
ar cr libpgtcl.a `lorder pgtcl.o pgtclCmds.o pgtclId.o | tsort`
ranlib libpgtcl.a
gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
-Wmissing-declarations -flat_namespace -dynamiclib -undefined suppress
pgtcl.o pgtclCmds.o pgtclId.o -L../../../src/interfaces/libpq -lpq -o
libpgtcl.2.2.dylib
> Has anyone tried running pgaccess on MacOSX 10.2?
>
> I get this error when trying
>
> dyld: /sw/bin/wish can't open library: /sw/lib/libpgtcl.dylib (No such file
> or directory, errno = 2)
> Trace/BPT trap
>
> I only have libpgtcl.so libraries.... Any ideas why its looking for the
> .dylib version?
>
> Any help would be greatly appreciated
>
> Thanks
>
> adam
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pgaccess on MacOSX.... solved
2002-09-24 10:31 Re: Pgaccess on MacOSX.... solved Adam Witney <awitney@sghms.ac.uk>
@ 2002-09-24 11:54 ` C. Maj <cmaj@freedomcorpse.info>
2002-09-24 12:03 ` Re: Pgaccess on MacOSX.... solved Adam Witney <awitney@sghms.ac.uk>
0 siblings, 1 reply; 3+ messages in thread
From: C. Maj @ 2002-09-24 11:54 UTC (permalink / raw)
To: Adam Witney <awitney@sghms.ac.uk>; +Cc: pgsql-interfaces
So you basically made a symlink from a .dylib to a .so ?
I'm not familiar with OSX, but if this worked out for you, would you be
interested in posting it to the PgAccess wiki ?
http://www.pgaccess.org/
We are currently sorely missing an active OSX person.
--Chris
On Tue, 24 Sep 2002, Adam Witney waxed:
>
> Well, I kind of fiddled it a little... From the src/interface/libpgtcl
> directory I ran 'make' then 'make clean' and then manually ran the compile
> commands from the command line, only changing the last command...
> Substituting -dynamiclib for -bundle and changing the name of the output
> lib. Then copied the .dylib to the appropriate place
>
> I have pasted it here in case it is of use to anyone else
>
> make -C ../../../src/interfaces/libpq all
>
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/interfaces/libpq
> -I../../../src/include -c -o pgtcl.o pgtcl.c
>
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/interfaces/libpq
> -I../../../src/include -c -o pgtclCmds.o pgtclCmds.c
>
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../src/interfaces/libpq
> -I../../../src/include -c -o pgtclId.o pgtclId.c
>
> ar cr libpgtcl.a `lorder pgtcl.o pgtclCmds.o pgtclId.o | tsort`
> ranlib libpgtcl.a
>
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -flat_namespace -dynamiclib -undefined suppress
> pgtcl.o pgtclCmds.o pgtclId.o -L../../../src/interfaces/libpq -lpq -o
> libpgtcl.2.2.dylib
>
>
>
>
>
> > Has anyone tried running pgaccess on MacOSX 10.2?
> >
> > I get this error when trying
> >
> > dyld: /sw/bin/wish can't open library: /sw/lib/libpgtcl.dylib (No such file
> > or directory, errno = 2)
> > Trace/BPT trap
> >
> > I only have libpgtcl.so libraries.... Any ideas why its looking for the
> > .dylib version?
> >
> > Any help would be greatly appreciated
> >
> > Thanks
> >
> > adam
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
--
Chris Maj <cmaj_hat_freedomcorpse_hot_info>
0xC0051F6A
5EB8 2035 F07B 3B09 5A31 7C09 196F 4126 C005 1F6A
?????????????????????????????????? Bush knew.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pgaccess on MacOSX.... solved
2002-09-24 10:31 Re: Pgaccess on MacOSX.... solved Adam Witney <awitney@sghms.ac.uk>
2002-09-24 11:54 ` Re: Pgaccess on MacOSX.... solved C. Maj <cmaj@freedomcorpse.info>
@ 2002-09-24 12:03 ` Adam Witney <awitney@sghms.ac.uk>
0 siblings, 0 replies; 3+ messages in thread
From: Adam Witney @ 2002-09-24 12:03 UTC (permalink / raw)
To: C. Maj <cmaj@freedomcorpse.info>; +Cc: pgsql-interfaces
No, when compiling the library I used -dynamiclib instead of -bundle to
compile a .dylib instead of a .so ... at this stage:
>> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
>> -Wmissing-declarations -flat_namespace -dynamiclib -undefined suppress
>> pgtcl.o pgtclCmds.o pgtclId.o -L../../../src/interfaces/libpq -lpq -o
>> libpgtcl.2.2.dylib
I found some useful info on this here
http://fink.sourceforge.net/doc/porting/shared.php
I would be happy to post it to PgAccess wiki
adam
> So you basically made a symlink from a .dylib to a .so ?
>
> I'm not familiar with OSX, but if this worked out for you, would you be
> interested in posting it to the PgAccess wiki ?
>
> http://www.pgaccess.org/
>
> We are currently sorely missing an active OSX person.
>
> --Chris
>
>
> On Tue, 24 Sep 2002, Adam Witney waxed:
>
>>
>> Well, I kind of fiddled it a little... From the src/interface/libpgtcl
>> directory I ran 'make' then 'make clean' and then manually ran the compile
>> commands from the command line, only changing the last command...
>> Substituting -dynamiclib for -bundle and changing the name of the output
>> lib. Then copied the .dylib to the appropriate place
>>
>> I have pasted it here in case it is of use to anyone else
>>
>> make -C ../../../src/interfaces/libpq all
>>
>> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
>> -Wmissing-declarations -I../../../src/interfaces/libpq
>> -I../../../src/include -c -o pgtcl.o pgtcl.c
>>
>> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
>> -Wmissing-declarations -I../../../src/interfaces/libpq
>> -I../../../src/include -c -o pgtclCmds.o pgtclCmds.c
>>
>> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
>> -Wmissing-declarations -I../../../src/interfaces/libpq
>> -I../../../src/include -c -o pgtclId.o pgtclId.c
>>
>> ar cr libpgtcl.a `lorder pgtcl.o pgtclCmds.o pgtclId.o | tsort`
>> ranlib libpgtcl.a
>>
>> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
>> -Wmissing-declarations -flat_namespace -dynamiclib -undefined suppress
>> pgtcl.o pgtclCmds.o pgtclId.o -L../../../src/interfaces/libpq -lpq -o
>> libpgtcl.2.2.dylib
>>
>>
>>
>>
>>
>>> Has anyone tried running pgaccess on MacOSX 10.2?
>>>
>>> I get this error when trying
>>>
>>> dyld: /sw/bin/wish can't open library: /sw/lib/libpgtcl.dylib (No such file
>>> or directory, errno = 2)
>>> Trace/BPT trap
>>>
>>> I only have libpgtcl.so libraries.... Any ideas why its looking for the
>>> .dylib version?
>>>
>>> Any help would be greatly appreciated
>>>
>>> Thanks
>>>
>>> adam
>>>
>>>
>>> ---------------------------(end of broadcast)---------------------------
>>> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 2: you can get off all lists at once with the unregister command
>> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2002-09-24 12:03 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-24 10:31 Re: Pgaccess on MacOSX.... solved Adam Witney <awitney@sghms.ac.uk>
2002-09-24 11:54 ` C. Maj <cmaj@freedomcorpse.info>
2002-09-24 12:03 ` Adam Witney <awitney@sghms.ac.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox