Problems with Perl - Mailing list pgsql-hackers

From Kevin O'Gorman
Subject Problems with Perl
Date
Msg-id 3A0C4F27.D1EDD7A9@pacbell.net
Whole thread Raw
Responses Re: Problems with Perl  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
It appears that something is messed up with regard to Perl
support on my system.  Two things are happening, which may
or may not be related.

1) There is a complaint during make that 
*****
* Cannot build PL/Perl because libperl is not a shared library.
* Skipped.
***** 
I'm running a pretty vanilla RedHat 6.1 setup.  What should
I do about that?

2) Because _something_ was made for Perl, the 'make install'
has to be root.  Okay.  But this is leaving some stuff behind
that is owned by root.  When I attempt a subsequent
'make clean; make' I get into permissions trouble, and have
to delete these things manually.

These events are illustrated in an script(1) capture file,
which I have edited down to a version I have attached here.

++ kevin



-- 
Kevin O'Gorman  (805) 650-6274  mailto:kogorman@pacbell.net
Permanent e-mail forwarder:  mailto:Kevin.O'Gorman.64@Alum.Dartmouth.org
At school: mailto:kogorman@cs.ucsb.edu
Web: http://www.cs.ucsb.edu/~kogorman/index.html
Web: http://trixie.kosman.via.ayuda.com/~kevin/index.html

"There is a freedom lying beyond circumstance,
derived from the direct intuition that life can
be grounded upon its absorption in what is
changeless amid change"   -- Alfred North WhiteheadScript started on Fri Nov 10 10:53:00 2000
[kevin@glynnis OLAP]$ cd pgsql
[kevin@glynnis pgsql]$ make clean
... snip ...
[kevin@glynnis pgsql]$ make
... snip ...
make[4]: Leaving directory `/PG/OLAP/pgsql/src/interfaces/libpq'
make -f Makefile all
make[4]: Entering directory `/PG/OLAP/pgsql/src/interfaces/perl5'
Skip blib/lib/Pg.pm (unchanged)
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux -I/usr/lib/perl5/5.00503 /usr/lib/perl5/5.00503/ExtUtils/xsubpp
-typemap/usr/lib/perl5/5.00503/ExtUtils/typemap -typemap typemap Pg.xs >xstmp.c && mv xstmp.c Pg.c
 
cc -c -I../libpq -I../../include -Dbool=char -DHAS_BOOL -I/usr/local/include -O2    -DVERSION=\"1.8.0\"
-DXS_VERSION=\"1.8.0\"-fpic -I/usr/lib/perl5/5.00503/i386-linux/CORE  Pg.c
 
Running Mkbootstrap for Pg ()
chmod 644 Pg.bs
LD_RUN_PATH="/PG/OLAP/pgsql/src/interfaces/perl5/../libpq" cc -o blib/arch/auto/Pg/Pg.so  -shared -L/usr/local/lib Pg.o
  -L/PG/OLAP/pgsql/src/interfaces/perl5/../libpq -lpq 
 
/usr/bin/ld: cannot open output file blib/arch/auto/Pg/Pg.so: Permission denied
collect2: ld returned 1 exit status
make[4]: *** [blib/arch/auto/Pg/Pg.so] Error 1
make[4]: Leaving directory `/PG/OLAP/pgsql/src/interfaces/perl5'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/PG/OLAP/pgsql/src/interfaces/perl5'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/PG/OLAP/pgsql/src/interfaces'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/PG/OLAP/pgsql/src'
make: *** [all] Error 2
[kevin@glynnis pgsql]$ su
Password: 
[root@glynnis pgsql]# cd src/interfaces/perl5
[root@glynnis perl5]# ls -l
total 252
drwxr-xr-x   2 kevin    users        1024 Nov  9 08:55 CVS
-rw-r--r--   1 kevin    users        3517 May 31 20:07 Changes
-rw-r--r--   1 kevin    users        2080 Oct 24 09:59 GNUmakefile
-rw-r--r--   1 kevin    users         137 May 31 20:07 MANIFEST
-rw-r--r--   1 kevin    users       21422 Nov 10 10:58 Makefile
-rw-r--r--   1 kevin    users        1601 Jun 10 11:01 Makefile.PL
-rw-r--r--   1 kevin    users           0 Nov 10 10:58 Pg.bs
-rw-r--r--   1 kevin    users       72362 Nov 10 10:58 Pg.c
-rw-r--r--   1 kevin    users       85208 Nov 10 10:58 Pg.o
-rw-r--r--   1 kevin    users       18124 Sep 27  1998 Pg.pm
-rw-r--r--   1 kevin    users       18921 Oct 24 10:00 Pg.xs
-rw-r--r--   1 kevin    users        4824 Sep 27  1998 README
drwxr-xr-x   5 root     root         1024 Nov  9 09:07 blib
drwxr-xr-x   3 kevin    users        1024 Oct 29 12:09 examples
-rw-r--r--   1 kevin    users           0 Nov 10 10:58 pm_to_blib
-rw-r--r--   1 kevin    users        7795 Oct 24 10:00 ppport.h
-rw-r--r--   1 kevin    users        7095 Mar 10  2000 test.pl
-rw-r--r--   1 kevin    users         381 Sep 27  1998 typemap
[root@glynnis perl5]# rm -rf blib
[root@glynnis perl5]# exit
exit
[kevin@glynnis pgsql]$ make
... snip ...
make -f Makefile all
make[4]: Entering directory `/PG/OLAP/pgsql/src/pl/plperl'
*****
* Cannot build PL/Perl because libperl is not a shared library.
* Skipped.
*****
make[4]: Leaving directory `/PG/OLAP/pgsql/src/pl/plperl'
make[3]: Leaving directory `/PG/OLAP/pgsql/src/pl/plperl'
make[2]: Leaving directory `/PG/OLAP/pgsql/src/pl'
make[1]: Leaving directory `/PG/OLAP/pgsql/src'
All of PostgreSQL successfully made. Ready to install.
[kevin@glynnis pgsql]$ su
Password: 
[root@glynnis pgsql]# make install
... snip ...
Thank you for choosing PostgreSQL, the most advanced open source database 
engine.


[root@glynnis pgsql]# exit
exit
[kevin@glynnis pgsql]$ 
Script done on Fri Nov 10 11:01:23 2000

pgsql-hackers by date:

Previous
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: Could turn on -O2 in AIX
Next
From: Lamar Owen
Date:
Subject: Re: Problems with Perl