I hesitate to resurrect an old thread, but the subject is still germane, and my comment is largely in the form of uncertainty regarding the documentation.
I am continuing to pursue the installation of OMERO.server-5.2.5-ice36-b28 on CentOS 7. Near the top of the page at:
https://www.openmicroscopy.org/site/support/omero5.2/sysadmins/unix/install-web/install-apache.htmlis the command:
- Code: Select all
$ pip install -r share/web/requirements-py27-apache.txt
The page does not explicitly say under which user account that command should be executed, but I presume from the '$' prompt that it is an unprivileged account, and further that it would be the omero account. But 'pip install' is trying to install into directories where omero does not have rights:
- Code: Select all
$ pip install -r share/web/requirements-py27-apache.txt
Collecting Django<1.9,>=1.8 (from -r share/web/requirements-py27-apache.txt (line 6))
Downloading Django-1.8.14-py2.py3-none-any.whl (6.2MB)
100% |ââââââââââââââââââââââââââââââââ| 6.2MB 218kB/s
Installing collected packages: Django
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install
**kwargs
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/site-packages/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/django'
I have taken the obvious workaround and run the command as root instead. Is that correct, and if so, should the Django installation instructions reflect that? Is there a better solution?
Thank you!
Jim