Re: python-sybase on Centos 5 x86_64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Solution turned out to involve building with at least -lct although the src.rpm from

http://sisyphus.ru/srpm/Sisyphus/python-module-sybase/get

uses:
SYBASE=/usr python setup.py build_ext -D WANT_THREADS -D HAVE_FREETDS -U WANT_BULKCOPY -lct


Diff to this python-sybase.spec included.
http://gohanman.com/rpm/Fedora9/SRPMS/python-sybase.spec

--- python-sybase.spec  2008-10-05 21:53:49.000000000 -0600
+++ python-sybase.spec.new      2008-10-15 21:42:44.000000000 -0600
@@ -22,11 +22,11 @@
 %build
 export SYBASE="/usr"
-python setup.py build_ext -D HAVE_FREETDS
+python setup.py build_ext -D HAVE_FREETDS -lct


 %install
 rm -rf $RPM_BUILD_ROOT
-PYVERSION=`python --version 2>&1 | sed -e "s/.* \([0-9]*\.[0-9]*\)\.[0-9]*/\1/g"`
-export PYTHONPATH="$RPM_BUILD_ROOT/usr/lib/python$PYVERSION/site-packages"
+PYVERSION=`python -V 2>&1 | sed -e "s/.* \([0-9]*\.[0-9]*\)\.[0-9]*/\1/g"`
+export PYTHONPATH="$RPM_BUILD_ROOT/usr/lib64/python$PYVERSION/site-packages"
 mkdir -p $PYTHONPATH
 export SYBASE="/usr"
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux