[QGIS-it-user] QGIS 3 beta - Installazione su macOS

Finalmente anche gli utenti Mac, possono godersi Qgis3, ovvero la
2.99.0-Master, compilato con Qt 5.10.0 - su MacBook Pro - macOS High Sierra
v. 10.13.2.
Qui di seguito due screen-shots dimostrativi.

Saluti.

<http://osgeo-org.1560.x6.nabble.com/file/t381790/Screen_2018-03-03__11.png&gt;
<http://osgeo-org.1560.x6.nabble.com/file/t381790/Screen__2018-03-03_alle_08.png&gt;

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Al seguente Link, ho scritto una breve guida, che puo' essere utile a tutti
i Mac Users, curiosi di sperimentare la versione beta di QGIS3!
Buona lettura
Enjoy :slight_smile:

Installazione da Terminale QGIS 3 su macOS
<https://medium.com/@ivano.giuliano/installazione-di-qgis-3-beta-su-piattaforme-macos-tramite-macports-28940731ed2b&gt;

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Salve Ivano, sono relativamente nuovo riguardo alle installazioni da
terminale.

Vorrei portare avanti il tuo tutorial rispetto all'installazione di qgis 3
su mac, e ti ringrazio anticipatamente per il tutorial prezioso

Non capisco come ha scaricato la versione di qgis 3 dal terminale
potresti darmi qualche indicazione cortesemente?

grazie

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Credo aver risolto

dopo aver installato l'apk dei macports è necessario seguire il passaggio
2.5.1. The Postflight Script
<https://guide.macports.org/chunked/installing.shell.html&gt; dando al
terminale la stringa : export PATH=/opt/local/bin:/opt/local/sbin:$PATH

dopo di che seguo il tutorial con la speranza non dia errori tipo <Error:
Failed to checksum: ….> perchè non saprei come compilare il pacchetto.

grazie

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Ciao Tony75,
la configurazione della path è corretta.

Se segui il tutorial non dovresti aver problemi.
Gli errori di checksum sono gestibili attraverso le procedure di cleaning
sulla porta.

Buon QGIS 3!

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Ha finito adesso di installare i pacchetti ma niente errore, inserisco anche
il file LOG.

Potresti darmi qualche suggerimento in merito? Grazie

Error: Failed to build qgis3: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qgis3 failed

---> Some of the ports you installed have notes:
  dbus has the following notes:
   
############################################################################
    # Startup items have been generated that will aid in
    # starting dbus with launchd. They are disabled
    # by default. Execute the following commands to start them,
    # and to cause them to launch at startup:
    #
    # sudo launchctl load -w
    /Library/LaunchDaemons/org.freedesktop.dbus-system.plist
    # launchctl load -w
/Library/LaunchAgents/org.freedesktop.dbus-session.plist
   
############################################################################
  libpsl has the following notes:
    GTK-based documentation is provided by the port 'libpsl-docs'.
  postgresql10 has the following notes:
    To use the postgresql server, install the postgresql10-server port
  py36-cython has the following notes:
    To make the Python 3.6 version of Cython the one that is run when you
    execute the commands without a version suffix, e.g. 'cython', run:
    
    port select --set cython cython36
  py36-sip has the following notes:
    py36-sip is available under a PSF license with one addition:
    
        4. Licensee may not use SIP to generate Python bindings for any C or
           C++ library for which bindings are already provided by Riverbank.
    
    GPL-2 or GPL-3 licenses are also available. For details see
    /opt/local/share/doc/py36-sip/LICENSE [-GPL2 -GPL3]
  python27 has the following notes:
    To make this the default Python or Python 2 (i.e., the version run by
the
    'python' or 'python2' commands), run one or both of:
    
        sudo port select --set python python27
        sudo port select --set python2 python27
  python36 has the following notes:
    To make this the default Python or Python 3 (i.e., the version run by
the
    'python' or 'python3' commands), run one or both of:
    
        sudo port select --set python python36
        sudo port select --set python3 python36

main.log <http://osgeo-org.1560.x6.nabble.com/file/t382845/main.log&gt;

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

La prima cosa che ti invito a fare e chiudere e riavviare il terminale, in
modo da riaggiornare la shell.
Poi rilancia il tutto.

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

poi inserisci nel terminale queste istruzioni:

sudo port clean python27
sudo port install python27
sudo port install qgis3

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Ciao Ivano, grazie per la risposta.

Niente,

Error: Failed to build qgis3: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qgis3 failed

ho notato anche questa cosa, non se se sia normale
se riavvio il terminale e invio il comando ad esempio : sudo port clean
python27 ;
mi restituisce questo : sudo: port: command not found

quindi devo digitare nuovamente export
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
➜ ~ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

ma dopo :

➜ ~ $PATH
zsh: no such file or directory:
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

quindi posso dare i comandi che mi hai indicato

➜ ~ sudo port clean python27
---> Cleaning python27
➜ ~ sudo port install python27
---> Computing dependencies for python27
---> Cleaning python27
---> Scanning binaries for linking errors
---> No broken files found.
➜ ~ sudo port install qgis3
---> Computing dependencies for qgis3
---> Building qgis3
Error: Failed to build qgis3: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_qgis3/qgis3/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qgis3 failed

Niente da fare.

PS : nella prima riga del .bash_profile ho inserito

PATH="/usr/bin:/bin:/usr/sbin:/usr/X11/bin:/usr/local/bin:/usr/local/git/bin"

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Da quello che leggo, l'ambiente purtroppo non e' configurato bene. XCODE e'
stato installato correttamente?
Hai accettato i termini di licenza ?

Prova a eseguire questo schema:

1) Esegui: export PATH = / opt / local / bin: / opt / local / sbin: $ PATH e
successivamente esegui echo$ PATH di nuovo per confermare che la PATH è
stata modificata.

2) Apri una nuova finestra del terminale (Cmd-n) che eseguirà il file
.profile appena aggiornato e quindi tiene conto della PATH aggiornata che
include le directory corrette di MacPorts. Quindi continua solo nella nuova
finestra del terminale che hai aperto.

3) Devi accettare la licenza Xcode prima di poter continuare con la build di
QGIS3

4) esegui sudo xcodebuild --license, digita "accetta"

4b) oppure : apri Xcode come applicazione e accetta il contratto di licenza.

6) esegui sudo port install qgis3

Se il percorso non dovesse andare nuovamente a buon fine, ti consiglio di
reinstallare XCODE e MacPorts con una preventiva pulizia del sistema.

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Niente da fare ivano sempre lo stesso errore

➜ ~ sudo port clean python36
---> Cleaning python36
➜ ~ sudo port clean python27
---> Cleaning python27
➜ ~ sudo port clean py36-qscintilla-qt5
---> Cleaning py36-qscintilla-qt5
➜ ~ sudo port clean python27
---> Cleaning python27
➜ ~ sudo port install python27
---> Computing dependencies for python27
---> Cleaning python27
---> Scanning binaries for linking errors
---> No broken files found.
➜ ~ sudo port install python36
---> Computing dependencies for python36
---> Cleaning python36
---> Scanning binaries for linking errors
---> No broken files found.
➜ ~ sudo port install py36-qscintilla-qt5
---> Computing dependencies for py36-qscintilla-qt5
---> Cleaning py36-qscintilla-qt5
---> Scanning binaries for linking errors
---> No broken files found.
➜ ~ sudo port install qgis3
---> Computing dependencies for qgis3
---> Building qgis3
Error: Failed to build qgis3: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_gis_qgis3/qgis3/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets to report a bug.
Error: Processing of port qgis3 failed

--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html

Non disperarti, ho riscontrato gli stessi problemi anch’io!

Dimenticavo di dirti che, ammettendo che sia tutto configurato a dovere,può
essere che i servizi per lo scaricamento delle dipendenze,al momento non
sono disponibili per varie ragioni, come ho scritto nella procedura, prova
in momenti diversi, io l’ho fatto alle due di notte e la terza volta è
andato tutto a buon fine! :grinning:

-----
Ivano
GIS&DATA Science
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Italian-User-f5250612.html