Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
Jerry Westrick wrote at 2006-4-16 21:49 +0200: > ... >option dict for 'install' command: > {'home': ('command line', '/opt/zope'), > 'prefix': ('/usr/lib64/python2.4/distutils/distutils.cfg', '/usr/local'), > 'skip_build': ('command line', 1)} Here you see the problem: The command line defines "home" and your system's "distutils" configuration defines "prefix". And "distutils" is unhappy because it does not know where to install. I think, your system's "distutils" should not globally define "prefix". -- Dieter ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
On Mon, Apr 17, 2006 at 12:49:17PM +0200, Jerry Westrick wrote: > On Monday 17 April 2006 12:08, Jens Vagelpohl wrote: > > > > I think you misunderstand what I am saying. I did not tell you to > > *replace* the system Python. By default, the Python source package > > installs into /usr/local. > > > > jens > > > > First off, let me state: > 1) I Thank everybody who has worked so had on make this excellent zope > product. And all the people who have expended their free time to help me! > > 2) I'm not trying to argue anybody into my work for me, but am trying to > understand the problems and concepts as they affect my systems. > > Having said that > > Jens, I thought that the linus file standard (what ever its called) was to > use "/usr" when a user installs product and to "/opt" when it is a "Distro" > product, in other words the place where a product is installed should not be > hard coded. /usr/local is a perfectly fine place to put non-system software. http://www.pathname.com/fhs/pub/fhs-2.3.html#USRLOCALLOCALHIERARCHY -- Paul Winkler http://www.slinkp.com ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, I thought that the linus file standard (what ever its called) was to use "/usr" when a user installs product and to "/opt" when it is a "Distro" product, in other words the place where a product is installed should not be hard coded. So you tell Python to install into "/opt", it does not matter. My point is that you do not want to replace/clobber the system Python. I have a feeling you are looking at this as some super-complicated thing. This is not rocket science. At any-rate the problems seams to be that you use a variable out of the Python distribution (which defines where python is installed) as the place to install zope (as defined by the config variable). Huh? I have no idea what you are talking about. You can configure the Python source package to install wherever you want, and the same is true for Zope. Where Zope lives has exactly *zero* relationship to where Python lives. From my programming experience, I really expect that you got a name clash in your installation routines. Again, no idea what you are talking about. The self-built Python is an entirely self-contained environment. You never ever touch any system Python packages when you build/run Zope off of a self-compiled Python. So as this is an all volunteer effort, I'm volunteering today, to try to hunt it down. Although a single day to understand a system as compley as the installation of zope is probably ludicrous. But I do have the machines setup and profesional tools to use... Can anybody help me in my goal of tracking this down? Honestly, I think you're wasting your time. Even if you track this particular problem down (it *is* most likely the messed-up Python package the distribution ships) then that will not make your Zope install (or that system Python) any more "supported" as it is now. Which is "not". Let me reiterate: Building on top of Python as shipped by some distribution, or using Zope as shipped with some distribution, will almost always get you blank stares when you ask questions on the Zope lists. If you want help and run a "supported" system, follow Andreas' and my advice and build Python and Zope from source. And again, *where* you put the two is *entirely* up to you, you should just ensure you do not overwrite any system Python packages. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEQ4FyRAx5nvEhZLIRApSsAJoCAsM7RzRwsqZmBhAExXSGAy1yKwCePb3R 7XS05gnkqxU1YakAAcpVERI= =Nf/m -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
On Monday 17 April 2006 12:08, Jens Vagelpohl wrote: > > I think you misunderstand what I am saying. I did not tell you to > *replace* the system Python. By default, the Python source package > installs into /usr/local. > > jens > First off, let me state: 1) I Thank everybody who has worked so had on make this excellent zope product. And all the people who have expended their free time to help me! 2) I'm not trying to argue anybody into my work for me, but am trying to understand the problems and concepts as they affect my systems. Having said that Jens, I thought that the linus file standard (what ever its called) was to use "/usr" when a user installs product and to "/opt" when it is a "Distro" product, in other words the place where a product is installed should not be hard coded. At any-rate the problems seams to be that you use a variable out of the Python distribution (which defines where python is installed) as the place to install zope (as defined by the config variable). From my programming experience, I really expect that you got a name clash in your installation routines. So as this is an all volunteer effort, I'm volunteering today, to try to hunt it down. Although a single day to understand a system as compley as the installation of zope is probably ludicrous. But I do have the machines setup and profesional tools to use... Can anybody help me in my goal of tracking this down? Jerry Of course, ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Apr 2006, at 12:02, Jerry Westrick wrote: On Monday 17 April 2006 11:10, Jens Vagelpohl wrote: My question now is this a bug in Zope 2.9.2 installation, or in SUSE 10.1 RC1? The answer to that will decide where I look to fix it Very simple test: Compile Python yourself. Do not use the distribution package. Then try building Zope 2.9.2 against the self- compiled Python. If it works fine then it's a SuSE fault. Python packages shipped with distributions are known to show various weirdnesses. For production setups I would never even consider using the built-in Python, regardless of distribution. jens Well Jens, I disagree. If I where to build my own python, I would have to do formal testing on all packages which require python, which are quite a few. I think you misunderstand what I am saying. I did not tell you to *replace* the system Python. By default, the Python source package installs into /usr/local. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEQ2kgRAx5nvEhZLIRAupFAKCiognz3aR1lPgIrot1GTeg0/MyowCgl3hG SaWjfJcGIrp7sG5wEg5JRmU= =qeWc -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
--On 17. April 2006 12:02:17 +0200 Jerry Westrick <[EMAIL PROTECTED]> wrote: Well Jens, I disagree. I agree with Jens. If I where to build my own python, I would have to do formal testing on all packages which require python, which are quite a few. If I follow your philosophy to it's logical conclusion, then I'd end up rolling my own linux, and having a "private" distribution for each production machine. Most/all ppl that are serious about deploying Zope don't use system Python installation but install their private Python installation as Jens recommended. To be honest: as core developers we can not care and don't care much about broken or somewhat baked system Python installations..almost all distro had some issues...we do basically support only source code installations and we don't have the resources to care about distro specific issue...in this case you should ask the maintainer of the corresponding package. -aj -- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting pgps0LSGZqjJ6.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
On Monday 17 April 2006 11:10, Jens Vagelpohl wrote: > > My question now is this a bug in Zope 2.9.2 installation, or in > > SUSE 10.1 RC1? > > The answer to that will decide where I look to fix it > > Very simple test: Compile Python yourself. Do not use the > distribution package. Then try building Zope 2.9.2 against the self- > compiled Python. If it works fine then it's a SuSE fault. > > Python packages shipped with distributions are known to show various > weirdnesses. For production setups I would never even consider using > the built-in Python, regardless of distribution. > > jens Well Jens, I disagree. If I where to build my own python, I would have to do formal testing on all packages which require python, which are quite a few. If I follow your philosophy to it's logical conclusion, then I'd end up rolling my own linux, and having a "private" distribution for each production machine. The amount of time, work and know-how required to maintain such a setup is simply not feasible in my case. I therefore depend on SUSE to do the security, maintenance, and configuration for me. That is what a distribution is all about right? As I am defining the new setup for our servers (new and old), I thought it would be to our advantage to use the latest 2.9.2 Zope2 release. This would allow me to have the newest technologies available for future projects. And leave the door open to do a smooth Zope2 to Zope3 migration. The version of Zope delivered with SUSE is 2.7.8. My other choice is to stick with that Jerry ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My question now is this a bug in Zope 2.9.2 installation, or in SUSE 10.1 RC1? The answer to that will decide where I look to fix it Very simple test: Compile Python yourself. Do not use the distribution package. Then try building Zope 2.9.2 against the self- compiled Python. If it works fine then it's a SuSE fault. Python packages shipped with distributions are known to show various weirdnesses. For production setups I would never even consider using the built-in Python, regardless of distribution. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEQ1ugRAx5nvEhZLIRAqmyAKCZEcjAwOI3h5xX00jPknpOTOfMWwCfbZmn 481ha9BtpV8zApiutkf6ip0= =xwS+ -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
On Sunday 16 April 2006 01:18, Jens Vagelpohl wrote: > On 16 Apr 2006, at 00:11, Jerry Westrick wrote: > > Hello all > > > > I've done a clean install SUSE 10.1 RC1. > > (Yes I know it's new, and probably the problem) > > > > I've downloaded Zope 2.9.2 > > > > And executed the installation as described in the readme.txt. > > > > It worked fine for me right now by doing... > > ./configure --prefix=`pwd` --force > make > make install > > > jens > This gives me the same error... After debugging the install.py with komodo (also beta :-) I found that by setting the environment variable with export DISTUTILS_DEBUG=1 additional debug information is printed. Here the relevant parts of the "make install" option dict for 'install' command: {'home': ('command line', '/opt/zope'), 'prefix': ('/usr/lib64/python2.4/distutils/distutils.cfg', '/usr/local'), 'skip_build': ('command line', 1)} option dict for 'install_lib' command: {'compile': ('setup.cfg', '1'), 'optimize': ('setup.cfg', '1')} Distribution.get_command_obj(): creating 'install' command object setting options for 'install' command: home = /opt/zope (from command line) prefix = /usr/local (from /usr/lib64/python2.4/distutils/distutils.cfg) skip_build = 1 (from command line) Traceback (most recent call last): File "install.py", line 29, in ? context.setup() File "/backup/install/zope/Zope-2.9.2/Support/zpkgsetup/setup.py", line 132, in setup setup(**kwargs) File "/usr/lib64/python2.4/distutils/core.py", line 149, in setup dist.run_commands() File "/usr/lib64/python2.4/distutils/dist.py", line 946, in run_commands self.run_command(cmd) File "/usr/lib64/python2.4/distutils/dist.py", line 965, in run_command cmd_obj.ensure_finalized() File "/usr/lib64/python2.4/distutils/cmd.py", line 117, in ensure_finalized self.finalize_options() File "/usr/lib64/python2.4/distutils/command/install.py", line 246, in finalize_options raise DistutilsOptionError, \ distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both make: *** [install] Error 1 log2:/backup/install/zope/Zope-2.9.2 # From the following excerpt setting options for 'install' command: home = /opt/zope (from command line) prefix = /usr/local (from /usr/lib64/python2.4/distutils/distutils.cfg) raise DistutilsOptionError, \ distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both make: *** [install] Error 1 I assume the problem is that the install routine does not handle SUSE's version of the ".../python2.4/distutil/distutils.cfg", which sets the prefix. Maybe this is a simple name clash? As a test I removed the --home "$(PREFIX)" from the Makefile, and zope installed into /usr/local instead of /usr/local/Zope 8-( Oh well it was a virgin installation, I'll just have to install it again! At any rate I went ahead and confirmed that the same happens on SUSE 10.1 RC1 i386 architecture so it's more probably SUSE problem and not x86_64 specific My question now is this a bug in Zope 2.9.2 installation, or in SUSE 10.1 RC1? The answer to that will decide where I look to fix it Jerry Westrick. P.S. I have both 32bit and 64bit test machines remotely available incase anyone wants to fix this :-) Unfortunately, I should be preparign the 64bit machine as a backup server, so if anyone is interested it's only available shortly... I can keep the 32bit SUSE 10.1 RC1 available for a week or so... ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Install 2.9.2 fails with "error: must supply either home or prefix/exec-prefix -- not both"
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16 Apr 2006, at 00:11, Jerry Westrick wrote: Hello all I've done a clean install SUSE 10.1 RC1. (Yes I know it's new, and probably the problem) I've downloaded Zope 2.9.2 And executed the installation as described in the readme.txt. I've tried it with both --prefix and without. Any Ideas where to look would be appreceated... It worked fine for me right now by doing... ./configure --prefix=`pwd` --force make make install I had to use --force because the --prefix already existed, it was the folder created by untarring the source tarball. jens -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEQX9jRAx5nvEhZLIRAnnJAJ9XDGmgFcjiENUUPIcB/Kmlv6NjQwCgqNys cMrpzgy5Ad+VCTxLArx7opo= =C+mn -END PGP SIGNATURE- ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )