sidneys / homebrew-homebrew

sidneys.github.io Homebrew Tap
23 stars 12 forks source link

i am unable to install chntpw #18

Open GovindBadgoti opened 1 year ago

GovindBadgoti commented 1 year ago

Last 15 lines from /Users/gyaani/Library/Logs/Homebrew/openssl@1.0/03.make: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8106662892:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8106662892:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8106662892:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: make[1]: [test_ec] Error 1 make: [tests] Error 2

SantipBarber commented 1 year ago

I have the same problem when I try to install sidneys/homebrew/chntpw:

==> Installing chntpw from sidneys/homebrew ==> Installing dependencies for sidneys/homebrew/chntpw: sidneys/homebrew/openssl@1.0 ==> Installing sidneys/homebrew/chntpw dependency: sidneys/homebrew/openssl@1.0 ==> Patching ==> Applying openssl-1.0.2u-darwin-arm64.patch patching file Configure ==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/opt/homebrew/etc ==> make ==> make test Last 15 lines from /Users/spbarber/Library/Logs/Homebrew/openssl@1.0/03.make: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8254168044:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8254168044:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8254168044:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: make[1]: *** [test_ec] Error 1 make: *** [tests] Error 2

To contextualize a bit: we are trying to install this library to be able to use https://mac.getutm.app/ . The goal is to install a Windows 11 virtual machine on a Mac M2 Pro.

Any help is welcome. Thanks!

shapas commented 1 year ago

Try to use this solution:

https://github.com/sidneys/homebrew-homebrew/issues/2#issuecomment-885728072

Best

stiartsly commented 1 year ago

I also have same problem => Fetching dependencies for sidneys/homebrew/chntpw: sidneys/homebrew/openssl@1.0 ==> Fetching sidneys/homebrew/openssl@1.0 ==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/openssl-1.0.2u-darwin-arm64.patch Already downloaded: /Users/stiartsly/Library/Caches/Homebrew/downloads/db281f2b8a51c8a97d6bced562e99959b2c8b3241129895f8850506ccd1f8899--openssl-1.0.2u-darwin-arm64.patch ==> Downloading https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz Already downloaded: /Users/stiartsly/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz ==> Fetching sidneys/homebrew/chntpw ==> Downloading https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz Already downloaded: /Users/stiartsly/Library/Caches/Homebrew/downloads/dee692592b6fc0d6db43012210cf70e9ef7a6018e20818b5f15187cbd3a06e39--chntpw-0.99.6.tar.gz ==> Installing chntpw from sidneys/homebrew ==> Installing dependencies for sidneys/homebrew/chntpw: sidneys/homebrew/openssl@1.0 ==> Installing sidneys/homebrew/chntpw dependency: sidneys/homebrew/openssl@1.0 ==> Patching ==> Applying openssl-1.0.2u-darwin-arm64.patch patching file Configure ==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/opt/homebrew/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-arm64-cc enable-ec_nistp_64_gcc_128 ==> make ==> make test Last 15 lines from /Users/stiartsly/Library/Logs/Homebrew/openssl@1.0/03.make: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8402099180:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8402099180:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8402099180:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: make[1]: [test_ec] Error 1 make: [tests] Error 2

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

These open issues may also help: Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2

gurvirbaraich commented 1 year ago

Hi @SantipBarber ! I had the same issue install chntpw using the readme.unix.md file provided by uupdump. Instead of that command run this.

$ brew install cabextract wimlib cdrtools
$ brew tap minacle/chntpw
$ brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw
Galuur commented 1 year ago

Hi @SantipBarber ! I had the same issue install chntpw using the readme.unix.md file provided by uupdump. Instead of that command run this.

$ brew install cabextract wimlib cdrtools
$ brew tap minacle/chntpw
$ brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw

After 4 hrs of banging my head over this issue, your solution finally worked. Kudos!

nasserahmed commented 8 months ago

Thank you @Galuur!