Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Please ask technical questions in the appropriate category. Thank you!

Problem installing Berkeley DB 5.2.36 on Solaris 11

user13399723Dec 12 2011 — edited Dec 13 2011
Hi,



I am try to install the database on a new server run the OS Solaris 11.



When I use this command

../dist/configure CFLAGS="-m64" CPPFLAGS="-m64" LDFLAGS="-m64"



The last lines of the output says this:

checking for suffix of executables...

checking whether we are cross compiling... configure: error: in `/root/db-5.2.36/build_unix':

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.

See `config.log' for more details





I have look into the config.log file and this is the error I am seeing.

configure:5435: checking whether we are cross compiling

configure:5443: cc -o conftest -m64 -m64 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -m64 conftest.c ; >&5

"conftest.c";, line 10: cannot find include file: <stdio.h>;

"conftest.c";, line 14: undefined symbol: FILE

"conftest.c";, line 14: undefined symbol: f

"conftest.c";, line 14: syntax error before or at: =

"conftest.c";, line 15: warning: implicit function declaration: ferror

"conftest.c";, line 15: warning: implicit function declaration: fclose

"conftest.c";, line 18: warning: statement not reached

cc: acomp failed for conftest.c

configure:5447: $? = 2

configure:5454: ./conftest

../dist/configure[5456]: eval[1]: ./conftest: not found [No such file or directory]

configure:5458: $? = 127

configure:5465: error: in `/root/db-5.2.36/build_unix':

configure:5467: error: cannot run C compiled programs.

If you meant to cross compile, use `--host'.





I am assume the problem is it can not find the stdio.h file but I found it in two places and I made sure they were in my path.



I retry it and get the same error.



If anyone knows what I am doing wrong please let me know.



Thanks John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2012
Added on Dec 12 2011
1 comment
622 views