dbTalk Databases Forums  

[BUGS] OSX problem with make check...

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] OSX problem with make check... in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Theodore Petrosky
 
Posts: n/a

Default [BUGS] OSX problem with make check... - 08-10-2004 , 08:05 AM






I just updated to OS X 10.3.5 and Xcode 1.5

my configure was

../configure --with-rendezvous
make

this is the error I get with 'make check'. I don't
know if it's my fault but i read all the install docs
and didn't see that I need to do anything special for
the 'make check'...


dyld:
/Users/postgres/software/postgresql-8.0.0beta1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb
can't open library: /usr/local/pgsql/lib/libpq.3.dylib
(No such file or directory, errno = 2)


Ted




__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-10-2004 , 09:29 PM






Adam Witney <awitney (AT) sghms (DOT) ac.uk> writes:
Quote:
Ah, setting DYLD_LIBRARY_PATH does the trick
Great. I'll add that to pg_regress.sh.

Quote:
I notice that it has never built a .dylib library before... In 7.4.x I have
always had a libpq.so library. Is this new?
Yup.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-10-2004 , 09:43 PM



Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
Quote:
this is the error I get with 'make check'.

dyld:
/Users/postgres/software/postgresql-8.0.0beta1/src/test/regress/./tmp_check/install//usr/local/pgsql/bin/initdb
can't open library: /usr/local/pgsql/lib/libpq.3.dylib
(No such file or directory, errno = 2)
Depending on how sticky the OS is about shared library paths, you may
have to do "make install" (at least for the main libraries such as
libpq) before you can "make check". Otherwise the libraries will not
be where the executables look for them.

pg_regress.sh tries to deal with this by setting LD_LIBRARY_PATH,
but evidently that doesn't work on OS X. Do you know any other similar
incantation that does work?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo (AT) postgresql (DOT) org


Reply With Quote
  #4  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-10-2004 , 09:57 PM



I hope we are okay with this... I tried your path and
it didn't work ... I am in bash so I did:

export env
DYLD_LIBRARY_PATH=/Users/postgres/software/postgresql-8.0.0beta1/src/interfaces/libpq

Let me know if there is something else I could try.

Ted

--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Quote:
Adam Witney <awitney (AT) sghms (DOT) ac.uk> writes:
Ah, setting DYLD_LIBRARY_PATH does the trick

Great. I'll add that to pg_regress.sh.

I notice that it has never built a .dylib library
before... In 7.4.x I have
always had a libpq.so library. Is this new?

Yup.

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please
send an appropriate
subscribe-nomail command to
majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list
cleanly



__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings


Reply With Quote
  #5  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-11-2004 , 07:28 AM




This was my bad.... I thought I did what you suggested
however looking through the terminal history I see
that I left out part of the path. The export env works
beautifully for me.

Thanks,

Ted

--- Adam Witney <awitney (AT) sghms (DOT) ac.uk> wrote:

Quote:
I'm not sure I understand you, but you are saying
that it is not working for
you, right? Try setting it to

export env

DYLD_LIBRARY_PATH=/Users/postgres/software/postgresql-8.0.0beta1/src/test/re
gress/tmp_check/install/usr/local/pgsql/lib/


adam


I hope we are okay with this... I tried your path
and
it didn't work ... I am in bash so I did:

export env


DYLD_LIBRARY_PATH=/Users/postgres/software/postgresql-8.0.0beta1/src/interface
s/libpq

Let me know if there is something else I could
try.

Ted

--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Adam Witney <awitney (AT) sghms (DOT) ac.uk> writes:
Ah, setting DYLD_LIBRARY_PATH does the trick

Great. I'll add that to pg_regress.sh.

I notice that it has never built a .dylib
library
before... In 7.4.x I have
always had a libpq.so library. Is this new?

Yup.

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please
send an appropriate
subscribe-nomail command to
majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list
cleanly




__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #6  
Old   
Adam Witney
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-13-2004 , 01:12 PM



On 10/8/04 10:19 pm, "Tom Lane" <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Quote:
Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> writes:
this is the error I get with 'make check'.

dyld:
/Users/postgres/software/postgresql-8.0.0beta1/src/test/regress/./tmp_check/i
nstall//usr/local/pgsql/bin/initdb
can't open library: /usr/local/pgsql/lib/libpq.3.dylib
(No such file or directory, errno = 2)

Depending on how sticky the OS is about shared library paths, you may
have to do "make install" (at least for the main libraries such as
libpq) before you can "make check". Otherwise the libraries will not
be where the executables look for them.

pg_regress.sh tries to deal with this by setting LD_LIBRARY_PATH,
but evidently that doesn't work on OS X. Do you know any other similar
incantation that does work?
Ah, setting DYLD_LIBRARY_PATH does the trick

setenv DYLD_LIBRARY_PATH
/usr/local/install/postgresql-8.0.0beta1/src/test/regress/tmp_check/install/
usr/local/pgsql/lib/

Now it just fails geometry as described in Michael Glaesemann's previous
post.

I notice that it has never built a .dylib library before... In 7.4.x I have
always had a libpq.so library. Is this new?

Thanks

adam


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #7  
Old   
Adam Witney
 
Posts: n/a

Default Re: [BUGS] OSX problem with make check... - 08-13-2004 , 01:27 PM




I'm not sure I understand you, but you are saying that it is not working for
you, right? Try setting it to

export env
DYLD_LIBRARY_PATH=/Users/postgres/software/postgresql-8.0.0beta1/src/test/re
gress/tmp_check/install/usr/local/pgsql/lib/


adam


Quote:
I hope we are okay with this... I tried your path and
it didn't work ... I am in bash so I did:

export env
DYLD_LIBRARY_PATH=/Users/postgres/software/postgresql-8.0.0beta1/src/interface
s/libpq

Let me know if there is something else I could try.

Ted

--- Tom Lane <tgl (AT) sss (DOT) pgh.pa.us> wrote:

Adam Witney <awitney (AT) sghms (DOT) ac.uk> writes:
Ah, setting DYLD_LIBRARY_PATH does the trick

Great. I'll add that to pg_regress.sh.

I notice that it has never built a .dylib library
before... In 7.4.x I have
always had a libpq.so library. Is this new?

Yup.

regards, tom lane

---------------------------(end of
broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please
send an appropriate
subscribe-nomail command to
majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list
cleanly




__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.