[Qgis-user] Issues to install QGIS on RedHat 6

Tudorache, Marian Marian.Tudorache at navcanada.ca
Wed Jun 10 12:40:02 PDT 2015


Hi,

I managed to install 2.8 on Red Hat 7. It took me a while to find all dependencies but I made it.

Thank you for your support.

This is the error.

There is a small issue of launching Python Console from QGIS.
I got this error:
Couldn't load plugin 'processing' from ['/usr/share/qgis/python', '/home/qgisosr/.qgis2/python', '/home/qgisosr/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode', '/usr/lib/python2.7/site-packages', '/home/qgisosr/.qgis2//python', '/usr/share/qgis/python/plugins/fTools/tools']


Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 196, in loadPlugin
    __import__(packageName)
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/__init__.py", line 29, in
    from processing.tools.general import *
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/tools/general.py", line 28, in
    from processing.core.Processing import Processing
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/core/Processing.py", line 44, in
    from processing.gui.Postprocessing import handleAlgorithmResults
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/gui/Postprocessing.py", line 36, in
    from processing.gui.ResultsDialog import ResultsDialog
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/gui/ResultsDialog.py", line 33, in
    from processing.ui.ui_DlgResults import Ui_DlgResults
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File "/usr/share/qgis/python/plugins/processing/ui/ui_DlgResults.py", line 61, in
    from QtWebKit.QWebView import QWebView
  File "/usr/lib64/python2.7/site-packages/qgis/utils.py", line 478, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named QtWebKit.QWebView


Python version:
2.7.5 (default, Feb 11 2014, 07:46:25)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-13)]


QGIS version:
2.8.1-Wien Wien, exported

Python path: ['/usr/share/qgis/python', u'/home/qgisosr/.qgis2/python', u'/home/qgisosr/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib64/python2.7/site-packages/wx-2.8-gtk2-unicode', '/usr/lib/python2.7/site-packages', u'/home/qgisosr/.qgis2//python', '/usr/share/qgis/python/plugins/fTools/tools']

From: qgis-user-bounces at lists.osgeo.org [mailto:qgis-user-bounces at lists.osgeo.org] On Behalf Of Matthias Kuhn
Sent: June-10-15 4:42 AM
To: qgis-user at lists.osgeo.org
Subject: Re: [Qgis-user] Issues to install QGIS on RedHat 6

After checking again, I realized that I originally did not compile any version after 2.0.1 because of the fact that the Qt version on RHEL 6 is 4.6. Newer QGIS versions require at least Qt 4.7 (actually even the 2.0.1 release has been modified in order to be able to run with Qt 4.6).

It would certainly be possible to provide QGIS for RHEL 6 with one of the following options:

 * Patch the QGIS code to remove post-Qt-4.6-features (would need to be re-done for every QGIS release)
 * Create Qt 4.8 packages for RHEL (would replace Qt 4.6, hence break other apps)
 * Create Qt 5 packages for RHEL (requires building some dependencies once and optionally evaluating the status of PyQGIS for Qt5 if plugins are required)

Best regards,
Matthias
On 06/10/2015 09:45 AM, Matthias Kuhn wrote:
Hi,

There was never a release for 6Workstation and the last release for 6Server was available for 2.0.1. I symlinked the 6Workstation now so you should be able to install 2.0.1 from there - but that's probably not what you need.

I am currently trying to create packages for 2.8.2. If it just works I will make them available ASAP. I am not totally aware of the status of all dependencies, so we will have to wait and see how much trouble there is.

Regards,
Matthias
On 06/09/2015 08:33 PM, Tudorache, Marian wrote:
Hi,

I have issue to install QGIS 2.8 on Linux RedHat 6.

First part: I installed ELGIS and EPEL using the instructions from: http://www.qgis.org/en/site/forusers/alldownloads.html#rhel-centos-scientific-linux

The following commands were successfully executed
sudo wget fedora.vitu.ch/EL/qgis.repo -P /etc/yum.repos.d/
sudo rpm --import http://fedora.vitu.ch/Fedora/RPM-GPG-Key-vitu

But the execution of the next one failed:
sudo yum update

I got this error:
http://fedora.vitu.ch/EL/6Workstation/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: qgis. Please verify its path and try again

This command failed as well.
sudo yum install qgis qgis-python qgis-grass qgis-mapserver

It seems the issue has been reported on Apr 14 2014 but no solution was release. It seems the location http://fedora.vitu.ch/EL/6Workstation/x86_64/repodata/does not exist anymore or was changed and instructions were not updated.

Does anyone know a solution?

Thanks,
Marian


________________________________
This electronic message, as well as any transmitted files included in the electronic message, may contain privileged or confidential information and is intended solely for the use of the individual(s) or entity to which it is addressed. If you have received this electronic message in error please notify the sender immediately and delete the electronic message. Any unauthorized copying, disclosure or distribution of the electronic message is strictly forbidden. NAV CANADA accepts no liability for any damage caused by any virus and/or other malicious code transmitted by this electronic communication.

Le présent message électronique et tout fichier qui peut y être joint peuvent contenir des renseignements privilégiés ou confidentiels destinés à l'usage exclusif des personnes ou des organismes à qui ils s'adressent. Si vous avez reçu ce message électronique par erreur, veuillez en informer l'expéditeur immédiatement et supprimez le. Toute reproduction, divulgation ou distribution du présent message électronique est strictement interdite. NAV CANADA n'assume aucune responsabilité en cas de dommage causé par tout virus ou autre programme malveillant transmis par ce message électronique.




_______________________________________________

Qgis-user mailing list

Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/qgis-user





_______________________________________________

Qgis-user mailing list

Qgis-user at lists.osgeo.org<mailto:Qgis-user at lists.osgeo.org>

http://lists.osgeo.org/mailman/listinfo/qgis-user

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20150610/dbe3af49/attachment.html>


More information about the Qgis-user mailing list