*BSD News Article 87103


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!noc.nyx.net!nyx.cs.du.edu!not-for-mail
From: tbutler@nyx.cs.du.edu (Timothy Butler)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.lang.python
Subject: Re: python problems on freebsd
Date: 20 Jan 1997 22:25:30 -0700
Organization: University of Denver, Dept. of Math & Comp. Sci.
Lines: 40
Message-ID: <5c1k0a$d3@nyx.cs.du.edu>
References: <32D515F8.446B9B3D@zxcv-pc.jumpnet.com>
NNTP-Posting-Host: nyx.nyx.net
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34227 comp.lang.python:15472


Here's what I ended up doing to compile python under FreeBSD 2.1.5.
This is somewhat from memory.

1. The configure script seems screwed up under bsd's shell.
   You should explicitly give the exec-prefix argument to configure.
	
	./configure --exec-prefix=/usr/local/bin

2. The Modules/Makefile may have an extraneous line that begins with
   a period (.) or the letter 's'.  Find it and comment it out.
   This appeared after a series of make variables in my makefile.

3. The sed script in Modules/makesetup is broken in BSD.  Sed can't 
   seem to understand more than one sed command per -e option.
   The workaround is to break the sed script into several -e command
   line options like this:

   diff makesetup0 makesetup

226,230c226,233
< 	*)  sed -e "
< 		1i$NL/* Generated automatically from $config by makesetup. */
< 		/MARKER 1/i$NL$EXTDECLS
< 		/MARKER 2/i$NL$INITBITS
< 
---
> 	*)  sed -e "\
> 		1i$NL/* Generated automatically from $config by makesetup. */\
> 		"\
> 		-e "\
> 		/MARKER 1/i$NL$EXTDECLS$NL\
> 		"\
> 		-e "\
> 		/MARKER 2/i$NL$INITBITS\

4. Get rid of any .o files in the Modules directory before recompiling.

 -tim