Problem: I am facing trouble compiling Oracle Berkeley DB 4.0. Here is the error when i run the command as follows:
bash-3.00# ./dist/ltmain.sh
: not configured to build any kind of library
Fatal configuration error. See the libtool docs for more information.
Solution: It seems like gcc is not set in my path as it is solaris 10 machine.
Now, I have set the path as follows:
export PATH=$PATH:/usr/sfw/bin
Now, I will run ./configure from Berkeley DB distribution directory:
bash-3.00# pwd
/opt1/Oracle/Sriram_Working_on_Erroneous_Installers/Sriram_Berkeley_DB_Work/4.0/db-4.0.14/dist
bash-3.00# ./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking if building in the top-level directory... no
checking if --enable-compat185 option specified... no
checking if --enable-cxx option specified... no
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-rpc option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-embedix=DIR option specified... no
checking if --with-rpm=DIR option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for ar... missing_ar
configure: error: No ar utility found.
Now, ar tool is missing. Searching for Solaris Freeware packages:
I got the following sites:
http://unixpackages.com/
http://www.sunfreeware.com/account_login.html
Great, I got "ar" utility from /usr/ccs/bin. Append this path to PATH environment variable.Put this in /root/.profile file.
Then cd to /%/db-4.0.14/dist directory:
give the following commands:
bash-3.00# ./configure
bash-3.00# make -f Makefile
bash-3.00# make install
bash-3.00# make test
make: Fatal error: Don't know how to make target `test'
last test fatal error is ok, There is no problem.
Now, my Berkeley DB is ready at /usr/local/BerkeleyDB.4.0/ for Solaris10 :
bash-3.00# ls -l /usr/local/BerkeleyDB.4.0/
total 8
drwxr-xr-x 2 root root 512 Nov 6 18:42 bin
drwxr-xr-x 10 root root 512 Nov 6 18:42 docs
drwxr-xr-x 2 root root 512 Nov 6 18:42 include
drwxr-xr-x 2 root root 512 Nov 6 18:42 lib
bash-3.00# ./dist/ltmain.sh
: not configured to build any kind of library
Fatal configuration error. See the libtool docs for more information.
Solution: It seems like gcc is not set in my path as it is solaris 10 machine.
Now, I have set the path as follows:
export PATH=$PATH:/usr/sfw/bin
Now, I will run ./configure from Berkeley DB distribution directory:
bash-3.00# pwd
/opt1/Oracle/Sriram_Working_on_Erroneous_Installers/Sriram_Berkeley_DB_Work/4.0/db-4.0.14/dist
bash-3.00# ./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking if building in the top-level directory... no
checking if --enable-compat185 option specified... no
checking if --enable-cxx option specified... no
checking if --enable-debug option specified... no
checking if --enable-debug_rop option specified... no
checking if --enable-debug_wop option specified... no
checking if --enable-diagnostic option specified... no
checking if --enable-dump185 option specified... no
checking if --enable-java option specified... no
checking if --enable-posixmutexes option specified... no
checking if --enable-rpc option specified... no
checking if --enable-tcl option specified... no
checking if --enable-test option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --with-embedix=DIR option specified... no
checking if --with-rpm=DIR option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for ar... missing_ar
configure: error: No ar utility found.
Now, ar tool is missing. Searching for Solaris Freeware packages:
I got the following sites:
http://unixpackages.com/
http://www.sunfreeware.com/account_login.html
Great, I got "ar" utility from /usr/ccs/bin. Append this path to PATH environment variable.Put this in /root/.profile file.
Then cd to /%/db-4.0.14/dist directory:
give the following commands:
bash-3.00# ./configure
bash-3.00# make -f Makefile
bash-3.00# make install
bash-3.00# make test
make: Fatal error: Don't know how to make target `test'
last test fatal error is ok, There is no problem.
Now, my Berkeley DB is ready at /usr/local/BerkeleyDB.4.0/ for Solaris10 :
bash-3.00# ls -l /usr/local/BerkeleyDB.4.0/
total 8
drwxr-xr-x 2 root root 512 Nov 6 18:42 bin
drwxr-xr-x 10 root root 512 Nov 6 18:42 docs
drwxr-xr-x 2 root root 512 Nov 6 18:42 include
drwxr-xr-x 2 root root 512 Nov 6 18:42 lib
No comments:
Post a Comment