cloudfoundry-incubator / diego-release Install is failing


Shetty, Daya <Daya.Shetty@...>
 

Hi,

Here is my setup :

Mac OS : Yosemite 10.10.4
Virtual Box: Vm Manager.
BOSH 1.3012.0

I’m trying to install the diego release on OS X and have followed the recommended steps from the following link:

https://github.com/cloudfoundry-incubator/diego-release

Steps 1… 7 were all good but its failing on

Step 8 while executing

cd ~/workspace/cf-release
bosh create release —force

Here is the error


> Installing pg 0.16.0 with native extensions

>

> Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

>

> /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb

> checking for pg_config... yes

> Using config values from /usr/local/bin/pg_config

> checking for libpq-fe.h... yes

> checking for libpq/libpq-fs.h... yes

> checking for pg_config_manual.h... yes

> checking for PQconnectdb() in -lpq... no

> checking for PQconnectdb() in -llibpq... no

> checking for PQconnectdb() in -lms/libpq... no

> Can't find the PostgreSQL client library (libpq)

> *** extconf.rb failed ***

> Could not create Makefile due to some reason, probably lack of necessary

> libraries and/or headers. Check the mkmf.log file for more details.


Looking through mkmf.log for the error it clearly indicates that there is pq library mismatch but don’t know how I can resolve this error.. Here is a snippet from the log..


ave_library: checking for PQconnectdb() in -lpq... -------------------- no


"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin14 -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0 -I. -I/usr/local/Cellar/postgresql/9.4.4/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_SYNC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib -L/usr/local/Cellar/postgresql/9.4.4/lib -L. -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/postgresql/9.4.4/lib -arch x86_64 -arch i386 -lruby.2.0.0 -lpq -lpthread -ldl -lobjc "

ld: warning: ignoring file /usr/local/Cellar/postgresql/9.4.4/lib/libpq.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/postgresql/9.4.4/lib/libpq.dylib

Undefined symbols for architecture i386:

"_PQconnectdb", referenced from:

_t in conftest-62b250.o

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

checked program was:

/* begin */

1: #include "ruby.h"

2:

3: #include <libpq-fe.h>

4:

5: /*top*/

6: extern int t(void);

7: int t(void) { void ((*volatile p)()); p = (void ((*)()))PQconnectdb; return 0; }

8: int main(int argc, char **argv)

9: {

10: if (argc > 1000000) {

11: printf("%p", &t);

12: }

13:

14: return 0;

15: }

/* end */


"xcrun clang -o conftest -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/universal-darwin14 -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0/ruby/backward -I/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/include/ruby-2.0.0 -I. -I/usr/local/Cellar/postgresql/9.4.4/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -Os -pipe -DHAVE_GCC_SYNC_BUILTINS conftest.c -L. -L/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib -L/usr/local/Cellar/postgresql/9.4.4/lib -L. -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/postgresql/9.4.4/lib -arch x86_64 -arch i386 -lruby.2.0.0 -lpq -lpthread -ldl -lobjc "

conftest.c:7:27: error: too few arguments to function call, single argument 'conninfo' was not specified

int t(void) { PQconnectdb(); return 0; }


I have installed postgresql release 9.4.4 and the libraries are correctly installed in /usr/local/lib


Here is the dir list


lrwxr-xr-x 1 fkfkf admin 46 Jul 10 11:10 libpq.5.7.dylib -> ../Cellar/postgresql/9.4.4/lib/libpq.5.7.dylib

lrwxr-xr-x 1 fkfkf admin 44 Jul 10 11:10 libpq.5.dylib -> ../Cellar/postgresql/9.4.4/lib/libpq.5.dylib

lrwxr-xr-x 1 fkfkf admin 38 Jul 10 11:10 libpq.a -> ../Cellar/postgresql/9.4.4/lib/libpq.a

lrwxr-xr-x 1 fkfkf admin 42 Jul 10 11:10 libpq.dylib -> ../Cellar/postgresql/9.4.4/lib/libpq.dylib



If it helps, I have attached the mkmf.log, any help to resolve this issue is much appreciated.


Regards

Daya





The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. If you are not the intended recipient please return the e-mail to the sender and delete it from your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures relating to European legal entities.


Ronak Banka
 

Hello,

Instead of creating the release , you can use the final release and upload
it.

http://bosh.io/releases/github.com/cloudfoundry-incubator/diego-release

Ronak



--
View this message in context: http://cf-bosh.70367.x6.nabble.com/cf-bosh-cloudfoundry-incubator-diego-release-Install-is-failing-tp441p442.html
Sent from the CF BOSH mailing list archive at Nabble.com.


Shetty, Daya <Daya.Shetty@...>
 

Thanks Ronak!

-Daya

On 7/13/15, 1:28 AM, "cf-bosh-bounces(a)lists.cloudfoundry.org on behalf of
ronak banka" <cf-bosh-bounces(a)lists.cloudfoundry.org on behalf of
ronakbanka.cse(a)gmail.com> wrote:

Hello,

Instead of creating the release , you can use the final release and upload
it.

http://bosh.io/releases/github.com/cloudfoundry-incubator/diego-release

Ronak



--
View this message in context:
http://cf-bosh.70367.x6.nabble.com/cf-bosh-cloudfoundry-incubator-diego-re
lease-Install-is-failing-tp441p442.html
Sent from the CF BOSH mailing list archive at Nabble.com.
_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh
The information contained in this e-mail, and any attachment, is confidential and is intended solely for the use of the intended recipient. Access, copying or re-use of the e-mail or any attachment, or any information contained therein, by any other person is not authorized. If you are not the intended recipient please return the e-mail to the sender and delete it from your computer. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.

Please refer to http://disclaimer.bnymellon.com/eu.htm for certain disclosures relating to European legal entities.