RE: SAP DB 7.4 build problems on Red Hat Linux 8.0

"Dittmar, Daniel" <[email protected]> Thu, 20 Mar 2003 17:13:04 +0100
Newsgroups gmane.comp.db.sapdb.sources
Message-ID <B9A2DDA03044D311BBD40008C75D6968147D85BE@dewdfx24>
> 
> i'm having some problems compiling SAP DB 7.4.03.14 on Red 
> Hat Linux 8.0.  
> SAP DB build system requires Python v1.5.2 and Perl v5.005_03 
> but Red Hat
> comes with Python v2.2 and Perl v5.8.0. compiling Python on 

Building should also work with Python 2.2 and Perl 5.6, although this is rarely tested. We're currently in the process of making the buid scripts compatible with Perl 5.8.

> 
>   1)
>     !dbmcli -s -R $INSTROOT inst_reg -k $INSTROOT -c
>     ERR
>     -24994,ERR_RTE: runtime environment error
>     1,mkstemp failed:Permission denied
>     COMMAND error 1
>     'reginst.mac' not made because of dependency errors

Assuming that you haven't installed the binary version of SAP DB before, there are some directories missing. You can create them through the script $TOOL/bin/prepare_inst.pl, which must be executed as root. You could also set the environment variable NOREG, but then you couldn't actually use the software you just build, you could only package it.

>   2)
>     !irconf -r -p $INSTROOT > /dev/null
>     !$TOOLSHELL -S ifaconf.pl $INSTRUNTIME
>     Error : mkstemp failed:Permission denied.
>     error while 'irconf -i -p 
> /home/aspa/tmp/sapdb/sapdb-7.4/V74_03_14/SAPD\
>     B_DEV/usr/runtime/7403 -k 
> /home/aspa/tmp/sapdb/sapdb-7.4/V74_03_14/SAPDB\
>     _DEV/usr' :
>     what.h

same as above.

>   3)
>     !if [ -r $INSTMISC/sqlmodule.so ] ; then rm 
> $INSTMISC/sqlmodule.so ; fi
>     !PYTHONPATH=$INSTMISC python -c "import sapdb.sql"
>     Traceback (innermost last):
>       File "<string>", line 1, in ?
>       File 
> "/home/aspa/tmp/sapdb/t4/V74_03_14/SAPDB_DEV/usr/misc/sapdb/sql.\
>     py", line 44, in ?
>       from python15.sql import *
>     ImportError: No module named python15.sql
>     COMMAND error 1
>     'sqlpy.mac' not made because of dependency errors

This is a bug in the descriptions where not all dependencies are properly listed. Some files are copied at a later stage, so running 'imf all' again won't show this error again.

>   4)
>     bison: output.c:1236: output_parser: Assertion 
> `actions_dumped == 1' fa\
>     iled.
>     error while executing 
> /home/aspa/tmp/sapdb/sapdb-7.4/DevTool/gnu/bin/bi\
>     son -v -o vls14_parse.c -d vls14_parse.y :
>     COMMAND error 255
>     FlexLexer.h
>     vls14_scan.skl fast  binary
>     vls14_parse.y fast
>     vls14_parse.y:1310: warning: previous rule lacks an ending `;'
>     vls14_parse.y:1313: warning: previous rule lacks an ending `;'
>     vls14_parse.y:1384: warning: previous rule lacks an ending `;'
>     bison: output.c:1236: output_parser: Assertion 
> `actions_dumped == 1' fa\
>     iled.
>     error while executing 
> /home/aspa/tmp/sapdb/sapdb-7.4/DevTool/gnu/bin/bi\
>     son -v -o vls14_parse.c -d vls14_parse.y :
>     COMMAND error 255
>     'vls14_scan.l' not made because of dependency errors

Our bison input requires an older version of bison. I thought that it's part of the build tools, but apparently, it ain't. I'll put that version on the ftp server.

>   5)
>     !dbmcli -s -R $INSTROOT inst_reg -k $INSTROOT
>     ERR
>     -24994,ERR_RTE: runtime environment error
>     1,mkstemp failed:Permission denied
>     COMMAND error 1
>     'reginst-FULL.mac' not made because of dependency errors

same as 1)


-- 
Daniel Dittmar
SAP DB, SAP Labs Berlin
[email protected]
http://www.sapdb.org/