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

building python



I'm attempting to make an rpm of the Python interpreter, version 2.2.2.
When doing the initial build from source, I needed to create two new
files, Modules/Setup and Modules/Setup.local. I put these files in their
own gzipped tar file and used them a second source file for the rpm build. 
For some reason, when building from the spec file, RPM always produces a
flawed version of Python. When building from source, using the same
sequence of commands, it Python builds just fine.

I'd appreciate any help, ideas, whatnot you guys may have.

-Tom

here's the relevant pieces of spec file:
#################################

Source0: Python-2.2.2.tar.gz
Source1: Python-setup-2.2.2.tar.gz

%prep
%setup
%setup -D -T -b 1

%build
        ./configure --prefix=$RPM_BUILD_ROOT/usr/local/ \
        --exec-prefix=$RPM_BUILD_ROOT/usr/local/python
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/local/bin
mkdir -p $RPM_BUILD_ROOT/usr/local/include
mkdir -p $RPM_BUILD_ROOT/usr/local/lib
mkdir -p $RPM_BUILD_ROOT/usr/local/man
mkdir -p $RPM_BUILD_ROOT/usr/local/python/bin
mkdir -p $RPM_BUILD_ROOT/usr/local/python/include/python2.2
mkdir -p $RPM_BUILD_ROOT/usr/local/python/lib/python2.2/config
mkdir -p $RPM_BUILD_ROOT/usr/local/python/lib/python2.2/lib-dynload

make install

%post
ln -s /usr/local/python/bin/python /usr/local/bin/python

#################################

and the error messages I get

Jan 02 15:13:45 2003 admin(25778):
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
admin(25778): [----- Mailman Version: 2.0.13 -----]
admin(25778): [----- Traceback ------]
admin(25778): Traceback (most recent call last):
admin(25778):   File "/usr/local/mailman/scripts/driver", line 80, in
run_main
admin(25778):     import Mailman.pythonlib.cgi
admin(25778):   File "/usr/local/mailman/Mailman/pythonlib/cgi.py", line
31, in ?
admin(25778):     import urllib
admin(25778):   File "/usr/local/lib/python2.2/urllib.py", line 26, in ?
admin(25778):     import socket
admin(25778):   File "/usr/local/lib/python2.2/socket.py", line 41, in ?
admin(25778):     from _socket import *
admin(25778): ImportError: ld.so.1: /usr/local/bin/python: fatal:
libssl.so.0.9.6: open failed: No such file or directory





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