homebrew-jiro icon indicating copy to clipboard operation
homebrew-jiro copied to clipboard

ERROR - key.cpp:144:9

Open ikseles opened this issue 4 years ago • 7 comments

received this message after trying to install Gridcoin today using the command: brew install gridcoin

the following was generated (note not all data included such as downloading, pouring, or installing which is represented by ".........." to conserve space)

Warning: Treating gridcoin as a formula. For the cask, use git-jiro/jiro-casks/gridcoin ==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19 ######################################################################## 100.0% ............

.............==> Downloading https://github.com/gridcoin-community/Gridcoin-Research/archive/ ==> Downloading from https://codeload.github.com/gridcoin-community/Gridcoin-Res # -#O=- # #
==> Installing gridcoin from git-jiro/jiro Warning: Your Xcode (12.5.1) is outdated. Please update to Xcode 13.0 (or delete it). Xcode can be updated from the App Store.

==> Installing dependencies for git-jiro/jiro/gridcoin: m4, autoconf, automake, libpng, freetype, fontconfig, gettext, libffi, pcre, gdbm, mpdecimal, [email protected], readline, sqlite, xz, [email protected], glib, pkg-config, libpthread-stubs, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, jpeg, libtiff, gdk-pixbuf, fribidi, gobject-introspection, graphite2, icu4c, harfbuzz, pango, librsvg, libtool, berkeley-db@4, boost, gperftools, snappy, leveldb, zstd, libzip, miniupnpc, openssl, qt@5 and qrencode ==> Installing git-jiro/jiro/gridcoin dependency: m4 ==> Pouring m4--1.4.19.big_sur.bottle.tar.gz 🍺 /usr/local/Cellar/m4/1.4.19: 13 files, 724.4KB ...........

...........==> Installing git-jiro/jiro/gridcoin ==> Patching ==> cd src ; ../contrib/nomacro.pl ==> ./autogen.sh ==> ./configure ==> make NO_UPGRADE=1 USE_UPNP=1 USE_QRCODE=1 Last 15 lines from /Users/USERNAME/Library/Logs/Homebrew/gridcoin/04.make: CXX gridcoin/libgridcoin_util_a-superblock.o CXX gridcoin/libgridcoin_util_a-tally.o CXX gridcoin/libgridcoin_util_a-tx_message.o CXX gridcoin/libgridcoin_util_a-upgrade.o CXX libgridcoin_util_a-init.o CXX libgridcoin_util_a-key.o key.cpp:144:9: error: invalid argument type 'void' to unary expression if (!BN_zero(zero)) { ret=-1; goto err; } ^~~~~~~~~~~~~~ CXX libgridcoin_util_a-keystore.o 1 error generated. make[2]: *** [libgridcoin_util_a-key.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): https://github.com/git-jiro/homebrew-jiro/issues

These open issues may also help: Gridcoin does not run in MacOS Catalina 10.15.5 https://github.com/Git-Jiro/homebrew-jiro/issues/78

Error: Your Xcode (12.5.1) is outdated. Please update to Xcode 13.0 (or delete it). Xcode can be updated from the App Store.

and yes I am currently updated my Xcode since it is out of date

ikseles avatar Sep 30 '21 22:09 ikseles

Hi! Which macOS version are you running on your machine?

As a quick fix you can also try if the cask 'git-jiro/jiro-casks/gridcoin' works fine for you instead. Since the cask is a pre-compiled version of gridcoin there is no need to compile it yourself.

Git-Jiro avatar Oct 01 '21 18:10 Git-Jiro

-running Big Sur v11.6 -I tried your suggestion 'git-jiro/jiro-casks/gridcoin' and grid coin installed -when I attempt to run gridcoin I get the following message.

Error: Cannot read configuration file. Please check the path and format of the file

-when I look for the Gridcoin folder under "/users/USER/Library/Application Support/" there is no folder relating to gridcoin at all

ikseles avatar Oct 23 '21 13:10 ikseles

The folder should be "/users/USER/Library/Application Support/GridcoinResearch" and the config file is "gridcoinresearch.conf"

a minimal configfile would look like: email=your.email.address@here

Git-Jiro avatar Oct 23 '21 15:10 Git-Jiro

here are the other details of the config file: https://gridcoin.us/wiki/config-file.html

Git-Jiro avatar Oct 23 '21 15:10 Git-Jiro

The folder should be "/users/USER/Library/Application Support/GridcoinResearch" and the config file is "gridcoinresearch.conf"

a minimal configfile would look like: email=your.email.address@here

the folder is not located at the specified place you referenced. I searched my computer for the config file "gridcoinresearch.conf" and one is not found. I tried to add the gridcoin research folder manually (right click -> add new folder->...) to the application support file but the OS will not allow it.

Is there a command I can run in Terminal to build that file and everything that is suppose to be contained in it?

Please forgive me I'm new to programming.

ikseles avatar Oct 23 '21 18:10 ikseles

Ok, then we just found the problem! I just tried to create a random folder under "/users/USER/Library/Application Support/" via Finder and that worked without any issues.

As far as I know Girdcoin usually creates the folder itself, and since you are not allowed to create the folder, Gridcoin most probably is also not allowed to create the folder.

I am not yet sure how to fix that issue on your machine.

Git-Jiro avatar Oct 24 '21 06:10 Git-Jiro

Maybe you can try to use "First Aid" function in "Disk Utility" to try to repair the file system permissions? But make a system backup first, because you never know.

Git-Jiro avatar Oct 24 '21 06:10 Git-Jiro