Re: [Zope] Compiling 2.4.0 under Mac OS X?
On Thursday, July 26, 2001, at 10:24 PM, jens@digicool.com wrote:
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time? Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python 2.1.0, darwin1) Python Version: 2.1 (#4, 05/17/01, 18:34:21) [GCC Apple DevKit-based CPP 6.0alpha] System Platform: darwin1 -- Mark James Adams mark@raysend.com
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time?
Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python
By the way, what's up with this? ^^^^^^ I get that on mine, too. me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
zbir@urbanape.com wrote:
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time?
Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python
By the way, what's up with this? ^^^^^^
I get that on mine, too.
Zope gets this information directly from python. When you compiled python, it probably got faked out into thinking it's linux. -Michel
Zope reads lib/python/version.txt and uses the information as Version information. Try to remove the file and look if your Mac still thinks to be a Linux machine :-) Andreas ----- Original Message ----- From: "Michel Pelletier" <michel@digicool.com> To: <zbir@urbanape.com> Cc: "Mark James Adams" <mark@raysend.com>; <zope@zope.org> Sent: Freitag, 27. Juli 2001 11:40 Subject: Re: [Zope] Compiling 2.4.0 under Mac OS X?
zbir@urbanape.com wrote:
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time?
Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python
By the way, what's up with this? ^^^^^^
I get that on mine, too.
Zope gets this information directly from python. When you compiled python, it probably got faked out into thinking it's linux.
-Michel
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Andreas Jung wrote:
Zope reads lib/python/version.txt and uses the information as Version information. Try to remove the file and look if your Mac still thinks to be a Linux machine :-)
Your right that version.txt does contain a platform asserion, but below it apears (to me) to ignore that and get the platform information from sys.platform (function found in lib/python/App/version_txt.py): v = sys.version_info def version_txt(): try: s = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() s = re.sub("\(.*?)\?","",s) s= '(%s, python %d.%d.%d, %s)' % (s,v[0],v[1],v[2],sys.platform) return s except: return '(unreleased version, python %d.%d.%d, %s)' % (v[0],v[1],v[2],sys.platform) what does Mac OS X's sys.platform say? -Michel
it says...
import sys sys.platform 'darwin1'
(at least on my own self-compiled python) jens On Friday, July 27, 2001, at 03:40 , Michel Pelletier wrote:
Andreas Jung wrote:
Zope reads lib/python/version.txt and uses the information as Version information. Try to remove the file and look if your Mac still thinks to be a Linux machine :-)
Your right that version.txt does contain a platform asserion, but below it apears (to me) to ignore that and get the platform information from sys.platform (function found in lib/python/App/version_txt.py):
v = sys.version_info
def version_txt():
try: s = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() s = re.sub("\(.*?)\?","",s) s= '(%s, python %d.%d.%d, %s)' % (s,v[0],v[1],v[2],sys.platform) return s except: return '(unreleased version, python %d.%d.%d, %s)' % (v[0],v[1],v[2],sys.platform)
what does Mac OS X's sys.platform say?
-Michel
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
On Friday, July 27, 2001, at 03:40 PM, Michel Pelletier wrote:
Andreas Jung wrote:
Zope reads lib/python/version.txt and uses the information as Version information. Try to remove the file and look if your Mac still thinks to be a Linux machine :-)
Your right that version.txt does contain a platform asserion, but below it apears (to me) to ignore that and get the platform information from sys.platform (function found in lib/python/App/version_txt.py):
v = sys.version_info
def version_txt():
try: s = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() s = re.sub("\(.*?)\?","",s) s= '(%s, python %d.%d.%d, %s)' % (s,v[0],v[1],v[2],sys.platform) return s except: return '(unreleased version, python %d.%d.%d, %s)' % (v[0],v[1],v[2],sys.platform)
what does Mac OS X's sys.platform say?
[raysend:~] mark% python Python 2.1 (#4, 05/17/01, 18:34:21) [GCC Apple DevKit-based CPP 6.0alpha] on darwin1 Type "copyright", "credits" or "license" for more information.
import sys sys.platform 'darwin1'
-- Mark James Adams mark@raysend.com
Andreas Jung wrote:
Zope reads lib/python/version.txt and uses the information as Version information. Try to remove the file and look if your Mac still thinks to be a Linux machine :-)
Your right that version.txt does contain a platform asserion, but below it apears (to me) to ignore that and get the platform information from sys.platform (function found in lib/python/App/version_txt.py):
v = sys.version_info
def version_txt():
try: s = open(os.path.join(SOFTWARE_HOME,'version.txt')).read() s = re.sub("\(.*?)\?","",s) s= '(%s, python %d.%d.%d, %s)' % (s,v[0],v[1],v[2],sys.platform) return s except: return '(unreleased version, python %d.%d.%d, %s)' % (v[0],v[1],v[2],sys.platform)
what does Mac OS X's sys.platform say?
'darwin1' me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
well, i'm running into this one tryyng to compile a stock 2.4.0: **********snip make make: *** No rule to make target `src/Splitter.c', needed by `Splitter.o'. Stop. Traceback (most recent call last): File "wo_pcgi.py", line 117, in ? File "wo_pcgi.py", line 105, in main File "/usr/local/web/240SoftwareHome/inst/build_extensions.py", line 109, in ? make('lib','python','Products','PluginIndexes','TextIndex','Splitter','ISO_8859_1_Splitter' ) File "/usr/local/web/240SoftwareHome/inst/do.py", line 135, in make do('make') File "/usr/local/web/240SoftwareHome/inst/do.py", line 104, in do if i and picky: raise SystemError, i SystemError: 512 [piggy:local/web/240SoftwareHome] root# ****************************************** jens On Friday, July 27, 2001, at 10:00 , Mark James Adams wrote:
On Thursday, July 26, 2001, at 10:24 PM, jens@digicool.com wrote:
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time?
Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python 2. 1.0, darwin1) Python Version: 2.1 (#4, 05/17/01, 18:34:21) [GCC Apple DevKit-based CPP 6.0alpha] System Platform: darwin1
-- Mark James Adams mark@raysend.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
well, i'm running into this one tryyng to compile a stock 2.4.0:
**********snip
make make: *** No rule to make target `src/Splitter.c', needed by `Splitter.o'. Stop. Traceback (most recent call last): File "wo_pcgi.py", line 117, in ? File "wo_pcgi.py", line 105, in main File "/usr/local/web/240SoftwareHome/inst/build_extensions.py", line 109, in ?
make('lib','python','Products','PluginIndexes','TextIndex','Splitter','ISO_88 59_1_Splitter' ) File "/usr/local/web/240SoftwareHome/inst/do.py", line 135, in make do('make') File "/usr/local/web/240SoftwareHome/inst/do.py", line 104, in do if i and picky: raise SystemError, i SystemError: 512 [piggy:local/web/240SoftwareHome] root# ******************************************
Jens, Steve pointed out that you have to unarchive the tarball with gnutar, and not tar. It compiles fine after that. I have no idea why. me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
ok, but here's the real killer (after successful compilation): running "start" gets me just this: ************* snip ********** dyld: /usr/local/bin/python multiple definitions of symbol _initSplitter /usr/local/web/240SoftwareHome/lib/python/Products/PluginIndexes/TextIndex/ Splitter/ZopeSplitter/Splitter.so definition of _initSplitter /usr/local/web/InstanceHome/../240SoftwareHome/lib/python/SearchIndex/Splitter. so definition of _initSplitter ***************************** and the process aborts. this is the problem we have been aware of at DC / ZC so far. has anyone overcome this one, too? jens On Friday, July 27, 2001, at 10:00 , Mark James Adams wrote:
On Thursday, July 26, 2001, at 10:24 PM, jens@digicool.com wrote:
zope 2.4.0 won't compile correctly under OS X.
If Zope doesn't compile correctly under OS X, then what have I been running all this time?
Zope Version: (Zope 2.4.0 (source release, python 2.1, linux2), python 2. 1.0, darwin1) Python Version: 2.1 (#4, 05/17/01, 18:34:21) [GCC Apple DevKit-based CPP 6.0alpha] System Platform: darwin1
-- Mark James Adams mark@raysend.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
ok, but here's the real killer (after successful compilation):
running "start" gets me just this:
************* snip ********** dyld: /usr/local/bin/python multiple definitions of symbol _initSplitter /usr/local/web/240SoftwareHome/lib/python/Products/PluginIndexes/TextIndex/ Splitter/ZopeSplitter/Splitter.so definition of _initSplitter /usr/local/web/InstanceHome/../240SoftwareHome/lib/python/SearchIndex/Splitte r. so definition of _initSplitter *****************************
and the process aborts. this is the problem we have been aware of at DC / ZC so far. has anyone overcome this one, too?
That's bizarre. Once Steve pointed the gnutar thing out to me, it compiled just fine on my iMac ( serving it now :) and I had no problems running it either. Are you by any chance using this version of python2.1 ( also pointed out by Steve ): <URL:http://tony.lownds.com/macosx/> me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
hm... i'm actually using a self-compiled python 2.1. maybe that precompiled python would help it :) jens On Friday, July 27, 2001, at 02:37 , zbir@urbanape.com wrote:
ok, but here's the real killer (after successful compilation):
running "start" gets me just this:
************* snip ********** dyld: /usr/local/bin/python multiple definitions of symbol _initSplitter /usr/local/web/240SoftwareHome/lib/python/Products/PluginIndexes/TextIndex/ Splitter/ZopeSplitter/Splitter.so definition of _initSplitter /usr/local/web/InstanceHome/../240SoftwareHome/lib/python/SearchIndex/Splitte r. so definition of _initSplitter *****************************
and the process aborts. this is the problem we have been aware of at DC / ZC so far. has anyone overcome this one, too?
That's bizarre. Once Steve pointed the gnutar thing out to me, it compiled just fine on my iMac ( serving it now :) and I had no problems running it either. Are you by any chance using this version of python2.1 ( also pointed out by Steve ):
<URL:http://tony.lownds.com/macosx/>
me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
Hi Folks, I built a python from scratch and it also worked OK. It's the one I've included in the binary release I posted yesterday. (Actually this was Python-2.1.1). -steve On Friday, July 27, 2001, at 01:39 PM, Jens Vagelpohl wrote:
hm... i'm actually using a self-compiled python 2.1. maybe that precompiled python would help it :)
jens
On Friday, July 27, 2001, at 02:37 , zbir@urbanape.com wrote:
ok, but here's the real killer (after successful compilation):
running "start" gets me just this:
************* snip ********** dyld: /usr/local/bin/python multiple definitions of symbol _initSplitter /usr/local/web/240SoftwareHome/lib/python/Products/PluginIndexes/TextIndex/ Splitter/ZopeSplitter/Splitter.so definition of _initSplitter /usr/local/web/InstanceHome/../240SoftwareHome/lib/python/SearchIndex/Splitte r. so definition of _initSplitter *****************************
and the process aborts. this is the problem we have been aware of at DC / ZC so far. has anyone overcome this one, too?
That's bizarre. Once Steve pointed the gnutar thing out to me, it compiled just fine on my iMac ( serving it now :) and I had no problems running it either. Are you by any chance using this version of python2.1 ( also pointed out by Steve ):
<URL:http://tony.lownds.com/macosx/>
me = { 'name' : 'Zachery Bir', 'email' : 'zbir@urbanape.com', 'voice' : '(804) 353-3742', 'url' : 'http://www.urbanape.com/' }
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (6)
-
Andreas Jung -
Jens Vagelpohl -
Mark James Adams -
Michel Pelletier -
Steve Spicklemire -
zbir@urbanape.com