2021年12月07日

GnuCashを使う~ Monterey + MacPorts + XCode betaでやるもうまくいかない

GnuCash、特にFinance::Quoteを使ってみようとする試みの続き。
MacOS Montereyが安定してきた?ようなので、BigSurからUpdateし、Monterey環境にMacPortとXCodeもインストールしてやってみるが、GnuCashそのもののインストールができない。。。
以下Terminal.appのログから。

$ sudo port install gnucash

Error: 

Error: No valid Xcode installation is properly selected.

Error: Please use xcode-select to select an Xcode installation:

Error:     sudo xcode-select -switch /Users/xxxxx1/Downloads/Xcode-beta.app/Contents/Developer # version 13.2

Error: 

Error: Port gnucash requires a full Xcode installation, which was not found on your system.

Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/

Error: Follow https://guide.macports.org/#project.tickets if you believe there

is a bug.

Error: Processing of port gnucash failed


となったので、以下を入力

$ sudo xcode-select -switch /Users/xxxxx1/Downloads/Xcode-beta.app/Contents/Developer

その後、$ sudo port install gnucash

--->  Computing dependencies for gnucashWarning: cltversion: The Command Line Tools are installed, but MacPorts cannot determine the version.

Warning: cltversion: For a possible fix, please see: https://trac.macports.org/wiki/ProblemHotlist#reinstall-clt


The following dependencies will be installed: 

 Xft2

(中略)

 zstd


Continue? [Y/n]: y  

#ここでyをタイプして続けたログのWarning、Error、Failedとある部分抜粋。ここがうまくいってないところ?


--->  Cleaning xpm

Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.

Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.

--->  Fetching archive for gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://packages.macports.org/gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://kmq.jp.packages.macports.org/gd2

--->  Attempting to fetch gd2-2.3.3_1+x11.darwin_21.arm64.tbz2 from https://pek.cn.packages.macports.org/macports/packages/gd2

--->  Fetching distfiles for gd2

--->  Attempting to fetch libgd-2.3.3.tar.xz from https://distfiles.macports.org/gd2

--->  Verifying checksums for gd2

--->  Extracting gd2

--->  Applying patches to gd2

--->  Configuring gd2

Error: Failed to configure gd2: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/work/libgd-2.3.3/config.log

Error: Failed to configure gd2: configure failure: command execution failed

Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gd2/gd2/main.log for details.

Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.

Error: Processing of port gnucash failed

--->  Some of the ports you installed have notes:

  dbus has the following notes:

    Startup items (named 'dbus-system, dbus-session') have been generated that will aid in starting dbus with

    launchd. They are disabled by default. Execute the following command to start them, and to cause them to

    launch at startup:

    

        sudo port load dbus

  libpsl has the following notes:

    libpsl API documentation is provided by the port 'libpsl-docs'.

  lzma has the following notes:

    The LZMA SDK program is installed as "lzma_alone", to avoid conflict with LZMA Utils

  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

  python39 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 python39

        sudo port select --set python3 python39

(base)



posted by K's at 15:59| Comment(0) | TrackBack(0) | Mac/iPhone/iPad
この記事へのコメント
コメントを書く
お名前:

メールアドレス:

ホームページアドレス:

コメント: [必須入力]

認証コード: [必須入力]


※画像の中の文字を半角で入力してください。
この記事へのトラックバックURL
http://blog.sakura.ne.jp/tb/189185714
※言及リンクのないトラックバックは受信されません。

この記事へのトラックバック