Mailing List Archive

DCOracle2: lib vs lib64: make fails on SuSE SLES 9
I'm having trouble installing DCOracle2 on SuSE
Enterprise 9 on x86_64 (single Opteron). make fails,
see error message below.

make[2]: *** No rule to make target
`/usr/lib/python2.3/config/Makefile', needed by
`sedscript'. Stop.

It should be looking for /usr/lib64/python2.3/config/


What should I change to point to the right dir:
Makefile, environment, something else?

Thanks

Christian Long

----------------------------------------------------
Additional information


Of course, install.py doesn't work (ERROR: Python
version mismatch ) However, python setup.py install
seems to work.

>>> print platform.platform()
Linux-2.6.5-7.191-smp-x86_64-with-SuSE-9-x86_64

uname -a
Linux my_host 2.6.5-7.191-smp #1 SMP Tue Jun 28
14:58:56 UTC 2005 x86_64 x86_64 x86_64 GNU/Linux


# make
(cd src; \
cp -p Setup.in Setup )
(cd src; \
make -f Makefile.pre.in boot PYTHON=python ||
./setuperrors; \
make dummy || ./setuperrors)
make[1]: Entering directory
`/home/mra_admn/downloads/DCOracle2/src'
rm -f *.o *~
rm -f *.a tags TAGS config.c Makefile.pre python
sedscript
rm -f *.so *.sl so_locations
VERSION=`python -c "import sys; print
sys.version[:3]"`; \
installdir=`python -c "import sys; print sys.prefix"`;
\
exec_installdir=`python -c "import sys; print
sys.exec_prefix"`; \
make -f ./Makefile.pre.in VPATH=. srcdir=. \
VERSION=$VERSION \
installdir=$installdir \
exec_installdir=$exec_installdir \
Makefile
make[2]: Entering directory
`/home/mra_admn/downloads/DCOracle2/src'
make[2]: *** No rule to make target
`/usr/lib/python2.3/config/Makefile', needed by
`sedscript'. Stop.
make[2]: Leaving directory
`/home/mra_admn/downloads/DCOracle2/src'
make[1]: *** [boot] Error 2
make[1]: Leaving directory
`/home/mra_admn/downloads/DCOracle2/src'
-------------------------------------
There were errors configuring the makefile to build
dco2. This usually is
. . .


Quick test after python setup.py install - works!
>>> import DCOracle2
>>> cn=DCOracle2.connect('live/dead@oldndst')
>>> c=cn.cursor()


# excerpts from printenv (su root)
. . .
SHELL=/bin/bash
TERM=xterm
PROFILEREAD=true
SSH_TTY=/dev/pts/2
ORACLE_SID=my_sid
HOSTTYPE=x86_64
PAGER=less
MINICOM=-c on
PATH=/usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin
CPU=x86_64
PWD=/home/my_user/downloads/DCOracle2
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
HOME=/root
SHLVL=2
OSTYPE=linux
LESS_ADVANCED_PREPROCESSOR=no
no_proxy=localhost
LS_OPTIONS=-a -N --color=tty -T 0
MACHTYPE=x86_64-suse-linux
LESS=-M -I
ORACLE_HOME=/ora/oracle/db/9.2.0.6


_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db
RE: DCOracle2: lib vs lib64: make fails on SuSE SLES 9 [ In reply to ]
Hi Christian,

I actually already got it to work. I had to compile and install
python and then use that one instead of the system one and it worked for
me. I'm guessing that your instructions are to get it to work on the
system python. Thanks for the reply


Thanks


Jet

> -----Original Message-----
> From: Christian Long [mailto:christianzlong@yahoo.com]
> Sent: Wednesday, February 22, 2006 12:12 AM
> To: Jet Wilda
> Subject: RE: [Zope-DB] DCOracle2: lib vs lib64: make fails on
> SuSE SLES 9
>
>
> Yes, it's working fine. Here are the steps I followed. Let
> me know how you do, and we can post back to the list
>
> Christian
>
>
>
>
>
> Download latest tarball here
> http://cvs.zope.org/Products/DCOracle2/DCOracle2.tar.gz?tarball=1
>
>
>
> tar -zxvf DCOracle2.tar.gz
> cd DCOracle2
>
> vi src/Makefile.pre.in
>
> To fix this error:
> make[2]: *** No rule to make target
> `/usr/lib/python2.3/config/Makefile', needed by `sedscript'.
> Stop. Change (line 156)
>
> LIBP= $(exec_installdir)/lib/python$(VERSION)
>
> to
>
> LIBP= $(exec_installdir)/lib64/python$(VERSION)
>
> To fix this error:
> gcc: cannot specify -o with -c or -S and multiple
> compilations Change (line 121)
>
> DEFS= @DEFS@
>
> to
>
> DEFS=
>
> Write changes and quit vi: first, press Escape, then type :wq ,
> then press Enter.
>
> su
> make
>
> Don't worry about these gcc warnings
> dco2.c:####: warning: cast to pointer from integer of different size
> dco2.c:####: warning: dereferencing type-punned pointer will
> break strict-aliasing rules
>
>
> Copy INNERMOST DCOracle2 folder to site-packages
> cp -a /home/mra_admn/downloads/DCOracle2/DCOracle2/
> /usr/lib64/python2.3/site-packages/
>
> exit
>
>
>
> Make sure the permissions in
> /usr/lib64/python2.3/site-packages/DCOracle2 match the following
>
> cd /usr/lib64/python2.3/site-packages/DCOracle2
> ls -al
>
> total 268
> drwxr-xr-x 2 root root 264 2005-11-29 16:10 .
> drwxr-xr-x 8 root root 256 2005-11-29 18:06 ..
> -rwxr-xr-x 1 root root 139643 2005-11-29 16:06 dco2.so
> -rw-r--r-- 1 root root 64543 2003-10-30 09:30 DCOracle2.py
> -rw-r--r-- 1 root root 48361 2005-11-29 16:10 DCOracle2.pyc
> -rw-r--r-- 1 root root 1725 2001-01-24 07:37 __init__.py
> -rw-r--r-- 1 root root 133 2005-11-29 16:10 __init__.pyc
> -rw-r--r-- 1 root root 102 2002-05-16 21:31 version.py
> -rw-r--r-- 1 root root 162 2005-11-29 16:10 version.pyc
>
>
>
> If the permissions do not match, fix them
>
> su
> cd /usr/lib64/python2.3/site-packages/DCOracle2
> chmod 755 dco2.so
> chown root:root *.py*
>
>
>
> -----Original Message-----
> From: Jet Wilda [mailto:jet.wilda@kobie.com]
> Sent: Tuesday, February 14, 2006 9:15 AM
> To: christianzlong@yahoo.com
> Subject: [Zope-DB] DCOracle2: lib vs lib64: make fails on SuSE SLES 9
>
>
> Hi,
>
> I was wondering if you ever got DCOracle2 to work on
> 64bit Suse? I have the same issue on 64bit Redhat ES 4.
>
>
> TIA
>
> Jet
>
> __________ NOD32 1.1407 (20060213) Information __________
>
> This message was checked by NOD32 antivirus system.
http://www.eset.com


_______________________________________________
Zope-DB mailing list
Zope-DB@zope.org
http://mail.zope.org/mailman/listinfo/zope-db