Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/02/2019, à 13:00

bretauv

[Abandonné] Installer une version particulière d'un logiciel

Bonjour,
J'aimerais installer QGIS en version 2.18, qui est la version utilisée par ma fac mais plusieurs mises à jour ont été faites depuis. Du coup, quand je cherche à l'installer, on ne me le propose qu'en version 3.4. J'ai suivi ce tuto (https://doc.ubuntu-fr.org/qgis) en testant la version LTR ou la version courante mais les deux me donnent la version 3.4.
Auriez-vous une solution pour installer une version spécifique ?
Je suis sur Kubuntu 18.10

QGIS : https://www.qgis.org/fr/site/forusers/a … ian-ubuntu

Dernière modification par bretauv (Le 11/02/2019, à 20:16)

Hors ligne

#2 Le 10/02/2019, à 16:18

erresse

Re : [Abandonné] Installer une version particulière d'un logiciel

Tu devrais trouver ton bonheur ici, il y a plusieurs versions dont 2.18.
En revanche, il te faudra télécharger le paquet et l'installer en local. Préciser aussi à ton gestionnaire de paquets de bloquer la version de ce paquet pour qu'il ne soit pas automatiquement mis à jour...


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois résolu, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#3 Le 10/02/2019, à 19:16

bretauv

Re : [Abandonné] Installer une version particulière d'un logiciel

erresse a écrit :

En revanche, il te faudra télécharger le paquet et l'installer en local. Préciser aussi à ton gestionnaire de paquets de bloquer la version de ce paquet pour qu'il ne soit pas automatiquement mis à jour...

Même en suivant la doc, il y a des choses que je ne sais pas faire ou qui ne marche pas, je ne sais pas comment installer un paquet en local et je n'ai pas trouvé de tuto clair.

Du coup, je pose là le tuto d'installation fourni dans le dossier qgis-2.18.28+28bionic, j'espère que ce n'est pas trop long et que quelqu'un pourra m'aider :

3. Building on GNU/Linux
  ========================


  3.1. Building QGIS with Qt 4.x
  ==============================

Requires: Ubuntu / Debian derived distro

/!\ Note: Refer to the section Building Debian packages for building
debian packages.  Unless you plan to develop on QGIS, that is probably the
easiest option to compile and install QGIS.

These notes are for Ubuntu - other versions and Debian derived distros may
require slight variations in package names.

These notes are for if you want to build QGIS from source. One of the major
aims here is to show how this can be done using binary packages for *all*
dependencies - building only the core QGIS stuff from source. I prefer this
approach because it means we can leave the business of managing system packages
to apt and only concern ourselves with coding QGIS!

This document assumes you have made a fresh install and have a 'clean' system.
These instructions should work fine if this is a system that has already been
in use for a while, you may need to just skip those steps which are irrelevant
to you.


  3.2. Prepare apt
  ================

The packages QGIS depends on to build are available in the "universe" component
of Ubuntu. This is not activated by default, so you need to activate it:

1. Edit your /etc/apt/sources.list file.
2. Uncomment all the lines starting with "deb"

Also you will need to be running Ubuntu 'precise' or higher in order for
all dependencies to be met.

Now update your local sources database:

  sudo apt-get update

Premier problème : je ne suis pas sûr de bien comprendre : j'ai ajouté deux lignes

deb http://qgis.org/debian bionic main
# deb-src http://qgis.org/debian bionic main 

quand j'ai installé la 3.4 (désinstallée depuis), je ne sais pas s'il faut que je les enlève ou pas.

3.3. Install build dependencies
  ===============================

  || Distribution | install command for packages |
  | jessie | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | stretch | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-future python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | trusty | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl0-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools python-all python-all-dev python-gdal python-mock python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | xenial | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-future python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | yakkety | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-future python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | zesty | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-future python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |
  | sid | ``apt-get install bison ca-certificates cmake dh-python doxygen flex gdal-bin git graphviz grass-dev libexpat1-dev libfcgi-dev libgdal-dev libgeos-dev libgsl-dev libopenscenegraph-dev libosgearth-dev libpq-dev libproj-dev libqca2-dev libqca2-plugin-ossl libqjson-dev libqscintilla2-dev libqt4-dev libqt4-opengl-dev libqt4-sql-sqlite libqtwebkit-dev libqwt5-qt4-dev libspatialindex-dev libspatialite-dev libsqlite3-dev lighttpd locales pkg-config poppler-utils pyqt4-dev-tools pyqt4.qsci-dev python-all python-all-dev python-future python-gdal python-mock python-nose2 python-psycopg2 python-pyspatialite python-qscintilla2 python-qt4 python-qt4-dev python-qt4-sql python-sip python-sip-dev python-yaml qt4-dev-tools qt4-doc-html spawn-fcgi txt2tags xauth xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xvfb cmake-curses-gui`` |

(extracted from the control.in file in debian/)

J'ai juste suivi les instructions du terminal quand il me disait que certains paquets de jessie n'allaient pas, je les ai remplacés.

3.4. Setup ccache (Optional)
  ============================

You should also setup ccache to speed up compile times:

  cd /usr/local/bin
  sudo ln -s /usr/bin/ccache gcc
  sudo ln -s /usr/bin/ccache g++


  3.5. Prepare your development environment
  =========================================

As a convention I do all my development work in $HOME/dev/<language>, so in
this case we will create a work environment for C++ development work like
this:

  mkdir -p ${HOME}/dev/cpp
  cd ${HOME}/dev/cpp

This directory path will be assumed for all instructions that follow.


  3.6. Check out the QGIS Source Code
  ===================================

There are two ways the source can be checked out. Use the anonymous method
if you do not have edit privileges for the QGIS source repository, or use
  the developer checkout if you have permissions to commit source code
  changes.

1. Anonymous Checkout

  cd ${HOME}/dev/cpp
  git clone git://github.com/qgis/QGIS.git

2. Developer Checkout

  cd ${HOME}/dev/cpp
  git clone git@github.com:qgis/QGIS.git


  3.7. Starting the compile
  =========================

I compile my development version of QGIS into my ~/apps directory to avoid
conflicts with Ubuntu packages that may be under /usr. This way for example
you can use the binary packages of QGIS on your system along side with your
development version. I suggest you do something similar:

  mkdir -p ${HOME}/apps

Now we create a build directory and run ccmake:

  cd QGIS
  mkdir build-master
  cd build-master
  ccmake ..

When you run ccmake (note the .. is required!), a menu will appear where
you can configure various aspects of the build. If you want QGIS to have
debugging capabilities then set CMAKE_BUILD_TYPE to Debug. If you do not have
root access or do not want to overwrite existing QGIS installs (by your
packagemanager for example), set the CMAKE_INSTALL_PREFIX to somewhere you
have write access to (I usually use ${HOME}/apps). Now press
'c' to configure, 'e' to dismiss any error messages that may appear.
and 'g' to generate the make files. Note that sometimes 'c' needs to
be pressed several times before the 'g' option becomes available.
After the 'g' generation is complete, press 'q' to exit the ccmake
interactive dialog.

je n'ai jamais eu la touche 'g', ce qui m'a bloqué pour la suite. J'ai juste mis la fin du tuto si jamais quelqu'un était motivé pour la lire et pour dire si quelque chose semblait bizarre.

Now on with the build:

  make
  make install

It may take a little while to build depending on your platform.

After that you can try to run QGIS:

  $HOME/apps/bin/qgis

If all has worked properly the QGIS application should start up and appear
on your screen.  If you get the error message "error while loading shared libraries",
execute this command in your shell.

  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/apps/lib/


  3.8. Building Debian packages
  =============================

Instead of creating a personal installation as in the previous step you can
also create debian package.  This is done from the QGIS root directory, where
you'll find a debian directory.

First you need to install the debian packaging tools once:

  apt-get install build-essential

First you need to create an changelog entry for your distribution. For example
for Ubuntu Precise:

  dch -l ~precise --force-distribution --distribution precise "precise build"

The QGIS packages will be created with:

  dpkg-buildpackage -us -uc -b

/!\ Note: Install devscripts to get dch.

/!\ Note: If dpkg-buildpackage complains about unmet build dependencies
you can install them using apt-get and re-run the command.

/!\ Note: If you have libqgis1-dev installed, you need to remove it first
using dpkg -r libqgis1-dev.  Otherwise dpkg-buildpackage will complain about a
build conflict.

/!\ Note: By default tests are run in the process of building and their
results are uploaded to http://dash.orfeo-toolbox.org/index.php?project=QGIS.
You can turn the tests off using DEB_BUILD_OPTIONS=nocheck in front of the
build command. The upload of results can be avoided with DEB_TEST_TARGET=test.

The packages are created in the parent directory (ie. one level up).
Install them using dpkg.  E.g.:

  sudo debi


  3.9. Building QGIS with Qt 5.x
  ==============================

/!\ Warning: Qt 5 is not officially supported. Building against Qt 5
libraries seems to work quite well already but be prepared that you are one
of very few with this setup. We strongly recommend using QGIS with Qt 4 for
production work.

Python bindings in particular are not expected to be compatible. When Qt 5
is enabled, the build system automatically activates Python 3 and PyQt5 as well.
There are no plugins and not even the python code shipped along the QGIS source
code is compatible with PyQt5.

You have been warned.


  3.10. On Debian Linux
  =====================

We assume that you have the source code of QGIS ready and created a new
subdirectory called `build` or `build-qt5` in it.

Hors ligne

#4 Le 10/02/2019, à 19:52

erresse

Re : [Abandonné] Installer une version particulière d'un logiciel

De mon point de vue, il ne faut pas que tu partes sur une version à compiler, tu n'en sortiras pas !
Par ailleurs, l'installation d'un PPA se justifie lorsqu'on désire installer une application à sa version la plus récente et qu'elle soit mise à jour au fil du temps. Ce qui n'est pas ton cas, puisque tu veux bloquer la version de ton application à 2.18 et ne pas la mettre à jour ultérieurement.
Donc, tu supprimes effectivement ces deux lignes de ton source.list pour ne pas aller chercher sur le dépôt de qgis.org.

bretauv a écrit :

Premier problème : je ne suis pas sûr de bien comprendre : j'ai ajouté deux lignes

deb http://qgis.org/debian bionic main
# deb-src http://qgis.org/debian bionic main 

quand j'ai installé la 3.4 (désinstallée depuis), je ne sais pas s'il faut que je les enlève ou pas.

Dans la liste des versions qui apparaît sur la page que je t'ai indiquée en lien, tu télécharges le fichier .deb correspondant à ton système :
[ ]    libqgis-app2.18.27_2.18.27+28bionic-ubuntugis-1_amd64.deb    03-Jan-2019 03:37     3.4M
--> Si ton système est en mode 64 bits
[ ]    libqgis-app2.18.27_2.18.27+28bionic-ubuntugis-1_i386.deb    03-Jan-2019 03:36     3.5M
--> Si ton système est en mode 32 bits
Ces paquets sont déjà compilés, ce sont des binaires directement installables et utilisables.
Pour installer un paquet en local, le mieux et le plus simple est d'utiliser "gdebi" qui est une interface graphique permettant d'installer des paquets téléchargés avec leurs dépendances, automatiquement. Installe donc d'abord cette application que tu trouveras dans les dépôts d'Ubuntu.
Tu lances "gdebi" et tu installes ton logiciel QGIS simplement.


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois résolu, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#5 Le 10/02/2019, à 20:06

bretauv

Re : [Abandonné] Installer une version particulière d'un logiciel

Ces paquets sont déjà compilés, ce sont des binaires directement installables et utilisables.
Pour installer un paquet en local, le mieux et le plus simple est d'utiliser "gdebi" qui est une interface graphique permettant d'installer des paquets téléchargés avec leurs dépendances, automatiquement. Installe donc d'abord cette application que tu trouveras dans les dépôts d'Ubuntu.
Tu lances "gdebi" et tu installes ton logiciel QGIS simplement.

J'ai installé gdebi, mais quand j'essaie d'ouvrir le dossier zippé que tu m'as indiqué, il y a une erreur :

"Erreur : la dépendance ne peut être satisfaite : libproj13 (>=4.8.0)"

J'ai essayé de dézipper le dossier mais dans ce cas gdebi ne détecte rien à l'intérieur.

Est-ce que tu as une solution ?

Hors ligne

#6 Le 11/02/2019, à 17:17

erresse

Re : [Abandonné] Installer une version particulière d'un logiciel

bretauv a écrit :

Est-ce que tu as une solution ?

Pas vraiment, malheureusement, c'est que tu veux installer une version du logiciel qui ne correspond pas à ton système actuel, les dépendances sont différentes, on ne trouve pas la version du paquet libproj13 nécessaire à cette version 2.18 de QGIS.
Une rapide vérification montre que le paquet "libproj13" n'existe pas dans les versions *buntu avant "cosmic", soit la 18.10.
En bionic et précédentes, ce paquet est inconnu, je n'ai trouvé que libproj12 chez moi.
Je ne sais pas si tu peux installer manuellement le paquet libproj13 (téléchargé depuis ce site), car il pourrait y avoir une incompatibilité avec ta version de système (qui est bien "bionic" 18.04 ?).
Je pense que tu peux quand même essayer, si l'installation de ce paquet n'entraîne pas de chamboulement et qu'il suffit pour pouvoir installer QGIS, c'est tout bon, sinon, il vaudra mieux laisser tomber ou trouver (si ça existe) une version  de QGIS installable en "snap" ou en "flatpak" ou en "appimage", car dans ce cas, les dépendances sont incluses avec le paquet de l'application.


Plus de 50 ans d'informatique, ça en fait des lignes de commandes en console, mais on n'avait pas le choix...
Excellente raison pour, aujourd'hui qu'on le peut, utiliser au maximum les INTERFACES GRAPHIQUES !
Important : Une fois résolu, pensez à clore votre sujet en ajoutant [Résolu] devant le titre du 1er message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.

Hors ligne

#7 Le 11/02/2019, à 20:04

bretauv

Re : [Abandonné] Installer une version particulière d'un logiciel

erresse a écrit :
bretauv a écrit :

Est-ce que tu as une solution ?

Pas vraiment, malheureusement, c'est que tu veux installer une version du logiciel qui ne correspond pas à ton système actuel, les dépendances sont différentes, on ne trouve pas la version du paquet libproj13 nécessaire à cette version 2.18 de QGIS.
Une rapide vérification montre que le paquet "libproj13" n'existe pas dans les versions *buntu avant "cosmic", soit la 18.10.
En bionic et précédentes, ce paquet est inconnu, je n'ai trouvé que libproj12 chez moi.
Je ne sais pas si tu peux installer manuellement le paquet libproj13 (téléchargé depuis ce site), car il pourrait y avoir une incompatibilité avec ta version de système (qui est bien "bionic" 18.04 ?).
Je pense que tu peux quand même essayer, si l'installation de ce paquet n'entraîne pas de chamboulement et qu'il suffit pour pouvoir installer QGIS, c'est tout bon, sinon, il vaudra mieux laisser tomber ou trouver (si ça existe) une version  de QGIS installable en "snap" ou en "flatpak" ou en "appimage", car dans ce cas, les dépendances sont incluses avec le paquet de l'application.

C'est vraiment bizarre que ce paquet ne soit pas compatible parce que je peux installer qgis 3.4 quand même (et en effet j'ai ubuntu 18.04.2 LTS), et comme je ne suis pas très à l'aise avec les installations manuelles, je vais rester sur cette version du coup

Dernière modification par bretauv (Le 11/02/2019, à 20:12)

Hors ligne