[Qgis-developer] qgis-2.18.4 denies using QGIS_PLUGINPATH?

Jörg Habenicht jh at mwerk.net
Mon Mar 20 03:17:17 PDT 2017


Hi all,

I need some help setting up a separate path to the qgis plugin libs.
I think the environment variable QGIS_PLUGINPATH or the --configpath
setting is not respected during the run of qgis_mapserv.fcgi?


Background:
I try to setup multiple versions of qgis on our server in parallel.
We need this on our server to run multiple qgis configurations (round
about 30 card configs) on our server. To ease the upgrade testing we
decided to provide an individual qgis version setting for each card.

This should work as follows:
1) Copy all libraries needed to a separate directory.
2) Run the binary with hints to use the new directory path
LD_LIBRARY_PATH=/usr/local/lib/qgis-2.18.4/lib
QGIS_PLUGINPATH=/usr/local/lib/qgis-2.18.4/lib
QT_PLUGIN_PATH=/usr/local/lib/qgis-2.18.4/lib
/usr/local/lib/qgis-2.18.4/bin/qgis_mapserv.fcgi


The error:
If I call the fcgi program with LD_DEBUG=files LD_LIBRARY_PATH=...
I get the following message:
calling init: /usr/lib/qgis/plugins/libarcgisfeatureserverprovider.so
But this is the wrong directory.

Even though I provided the QGIS plugin path with
QGIS_PLUGINPATH=/usr/local/lib/qgis-2.18.4/lib, --configpath
/usr/local/lib/qgis-2.18.4/lib or
--configpath=/usr/local/lib/qgis-2.18.4/lib
the lib gets loaded from /usr/lib/qgis/plugins instead of
/usr/local/lib/qgis-2.18.4/lib

Is this a bug or do I need to use a different variable?


Using qgis-2.18.4 on Ubuntu 14.04.4 LTS



best regards
Jörg

-- 

mWerk GmbH
Dipl.-Ing. Jörg Habenicht
Landwehrstr. 76
30519 Hannover
(T) +49 511 9999 8033
(F) +49 511 9999 8041
(E) jh at mwerk.net
Amtsgericht Hannover HRB 206522
Geschäftsführer
Reiner Brachvogel
Dennis Kornehl


More information about the Qgis-developer mailing list