インストール (02)
    Top > Python > 描画 > 地図 (cartopy)
    概要
     新しい環境にcartopyを入れたときの備忘録.  インストールにはPROJとGEOSが必要.  これらのパッケージを入れるにあたって色々足りないものがあったので割と手間取った.  流れは次のような感じになった.  1. aptをアップデート,アップグレード  2. libssl-devをaptでインストール  3. cmakeをソースからコンパイルしてインストール  4. TIFFをソースからコンパイルしてインストール  5. SQLiteをソースからコンパイルしてインストール  6. PROJをソースからcmakeでコンパイルしてインストール  7. GEOSをソースからcmakeでコンパイルしてインストール  8. catropyをpipでインストール
    Install cmake
     Install:   https://cmake.org/install/  Download:   https://cmake.org/download/ ./bootstrapでエラー: 「Could NOT find OpenSSL」  OpenSSLが見つからないとのことなのでlibssl-devを入れる.  参考:   CMakeのインストール方法 - jskangarooのブログ  オプションを設定すればOpenSSLを使わないでインストールできるらしいが,後が大変なので絶対入れた方がいいとのこと. libssl-devのインストールでエラー: 「404 Not Found」  aptをアップデートしてリトライ  参考:   apt-get install で libssl-dev が 404 Not found と言われました. - Qiita  libssl-devがインストールできたら再度cmakeをインストールする.
    Install tiff
     Home Page:   http://www.simplesystems.org/libtiff/
    Install SQLite
     Home Page:   https://www.sqlite.org/index.html  Download:   https://www.sqlite.org/download.html
    Install PROJ
     Home Page:   https://proj.org/index.html  cmakeを使ってコンパイルしてみる.  参考:   Installation — PROJ 9.1.1 documentation   Ubuntu/Install_PROJ - Takuya Miyashita cmakeでエラー: 「Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)」  curlをインストールする.  参考:   Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on CMake - Stack Overflow  インストールできたら再度projをコンパイルする.  テストラン
    Install GEOS
     Home Page:   https://libgeos.org/  Download and Build:   https://libgeos.org/usage/download/
    Install cartopy
    Make sample figure
    References
    Installing | CMake + https://cmake.org/install/ Download | CMake + https://cmake.org/download/ CMakeのインストール方法 - jskangarooのブログ + https://jskangaroo.hatenablog.com/entry/2020/02/11/213905 apt-get install で libssl-dev が 404 Not found と言われました。 - Qiita + https://qiita.com/pugiemonn/items/c57760f5e65669fdd0cd LibTIFF - TIFF Library and Utilities — LibTIFF 4.5.0 documentation + http://www.simplesystems.org/libtiff/ SQLite Home Page + https://www.sqlite.org/index.html SQLite Download Page + https://www.sqlite.org/download.html Installation — PROJ 9.1.1 documentation + https://proj.org/install.html Ubuntu/Install_PROJ - Takuya Miyashita + https://hydrocoast.jp/index.php?Ubuntu/Install_PROJ Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) on CMake - Stack Overflow + https://stackoverflow.com/questions/34914944/could-not-find-curl-missing-curl-library-curl-include-dir-on-cmake GEOS | GEOS + https://libgeos.org/ Download and Build | GEOS + https://libgeos.org/usage/download/