[Zope-Coders] installer branch

Jens Vagelpohl jens@zope.com
Thu, 29 Aug 2002 08:00:51 -0400


chris,

a few observations:

- the branch name is actually chrism-install-branch ;)

- there is some places where you might need to quote path names because  
they might contain spaces. here is an error i got running "make" on OS  
X:

----------------
setting dir permissions
chmod: /tmp/Zope/lib/python/build/temp.darwin-6.0-Power: No such file  
or directory
chmod: Macintosh-2.1: No such file or directory
-----------------

in this case the directory path was...

"/tmp/Zope/lib/python/build/temp.darwin-6.0-Power Macintosh-2.1"

- not having read any documentation i was puzzled that "make install"  
was not the last step, as is customary. the choice of running "make  
instance" and not "make install" might also confuse people a little.

- all steps from ./configure through make, make install and  
makeinstance worked fine on OS X, with the exception of the error  
because of unquoted path names as shown above during make.

- the new zctl is very nice. i like the ability to run it as a little  
shell and i can view all configuration details. however, using "set"  
always fails with the following traceback::

------------------
zopectl> set ftp_server_ports 8821
Traceback (most recent call last):
   File "./zctl", line 139, in ?
     _ZopeCtlCmd().main()
   File "./zctl", line 135, in main
     self.cmdloop()
   File "/usr/local/lib/python2.1/cmd.py", line 86, in cmdloop
     stop = self.onecmd(line)
   File "/usr/local/lib/python2.1/cmd.py", line 124, in onecmd
     return func(arg)
   File "./zctl", line 48, in xdo
     getattr( self._engine, command )( args )
   File "/tmp/Zope/lib/python/Controller/ZopeCtl.py", line 116, in set
     self.config.setDirective(arg, name, value)
NameError: global name 'name' is not defined
---------------------

- calling ./zctl start seems to expose a bug in zope itself::

-------------------
Traceback (most recent call last):
   File "/tmp/zopetarget/z2.py", line 524, in ?
     import ZServer
   File "/tmp/Zope/ZServer/__init__.py", line 36, in ?
     import App.FindHomes
   File "/tmp/Zope/lib/python/App/FindHomes.py", line 34, in ?
     home=realpath(home)
   File "/tmp/Zope/lib/python/App/Common.py", line 150, in realpath
     p = realpath(p)

<<<<repeated about 1000 times>>>>

   File "/tmp/Zope/lib/python/App/Common.py", line 144, in realpath
     if os.path.islink(head_s):
   File "/usr/local/lib/python2.1/posixpath.py", line 162, in islink
     return stat.S_ISLNK(st[stat.ST_MODE])
   File "/usr/local/lib/python2.1/stat.py", line 61, in S_ISLNK
     return S_IFMT(mode) == S_IFLNK
RuntimeError: maximum recursion depth exceeded
--------------------

the location where i had this set up was /tmp/zopeinstance. /tmp is  
actually a symbolic link pointing to /private/tmp.

jens



On Thursday, Aug 29, 2002, at 02:28 US/Eastern, Chris McDonough wrote:

> I've done about as much work as I'm going to do on a Zope branch which
> makes it possible to do a "./configure; make; make install" Zope source
> installation (with much help from Matt Behrens and others).  It's
> available on the 'chrism-installer-branch' branch of the Zope module in
> CVS.
>
> Features are as follows:
>
>   - configure, make, make install
>   - config file with Squid-like directives instead of
>     inscrutable envvars and command-line arguments.
>   - "zctl" (actually a forked version of Tres' zopectl) makes
>     it easier to stop, start, and get status of Zope.
>
> It needs to be tested on non-Linux systems, but I'd like to propose  
> that
> it be merged into the trunk after 2.6.0 gets out.
>
> Discussion is at
> http://dev.zope.org/Wikis/DevSite/Proposals/ 
> InstallationAndConfiguration
> .
>
> Thanks,
>
> - C
>
>
>
>
>
> _______________________________________________
> Zope-Coders mailing list
> Zope-Coders@zope.org
> http://lists.zope.org/mailman/listinfo/zope-coders