Bonjour à tous,
Nouvel utilisateur de Arch, après être passé par Ubuntu, je cherche à réinstaller certains logiciels dont j'ai besoin pour le boulot, et parmi eux qgis.
J'ai essayé de l'installer avec yaourt. Il recherche toutes les dépendances nécessaires, les trouve toutes soit déjà installées, soit accessible via les dépôts officiels, sauf une (grass, à installer depuis AUR).
Après avoir chargé les dépendances présentes dans les dépôts, l'installation de grass se lance (à ce niveau, j'ai déjà un premier message :
Ça manque de contexte (un no dans le configure ne signifie pas forcément grand-chose et ERROR comme ça non plus). Poste-nous la sortie complète de la compilation, stp (utilise pastebin si c'est trop long).
«The following statement is not true. The previous statement is true.»
[jerry@Jerry-Archlinux ~]$ yaourt -a qgis
1 aur/qgis 1.8.0-5 (79)
Quantum GIS is a Geographic Information System (GIS) that supports vector,
raster & database formats
2 aur/qgis-1.6 15265-3 (0)
Quantum GIS, Geographic Information System; this old version hasn't
flickering problems when viewing raster data files
3 aur/qgis-git 20121030-1 (21)
Quantum GIS is a Geographic Information System (GIS) that supports vector,
raster & database formats
==> Enter n�� of packages to be installed (ex: 1 2 3 or 1-3)
==> --------------------------------------------------------
==> 1
==> Downloading qgis PKGBUILD from AUR...
bsdtar: Failed to set default locale
x PKGBUILD
x qgis.desktop
Comment by ndr (2013-03-01 14:22)
You also need to use -DQT_QMAKE_EXECUTABLE=qmake4 so people that have both qt4 and qt5-base installed don't get any build error
Comment by nico666 (2013-03-01 14:31)
Hi,
Last time I tried a system upgrade:
:: Starting full system upgrade...
:: Replace lib32-qt with multilib/lib32-qt4? [Y/n]
:: Replace qt with extra/qt4? [Y/n]
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: qgis: requires qt
So presumably qt should be changed to qt4, but might not be that simple.
I though @eca comment was something about this, but I cannot understand his instructions.
Thank you for maintaining this package.
Comment by whitelynx (2013-03-01 16:35)
Just updating the PKGBUILD to use 'qt4' instead of 'qt' worked fine for me; I've posted an updated PKGBUILD at https://gist.github.com/whitelynx/5065842/16cc4fa2909af0d224d180a2088b6e8764127739
@ascarpino: I was able to build fine without using -DQT_QMAKE_EXECUTABLE=qmake4 (even though my 'qmake' comes from qt3 for some odd reason) but in case it still doesn't work with just the qt - qt4 change, I also updated my version with your suggested fix: https://gist.github.com/whitelynx/5065842
Comment by lantald (2013-03-03 21:51)
Sorry for the late reply, but I just updated the package for the new dependency.
The qt dependency has been dropped due to the depency of qwt on qt, as
ascarpino pointed out. Thanks!
Comment by geosam (2013-03-04 16:39)
Remove qt and update qt4 with command:
sudo pacman -Sdd qt
sudo pacman -S qt4
This dependt is neccesary for pyrcc4:
pyqt-common
qgis 1.8.0-5 (Fri Jul 22 17:23:25 CEST 2011)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n
==> qgis dependencies:
- libmysqlclient (already installed)
- postgresql-libs (already installed)
- sqlite3 (already installed)
- jasper (already installed)
- curl (already installed)
- pyqt (already installed)
- python2 (already installed)
- python2-pyqt (already installed)
- giflib (already installed)
- cfitsio (already installed)
- qwt (already installed)
- gdal (already installed)
- flex (already installed)
- bison (already installed)
- libspatialite (already installed)
- spatialindex (already installed)
- cmake (already installed)
- gsl (already installed)
- postgis (already installed)
- netcdf (already installed)
- fcgi (already installed)
- python2-sip (already installed)
- grass (building from AUR)
==> Continue building qgis ? [Y/n]
==> ------------------------------
==>
==> Building and installing package
==> Install or build missing dependencies for qgis:
==> Downloading grass PKGBUILD from AUR...
bsdtar: Failed to set default locale
x PKGBUILD
x grass.sh
x grass.conf
x grass-python2.patch
x grass-tk86-fix.patch
x grass.install
Comment by syntaxerrormmm (2013-01-21 23:07)
pkgrel 5 should address compilation issue as suggested by Ticket 1843 from GRASS Trac. Please try to build it and check if it break some functionalities.
Binary packages are available on archlinuxgis repo.
Comment by haziqnoorariff (2013-01-22 00:40)
Works great so far! You made my day, thanks!
Comment by paleoman (2013-01-23 13:43)
Your binary package works great now (nviz). Thanks !
Comment by barraponto (2013-02-05 14:25)
Still can't build. Running 64-bit Arch, multilib enabled. Both glu and lib32-glu packages installed and updated.
checking for location of OpenGL includes...
checking for GL/gl.h... yes
checking for GL/glu.h .. no
configure : error *** Unable to locate OpenGL includes.
Full log at https://gist.github.com/barraponto/4714758
Comment by syntaxerrormmm (2013-02-05 21:45)
@barraponto: On the same setup you detailed I cannot reproduce the issue, sorry. I just tried to create a package directly from my machine, but I will try to rebuild packages for both arches on a new chroot.
Anyways, you shouldn't need lib32-glu. Please confirm that full path for glu.h is /usr/include/GL/glu.h. Please also attach $srcdir/grass-6.4.2/configure.status.
grass 6.4.2-5 (Wed Dec 14 18:03:47 CET 2011)
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n
==> grass dependencies:
- cfitsio (already installed)
- fftw (already installed)
- gdal (already installed)
- glu (already installed)
- libjpeg (already installed)
- libpng (already installed)
- libtiff (already installed)
- libxmu (already installed)
- mesa (already installed)
- python2 (already installed)
- postgresql (already installed)
- proj (already installed)
- tcl (already installed)
- tk (already installed)
- wxpython (already installed)
- xorg-server (already installed)
- freetype2 (already installed)
==> Edit grass.install ? [Y/n] ("A" to abort)
==> -----------------------------------------
==> n
==> Continue building grass ? [Y/n]
==> -------------------------------
==>
==> Building and installing package
==> Making package: grass 6.4.2-5 (Tue Apr 9 14:12:06 CEST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading grass-6.4.2.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.9M 100 22.9M 0 0 372k 0 0:01:03 0:01:03 --:--:-- 392k
-> Found grass.sh
-> Found grass.conf
-> Found grass-python2.patch
-> Found grass-tk86-fix.patch
==> Validating source files with md5sums...
grass-6.4.2.tar.gz ... Passed
grass.sh ... Passed
grass.conf ... Passed
grass-python2.patch ... Passed
grass-tk86-fix.patch ... Passed
==> Extracting sources...
-> Extracting grass-6.4.2.tar.gz with bsdtar
bsdtar: Failed to set default locale
==> Starting build()...
patching file doc/python/example_ctypes.py
patching file general/g.parser/test.py
patching file gui/scripts/g.change.gui.py
patching file gui/scripts/g.extension.py
patching file gui/scripts/g.extension.rebuild.all.py
patching file gui/scripts/v.type_wrapper.py
patching file gui/wxpython/gui_modules/menuform.py
patching file gui/wxpython/scripts/d.rast3d.py
patching file gui/wxpython/scripts/p.cmd.py
patching file gui/wxpython/scripts/p.db.py
patching file gui/wxpython/scripts/p.mon.py
patching file gui/wxpython/scripts/p.rast.py
patching file gui/wxpython/scripts/p.vect.py
patching file imagery/i.atcorr/create_iwave.py
patching file include/Make/Platform.make.in
patching file lib/python/ctypes/ctypesgencore/ctypedescs.py
patching file lib/python/ctypes/ctypesgencore/descriptions.py
patching file lib/python/ctypes/ctypesgencore/expressions.py
patching file lib/python/ctypes/ctypesgencore/__init__.py
patching file lib/python/ctypes/ctypesgencore/messages.py
patching file lib/python/ctypes/ctypesgencore/options.py
patching file lib/python/ctypes/ctypesgencore/parser/cdeclarations.py
patching file lib/python/ctypes/ctypesgencore/parser/cgrammar.py
patching file lib/python/ctypes/ctypesgencore/parser/cparser.py
patching file lib/python/ctypes/ctypesgencore/parser/ctypesparser.py
patching file lib/python/ctypes/ctypesgencore/parser/datacollectingparser.py
patching file lib/python/ctypes/ctypesgencore/parser/__init__.py
patching file lib/python/ctypes/ctypesgencore/parser/pplexer.py
patching file lib/python/ctypes/ctypesgencore/parser/preprocessor.py
patching file lib/python/ctypes/ctypesgencore/printer/__init__.py
patching file lib/python/ctypes/ctypesgencore/printer/printer.py
patching file lib/python/ctypes/ctypesgencore/processor/dependencies.py
patching file lib/python/ctypes/ctypesgencore/processor/__init__.py
patching file lib/python/ctypes/ctypesgencore/processor/operations.py
patching file lib/python/ctypes/ctypesgencore/processor/pipeline.py
patching file lib/python/ctypes/ctypesgen.py
patching file visualization/nviz/src/draw.c
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro) works... yes
checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wl,-O1,--sort-common,--as-needed,-z,relro) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /usr/bin/pwd
checking for source directory... /tmp/yaourt-tmp-jerry/aur-grass/src/grass-6.4.2
checking for build directory... /tmp/yaourt-tmp-jerry/aur-grass/src/grass-6.4.2
checking for svnversion... /usr/bin/svnversion
checking for MacOSX App... no
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for ranlib... ranlib
checking how to run the C preprocessor... /lib/cpp
checking if 64bit support is requested... yes
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-3.8.6-1-ARCH
checking for dlopen in -ldl... yes
checking for ar... ar
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /usr/bin/perl
checking for ANSI C header files... no
checking for limits.h... no
checking for termio.h... no
checking for termios.h... no
checking for unistd.h... no
checking for values.h... no
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... no
checking for sys/mtio.h... no
checking for sys/resource.h... no
checking for sys/time.h... no
checking for sys/timeb.h... no
checking for sys/types.h... no
checking for sys/utsname.h... no
checking for libintl.h... no
checking for iconv.h... no
checking for langinfo.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... no
checking for uid_t in sys/types.h... no
checking return type of signal handlers... int
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... no
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... libraries , headers /usr/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to use Curses... yes
checking for curses.h... no
configure: error: *** Unable to locate curses includes.
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build grass.
==> Restart building grass ? [y/N]
==> ------------------------------
==>
À noter : je viens d'essayer d'installer multisystem (AUR), et j'obtiens la même erreur...
Dell Inspiron 1545 avec ArchLinux & Debian GNU/Linux
Hmmm...
Si les sorties demandées par benjarobin montrent que ncurses est correctement installé, pourrais-tu essayer en rajoutant avant le configure dans le PKGBUILD
Name : ncurses
Version : 5.9-5
Description : System V Release 4.0 curses emulation library
Architecture : x86_64
URL : http://www.gnu.org/software/ncurses/
Licenses : MIT
Groups : None
Provides : None
Depends On : glibc
Optional Deps : None
Required By : aspell dialog gpm guile inetutils lame less libcaca
libcdio libxml2 nano pinentry procps-ng psmisc r
readline texinfo vi xterm
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 9988.00 KiB
Packager : Allan McRae <allan@archlinux.org>
Build Date : Mon Mar 18 15:38:27 2013
Install Date : Mon Apr 8 16:48:13 2013
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Unknown
À priori, il compile sans trop de problèmes... Je vous tiens au courant, car il risque d'en avoir pour un moment (3% compilés en 10 minutes). Merci pour vos réponses, en tous cas.
Dell Inspiron 1545 avec ArchLinux & Debian GNU/Linux
Pour info, il y a un dépot archlinux qui contient des binaires [archlinuxgis], les paquets ne sont pas signés. Je sais que grass peut être téléchargé en binaire.
Je donne le lien parce que j’ai galéré pour le retrouver… https://wiki.archlinux.org/index.php/Un ... positories
-> Compressing package...
bsdtar: Failed to set default locale
xz: (stdout): Write error: No space left on device
bsdtar: Write error
==> ERROR: Failed to create package file.
==> ERROR: Makepkg was unable to build .
==> Restart building qgis ? [y/N]
==> -----------------------------
==>
Merci quand-même. Edit : Par contre ça a fonctionné pour GRASS, la dépendance manquante...
@sztruks : je vais essayer ce dépôt. Merci.
Edit 2 : par contre, lorsque j'essaye de relancer l'install de qgis, il me dit :
warning: cannot resolve "qt", a dependency of "qgis"
:: The following package cannot be upgraded due to unresolvable dependencies:
qgis
:: Do you want to skip the above package for this upgrade? [y/N]
Pourtant, QT est installé...[/i]
Dell Inspiron 1545 avec ArchLinux & Debian GNU/Linux
Bon... Grass est installé, ne se lance pas en mode GUI. Ceci-dit, ça m'a permis d'installer qgis !
Je donne la fin des opérations, si ça peut aider quelqu'un à l'avenir :
yaourt ne parvenant pas à installer qgis, je suis passé directement par les AUR. J'ai téléchargé qgis, l'ai décompressé.