[OPEN-ILS-DEV] Pylons acq / admin web install and config instructions

Bill Ott bott at grpl.org
Fri Feb 1 15:08:52 EST 2008


> Hopefully this helps others who might be interested in poking at 
> what's going on in the acq-experiment branch and contributing to the 
> effort. If you can give these instructions a shot, and provide 
> feedback, it would be much appreciated.

The instructions worked fine for me.

One oddity.  The initial make install failed.  After poking around and 
getting side tracked, I came back, ran the make install again, and all 
was well.  I still haven't gone through the following, but if anyone is 
interested, here are the chunks of scroll back.  Personally, I don't 
speak Python...

I did go as far as to replicate this by cleaning the make and 
reattempting the make and make install.  The first install fails, the 
second succeeds. 




# make install
Installing...

-------------- [ openils_all ] -------------------------------------------

perl-install
Installing Perl modules to /openils//lib//perl5/
python-install
install
running install
running bdist_egg
running egg_info
writing requirements to Evergreen.egg-info/requires.txt
writing Evergreen.egg-info/PKG-INFO
writing top-level names to Evergreen.egg-info/top_level.txt
writing dependency_links to Evergreen.egg-info/dependency_links.txt
writing manifest file 'Evergreen.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/const.py -> build/bdist.linux-x86_64/egg/oils
creating build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/csedit.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/utils.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/idl.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/__init__.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/org.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/event.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/system.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/__init__.py -> build/bdist.linux-x86_64/egg/oils
byte-compiling build/bdist.linux-x86_64/egg/oils/const.py to const.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/csedit.py to 
csedit.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/idl.py to idl.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/__init__.py to 
__init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/org.py to org.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/event.py to event.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/system.py to system.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/SOURCES.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/dependency_links.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/requires.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/top_level.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/Evergreen-1.4-py2.4.egg' and adding 
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing Evergreen-1.4-py2.4.egg
Removing /usr/lib/python2.4/site-packages/Evergreen-1.4-py2.4.egg
Copying Evergreen-1.4-py2.4.egg to /usr/lib/python2.4/site-packages
Evergreen 1.4 is already the active version in easy-install.pth

Installed /usr/lib/python2.4/site-packages/Evergreen-1.4-py2.4.egg
Processing dependencies for Evergreen==1.4
Traceback (most recent call last):
  File "setup.py", line 12, in ?
    packages=['oils', 'oils.utils'],
  File "distutils/core.py", line 149, in setup
  File "distutils/dist.py", line 946, in run_commands
  File "distutils/dist.py", line 966, in run_command
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/install.py", 
line 76, in run
    self.do_egg_install()
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/install.py", 
line 100, in do_egg_install
    cmd.run()
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/easy_install.py", 
line 211, in run
    self.easy_install(spec, not self.no_deps)
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/easy_install.py", 
line 427, in easy_install
    return self.install_item(None, spec, tmpdir, deps, True)
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/easy_install.py", 
line 473, in install_item
    self.process_distribution(spec, dist, deps)
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/setuptools/command/easy_install.py", 
line 518, in process_distribution
    distros = WorkingSet([]).resolve(
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 529, in resolve
    requirements.extend(dist.requires(req.extras)[::-1])
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 2107, in requires
    dm = self._dep_map
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 2099, in _dep_map
    for extra,reqs in split_sections(self._get_metadata(name)):
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 2518, in split_sections
    for line in yield_lines(s):
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 1813, in yield_lines
    for ss in strs:
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 2121, in _get_metadata
    for line in self.get_metadata_lines(name):
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 1140, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 1137, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File 
"/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/pkg_resources.py", 
line 1195, in _get
    return self.loader.get_data(path)
zipimport.ZipImportError: bad local file header in 
/usr/lib/python2.4/site-packages/Evergreen-1.4-py2.4.egg
make[2]: *** [install] Error 1
make[1]: *** [python-install] Error 2

Now run: chown -R opensrf:opensrf /openils/


----  2nd attempt ----


# make install
Installing...

-------------- [ openils_all ] -------------------------------------------

perl-install
Installing Perl modules to /openils//lib//perl5/
python-install
install
running install
running bdist_egg
running egg_info
writing requirements to Evergreen.egg-info/requires.txt
writing Evergreen.egg-info/PKG-INFO
writing top-level names to Evergreen.egg-info/top_level.txt
writing dependency_links to Evergreen.egg-info/dependency_links.txt
writing manifest file 'Evergreen.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/const.py -> build/bdist.linux-x86_64/egg/oils
creating build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/csedit.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/utils.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/idl.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/utils/__init__.py -> 
build/bdist.linux-x86_64/egg/oils/utils
copying build/lib/oils/org.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/event.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/system.py -> build/bdist.linux-x86_64/egg/oils
copying build/lib/oils/__init__.py -> build/bdist.linux-x86_64/egg/oils
byte-compiling build/bdist.linux-x86_64/egg/oils/const.py to const.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/csedit.py to 
csedit.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/utils.py to utils.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/idl.py to idl.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/utils/__init__.py to 
__init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/org.py to org.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/event.py to event.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/system.py to system.pyc
byte-compiling build/bdist.linux-x86_64/egg/oils/__init__.py to __init__.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/SOURCES.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/dependency_links.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/requires.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
copying Evergreen.egg-info/top_level.txt -> 
build/bdist.linux-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/Evergreen-1.4-py2.4.egg' and adding 
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing Evergreen-1.4-py2.4.egg
Removing /usr/lib/python2.4/site-packages/Evergreen-1.4-py2.4.egg
Copying Evergreen-1.4-py2.4.egg to /usr/lib/python2.4/site-packages
Evergreen 1.4 is already the active version in easy-install.pth

Installed /usr/lib/python2.4/site-packages/Evergreen-1.4-py2.4.egg
Processing dependencies for Evergreen==1.4
Finished processing dependencies for Evergreen==1.4
webcore-install
Copying web into /openils//var/web
autojs-install
mod_xmlent-install
/usr/share/apache2/build/instdso.sh 
SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_xmlent.so 
/usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_xmlent.so 
/usr/lib/apache2/modules/
cp mod_xmlent.so /usr/lib/apache2/modules/mod_xmlent.so
Warning!  dlname not found in /usr/lib/apache2/modules/mod_xmlent.so.
Assuming installing a .so rather than a libtool archive.
chmod 644 /usr/lib/apache2/modules/mod_xmlent.so
[activating module `xmlent' in /etc/apache2/httpd.conf]
Installing offline CGIs to /openils//var/cgi-bin/offline
reporter-install
Installing Reporter email templates to /openils//var/reporter and 
example configs to /openils//conf
server-xul
Creating /openils//var/web/xul/
BUILD_ID = 20080201.145326
Copying xul into /openils//var/web/xul/20080201.145326
Installing string templates to /openils//var/templates
Installing XSL files to /openils//var/xsl
c_apps-install
install
circ_rules-install
storage-bootstrap

WARNING!

storage-bootstrap will DESTROY all data within all of the ILS tables in 
your database.
The database this script will touch has a DBI DSN of
    dbi:Pg:host=blade9.grpl.org;dbname=evergreen;port=5432
Type control-c to avoid destroying all of the data.  Type enter to 
continue...

make[1]: *** [storage-bootstrap] Interrupt
make: *** [install] Interrupt




More information about the Open-ils-dev mailing list