[Zope-DB] Compiling DCOracle2 for MacOSX (longish)

Sion Morris s.morris at bangor.ac.uk
Thu May 6 12:06:25 EDT 2004


Worked a treat. Thanks very much.

Sion

On 6/5/04 1:29 pm, "Matthew T. Kromer" <matt at bane.mi.org> wrote:

> Edit the makefile by hand now that it has made src/Makefile and delete
> the @DEFS@ string.
> 
> 
> On May 6, 2004, at 5:05 AM, Sion Morris wrote:
> 
>> Hi,
>> 
>> Using the steps outlined below i have failed to get DCOracle2 to work
>> with
>> Oracle9i on MacOSX 10.3.3 (PowerBook G4 512Mb) and Python2.3.3 (Zope
>> 2.7.0).
>> Am I spitting against the wind with this particular combination or is
>> there
>> a better way?
>> 
>> 1. Installed Oracle 9i by following David Simpson's "Installing Oracle
>> 9i on
>> Mac OS X" tutorial on http://www.macdevcenter.com/. SQL/Plus can now
>> connect
>> to another Oracle server (I don't need an actual database on the macosx
>> server).
>> 
>> 2. Downloaded and installed Python2.3.3.
>> 
>> 3. Downloaded and installed Zope 2.7.0. Tested and working.
>> 
>> 4. Downlaoded DCOracle2-1.3b.tgz (http://www.zope.org). Uncompressed
>> file in
>> the Products directory. CD'd into DCOracle2 and ran 'make' which
>> returned
>> the following error:
>> 
>>      (cd src; \
>>      ./testora python)
>>      Checking ORACLE_HOME...passed.
>>      Checking for Oracle version...failed.
>>      /Users/oracle/v920/lib/libclntsh.so not readable; unable to
>>      determine your oracle version.
>>      make: *** [.config] Error 2
>> 
>> 5. Further googling returned a patch to testora
>> (http://mail.zope.org/pipermail/zope-checkins/2003-September/
>> 024085.html and
>> http://mail.zope.org/pipermail/zope-checkins/2003-September/
>> 024086.html)
>> that allows the checking of Oracle version on OSX. After applying the
>> patch,
>> 'make' found the right Oracle version but returned this error:
>> 
>> (cd src; \
>> ./testora python)
>> Checking ORACLE_HOME...passed.
>> Checking for Oracle version...Oracle 9i found.
>> (cd src; \
>> cp -p Setup.in Setup )
>> (cd src; \
>> make -f Makefile.pre.in boot PYTHON=python || ./setuperrors; \
>> make dummy || ./setuperrors)
>> 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
>> sed -n \
>>  -e '1s/.*/1i\\/p' \
>>  -e '2s%.*%# Generated automatically from Makefile.pre.in by
>> sedscript.%p' \
>>  -e '/^VERSION=/s/^VERSION=[    ]*\(.*\)/s%@VERSION[@]%\1%/p' \
>>  -e '/^CC=/s/^CC=[      ]*\(.*\)/s%@CC[@]%\1%/p' \
>>  -e '/^CCC=/s/^CCC=[    ]*\(.*\)/s%#@SET_CCC[@]%CCC=\1%/p' \
>>  -e '/^LINKCC=/s/^LINKCC=[      ]*\(.*\)/s%@LINKCC[@]%\1%/p' \
>>  -e '/^OPT=/s/^OPT=[    ]*\(.*\)/s%@OPT[@]%\1%/p' \
>>  -e '/^LDFLAGS=/s/^LDFLAGS=[    ]*\(.*\)/s%@LDFLAGS[@]%\1%/p' \
>>  -e '/^DEFS=/s/^DEFS=[  ]*\(.*\)/s%@DEFS[@]%\1%/p' \
>>  -e '/^LIBS=/s/^LIBS=[  ]*\(.*\)/s%@LIBS[@]%\1%/p' \
>>  -e '/^LIBM=/s/^LIBM=[  ]*\(.*\)/s%@LIBM[@]%\1%/p' \
>>  -e '/^LIBC=/s/^LIBC=[  ]*\(.*\)/s%@LIBC[@]%\1%/p' \
>>  -e '/^RANLIB=/s/^RANLIB=[      ]*\(.*\)/s%@RANLIB[@]%\1%/p' \
>>  -e '/^MACHDEP=/s/^MACHDEP=[    ]*\(.*\)/s%@MACHDEP[@]%\1%/p' \
>>  -e '/^SO=/s/^SO=[      ]*\(.*\)/s%@SO[@]%\1%/p' \
>>  -e '/^LDSHARED=/s/^LDSHARED=[  ]*\(.*\)/s%@LDSHARED[@]%\1%/p' \
>>  -e '/^CCSHARED=/s/^CCSHARED=[  ]*\(.*\)/s%@CCSHARED[@]%\1%/p' \
>>  -e '/^LINKFORSHARED=/s/^LINKFORSHARED=[
>> ]*\(.*\)/s%@LINKFORSHARED[@]%\1%/p' \
>>  -e '/^prefix=/s/^prefix=\(.*\)/s%^prefix=.*%prefix=\1%/p' \
>>  -e
>> '/^exec_prefix=/s/^exec_prefix=\(.*\)/
>> s%^exec_prefix=.*%exec_prefix=\1%/p' \
>>  /usr/local/lib/python2.3/config/Makefile >sedscript
>> echo "/^#@SET_CCC@/d" >>sedscript
>> echo "/^installdir=/s%=.*%=     /usr/local%" >>sedscript
>> echo "/^exec_installdir=/s%=.*%=/usr/local%" >>sedscript
>> echo "/^srcdir=/s%=.*%=         .%" >>sedscript
>> echo "/^VPATH=/s%=.*%=          .%" >>sedscript
>> echo "/^LINKPATH=/s%=.*%=       %" >>sedscript
>> echo "/^BASELIB=/s%=.*%=        %" >>sedscript
>> echo "/^BASESETUP=/s%=.*%=      %" >>sedscript
>> sed -f sedscript ./Makefile.pre.in >Makefile.pre
>> /usr/local/lib/python2.3/config/makesetup \
>>          -m Makefile.pre -c /usr/local/lib/python2.3/config/config.c.in
>> Setup -n  /usr/local/lib/python2.3/config/Setup
>> make -f Makefile do-it-again
>> /usr/local/lib/python2.3/config/makesetup \
>>          -m Makefile.pre -c /usr/local/lib/python2.3/config/config.c.in
>> Setup -n  /usr/local/lib/python2.3/config/Setup
>> make[1]: `dummy' is up to date.
>> ( cd src; \
>> make || ./builderrors)
>> gcc  -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
>> -I/usr/local/include/python2.3 -I/usr/local/include/python2.3 @DEFS@
>> -I/Users/oracle/v920/rdbms/demo -I/Users/oracle/v920/network/public
>> -I/Users/oracle/v920/plsql/public -I/Users/oracle/v920/rdbms/public
>> -DORACLE9i -c ././dco2.c -o ./dco2.o
>> gcc: cannot specify -o with -c or -S and multiple compilations
>> make[1]: *** [dco2.o] Error 1
>> 
>> 
>> Would anyone be kind enough to offer any suggestions?
>> 
>> Sion
>> 
>> 
>> _______________________________________________
>> Zope-DB mailing list
>> Zope-DB at zope.org
>> http://mail.zope.org/mailman/listinfo/zope-db




More information about the Zope-DB mailing list