473,395 Members | 2,006 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Compiling postgres-7.4.1

hello,
Iam trying to install postgres-7.4.1 on my tru64 (O.S version 5.1A) box
without the shared library support.

Here's my list of commands:
../configure --with-includes=/opt/gcc-33/include --prefix=/tools/postgres-741
--disable-shared
gmake
gmake install

The "gmake" successfully compiles the software but "gmake install" throws
the following error:
/bin/sh ../../../../../../config/install-sh -c -m 755
/tools/postgres-741/lib/ascii_and_mic.so
install: /tools/postgres-741/lib/ascii_and_mic.so does not exist
gmake[3]: *** [install] Error 1
gmake[3]: Leaving directory
`/tools/SW/postgresql-7.4.1/src/backend/utils/mb/conversion_procs/ascii_and_
mic'
gmake[2]: *** [install] Error 2
gmake[2]: Leaving directory
`/tools/SW/postgresql-7.4.1/src/backend/utils/mb/conversion_procs'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/tools/SW/postgresql-7.4.1/src'
gmake: *** [install] Error 2

Iam not sure why the install program searches for the shared objects.
I have read the INSTALL file but there's nothing mentioned on
"--disable-shared" option in the configure command.
Surprisingly, google also failed to answer my question.

So how will i be able to compile postgres without the shared library support
?

Thanks in advance,
Bala S
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Nov 22 '05 #1
1 1722
"Sathiamoorthy Balasubramaniyan (ext_TCS)" <Ba************************************@ts.siemens .de> writes:
Iam trying to install postgres-7.4.1 on my tru64 (O.S version 5.1A) box
without the shared library support.


There seems to be some bit-rot in the support for --disable-shared.
I've applied the attached patch to fix it.

Note that without shared libraries, you are not going to have any PL
languages nor any character encoding conversion support. That's rather
a big restriction, so you might want to look into how to get shared
libraries to work, instead ...

regards, tom lane

Index: src/backend/utils/mb/conversion_procs/proc.mk
================================================== =================
RCS file: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/proc.mk,v
retrieving revision 1.6
diff -c -r1.6 proc.mk
*** src/backend/utils/mb/conversion_procs/proc.mk 23 Aug 2003 04:22:34 -0000 1.6
--- src/backend/utils/mb/conversion_procs/proc.mk 21 Jan 2004 19:24:05 -0000
***************
*** 12,18 ****
--- 12,20 ----
include $(top_srcdir)/src/Makefile.shlib

install: all
+ ifeq ($(enable_shared), yes)
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)
+ endif

uninstall:
rm -f $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)
Index: src/backend/utils/mb/conversion_procs/Makefile
================================================== =================
RCS file: /cvsroot/pgsql-server/src/backend/utils/mb/conversion_procs/Makefile,v
retrieving revision 1.9
diff -c -r1.9 Makefile
*** src/backend/utils/mb/conversion_procs/Makefile 23 Aug 2003 04:22:34 -0000 1.9
--- src/backend/utils/mb/conversion_procs/Makefile 21 Jan 2004 19:24:05 -0000
***************
*** 147,152 ****
--- 147,153 ----
@for dir in $(DIRS); do $(MAKE) -C $$dir $@ || exit; done

$(SQLSCRIPT): Makefile
+ ifeq ($(enable_shared), yes)
@set $(CONVERSIONS) ; \
while [ "$$#" -gt 0 ] ; \
do \
***************
*** 160,165 ****
--- 161,169 ----
echo "DROP CONVERSION pg_catalog.$$name;"; \
echo "CREATE DEFAULT CONVERSION pg_catalog.$$name FOR '$$se' TO '$$de' FROM $$func;"; \
done > $@
+ else
+ echo "-- No conversion support, for lack of shared library support" > $@
+ endif

$(REGRESSION_SCRIPT): Makefile
@cp regress_prolog $@; \
Index: src/pl/plperl/GNUmakefile
================================================== =================
RCS file: /cvsroot/pgsql-server/src/pl/plperl/GNUmakefile,v
retrieving revision 1.10
diff -c -r1.10 GNUmakefile
*** src/pl/plperl/GNUmakefile 28 May 2002 16:57:53 -0000 1.10
--- src/pl/plperl/GNUmakefile 21 Jan 2004 19:24:05 -0000
***************
*** 37,43 ****
--- 37,49 ----
$(PERL) $(perl_privlibexp)/ExtUtils/xsubpp -typemap $(perl_privlibexp)/ExtUtils/typemap $< >$@

install: all installdirs
+ ifeq ($(enable_shared), yes)
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plperl$(DLSUFFIX)
+ else
+ @echo "*****"; \
+ echo "* PL/Perl was not installed due to lack of shared library support."; \
+ echo "*****"
+ endif

installdirs:
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
Index: src/pl/plpython/Makefile
================================================== =================
RCS file: /cvsroot/pgsql-server/src/pl/plpython/Makefile,v
retrieving revision 1.11
diff -c -r1.11 Makefile
*** src/pl/plpython/Makefile 5 Sep 2002 18:28:46 -0000 1.11
--- src/pl/plpython/Makefile 21 Jan 2004 19:24:05 -0000
***************
*** 32,38 ****
--- 32,44 ----
all: all-lib

install: all installdirs
+ ifeq ($(enable_shared), yes)
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/plpython$(DLSUFFIX)
+ else
+ @echo "*****"; \
+ echo "* PL/Python was not installed due to lack of shared library support."; \
+ echo "*****"
+ endif

installdirs:
$(mkinstalldirs) $(DESTDIR)$(pkglibdir)
Index: src/pl/tcl/Makefile
================================================== =================
RCS file: /cvsroot/pgsql-server/src/pl/tcl/Makefile,v
retrieving revision 1.40
diff -c -r1.40 Makefile
*** src/pl/tcl/Makefile 27 Sep 2003 19:35:32 -0000 1.40
--- src/pl/tcl/Makefile 21 Jan 2004 19:24:05 -0000
***************
*** 44,50 ****
--- 44,56 ----
$(MAKE) -C modules $@

install: all installdirs
+ ifeq ($(enable_shared), yes)
$(INSTALL_SHLIB) $(shlib) $(DESTDIR)$(pkglibdir)/$(NAME)$(DLSUFFIX)
+ else
+ @echo "*****"; \
+ echo "* PL/Tcl was not installed due to lack of shared library support."; \
+ echo "*****"
+ endif
$(MAKE) -C modules $@

installdirs:
***************
*** 60,66 ****
# Provide dummy targets for the case where we can't build the shared library.
all:
@echo "*****"; \
! echo "* Cannot build pltcl because Tcl is not a shared library; skipping it."; \
echo "*****"

endif # TCL_SHARED_BUILD = 0
--- 66,72 ----
# Provide dummy targets for the case where we can't build the shared library.
all:
@echo "*****"; \
! echo "* Cannot build PL/Tcl because Tcl is not a shared library; skipping it."; \
echo "*****"

endif # TCL_SHARED_BUILD = 0

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Abdul-Wahid Paterson | last post by:
Hi, I have had a site working for the last 2 years and have had no problems until at the weekend I replace my database server with a newer one. The database migration went like a dream and I had...
3
by: warwick.poole | last post by:
I am interested in finding out about Enterprise scale Postgres installations and clustering, especially on Linux. Essentially I would like to know the possibility that Postgres can store the...
2
by: Keith Bottner | last post by:
I just reinstalled my system and am in the process of getting PostgreSQL up and running again. During compilation of Postgres I received the following error: .... checking for main in...
18
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
1
by: Jack Orenstein | last post by:
I'm trying to configure PHP 5.2.0 with support for Postgres 8.1.3. Postgres was installed with FC5 without source. PHP's configure needs source. When I run configure: configure: error: Cannot...
0
by: NM | last post by:
Hello, I've got a problem inserting binary objects into the postgres database. I have binary objects (e.g. images or smth else) of any size which I want to insert into the database. Funny is it...
1
by: Kevin T. Ryan | last post by:
Hi All - I'm trying to compile Python on a Centos machine (RHEL) 3.8 for a hosting account that I just set up and I'm having 2 issues: 1. I ran into an issue with the "hashlib" module ...
2
by: jmishra | last post by:
Hi, I am compiling perl 5.8 on i386-linux architecture,every thing went fine and I am able to execute normal perl scripts thorugh this newly built perl. But when I try to execute script which...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.