hanxue / qgis-digitizing-map-guide

Step-by-step instructions for using QGIS to digitize map
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Error installing QGIS on Mac #2

Open hanxue opened 10 years ago

hanxue commented 10 years ago

OSX: 10.9.4 QGIS: 2.2.0

When installing QGIS, you will see this error message

screen shot 2014-06-26 at 12 04 58 pm

Reference: https://github.com/caskroom/homebrew-cask/issues/5074

hanxue commented 10 years ago

1. Manual Installation

QGIS requires Python and a few Frameworks to be installed.

GDAL Framework

Download and install GDAL Framework from http://www.kyngchaos.com/software/frameworks Latest version as of 30 May 2014 is http://www.kyngchaos.com/files/software/frameworks/GDAL_Complete-1.11.dmg

For the technically inclined, the GDAL framework ships with the following libraries as well

Matplotlib Framework

Download and install Matplotlib from http://www.kyngchaos.com/software/python

Latest version as of writing is 1.3.1-2 http://www.kyngchaos.com/files/software/python/matplotlib-1.3.1-2.dmg

Now you can install QGIS without dependencies error

2. Use Homebrew Cask

Following steps require you to use Terminals and a bit of technical knowledge. Worth the effort to use Homebrew Cask because it makes installing software a breeze in Mac.

  1. Install Homebrew http://brew.sh/ and Homebrew Cask http://caskroom.io/
  2. Run brew update
  3. Install GDAL Framework with brew cask install gdal-framework
  4. Install Matplotlib with brew cask install matplotlib
  5. Finally, install QGIS with brew cask install qgis
hanxue commented 10 years ago

Proposed Solution

1. Complete installer

Create a complete installer that includes the GDAL Framework, matplotlib and other dependencies together with QGIS

Disadvantages

  1. May cause issues if existing frameworks already exist
  2. Large installer, additional ~80MB on top of QGIS

2. Handle dependency in Homebrew Cask

Implement https://github.com/caskroom/homebrew-cask/pull/4896 so that installing qgis will automatically install the two other Cask dependencies as well

Happy for anyone to attempt them, I don't have any free time for the foreseeable future.