sidneys / homebrew-homebrew

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

Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2

Open ameeno opened 3 years ago

ameeno commented 3 years ago

Hello.

I have a mac M1 mba and I am trying to install sidneys/homebrew/chntpw

i have tried via rosetta and also via regular arm homebrew. unfortunately there is an issue building openssl 1.0 for this cpu,

there seems to be some instructions to build it manually on openssl github repo, any chance this can be incorporated into your script?

fengsx1995 commented 3 years ago

I have same problem.



x86_64cpuid.s:273:7: error: invalid token in expression
 cmpq $0,%rax
      ^
x86_64cpuid.s:273:7: error: invalid operand
 cmpq $0,%rax
      ^
x86_64cpuid.s:274:9: error: unknown token in expression
 cmoveq %rcx,%rax
        ^
x86_64cpuid.s:274:9: error: invalid operand
 cmoveq %rcx,%rax
        ^
make[1]: *** [x86_64cpuid.o] Error 1
make: *** [build_crypto] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!
d4rkm0nkey commented 3 years ago

I have the same issue. Anyone got it fixed?

Kakise commented 3 years ago

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz

Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

994279206 commented 3 years ago

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz

Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

i edit the Makefile replace the line that contains OSSLPATH by this one 'OSSLPATH=/opt/homebrew/Cellar/openssl@1.1/1.1.1k' ,i have get a new issue gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.1/1.1.1k/include -Wl chntpw.c warning: unknown warning option '-Wl' [-Wunknown-warning-option] chntpw.c:141:34: error: expected expression DES_set_odd_parity((des_cblock *)key); ^ chntpw.c:141:22: error: use of undeclared identifier 'des_cblock' DES_set_odd_parity((des_cblock *)key); ^ chntpw.c:186:3: error: unknown type name 'des_key_schedule'; did you mean 'DES_key_schedule'? des_key_schedule ks; ^~~~~~~~~~~~~~~~ DES_key_schedule /opt/homebrew/Cellar/openssl@1.1/1.1.1k/include/openssl/des.h:43:3: note: 'DES_key_schedule' declared here } DES_key_schedule; ^ chntpw.c:187:3: error: unknown type name 'des_cblock'; did you mean 'DES_cblock'? des_cblock deskey; ^~~~~~~~~~ DES_cblock

Kakise commented 3 years ago

@994279206 It's because chntpw v 0.99.6 uses openssl 1.0 as a dependency, you absolutely need to install that and use it

minacle commented 3 years ago

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.


(+) Thank @aiden-leong for correction!

anton-patrushev commented 3 years ago

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it.

https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

YUX commented 3 years ago

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it. https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

the Easy Installation script works

aiden-leong commented 3 years ago

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install chntpw

Repositories

Issues and PRs are welcome.

Should be:

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw
ashtonvalasko commented 3 years ago

Update. This fixed it:

Easy Installation curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2 YOU NEED TO CHMOD +X uup_download_macos RUN ./uup_download_macos

BAM it starts downloading.

kuldeepaher01 commented 2 years ago

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

After running the script make gives this error :

make gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl chntpw.c gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl ntreg.c gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl edlib.c gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl cpnt.c gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl reged.c gcc -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl -o cpnt cpnt.o -L/opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib /opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib/libcrypto.a clang: error: no such file or directory: '/opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib/libcrypto.a' make: [cpnt] Error 1 make: Waiting for unfinished jobs....

Do not report this issue to Homebrew/brew or Homebrew/core!

I'm getting this issue... after running the easy installation sxript

minacle commented 2 years ago

@kuldeepaher01, Please try my new solution that using homebrew tap. https://github.com/sidneys/homebrew-homebrew/issues/2#issuecomment-885728072

aiden-leong commented 2 years ago

As I mentioned before, this works:

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

It's not a good idea to provide brew users a long bash script as I've recommended brew to many friends who don't have IT backgrounds.

Let's keep this thread nice and clean. Deal?

pr0b3r7 commented 2 years ago

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it. https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

the Easy Installation script works

This fixed the issue for me

GeoSpecs13 commented 2 years ago

Hello All,

I followed the solutions above, only to find out while it generates the ISO file to create a Windows 10 VM from. According to Parallels, in order to create a VM for Windows 10 on a M1 chipset a VHDX file is needed. Is there a way that this process can generate a VHDX file from this? ISO files from what I understand are only compatible for Intel based machines.

Thanks, Andrew

ashtonvalasko commented 2 years ago

Yes ! I have secretly l severely vhdx. Will give them a shot next. Thanks,,!(¿

On Fri, Feb 4, 2022, 15:23 Andrew Sauerwin @.***> wrote:

Hello All,

I followed the solutions above, only to find out while it generates the ISO file to create a Windows 10 VM from. According to Parallels, in order to create a VM for Windows 10 on a M1 chipset a VHDX file is needed. Is there a way that this process can generate a VHDX file from this? ISO files from what I understand are only compatible for Intel based machines.

Thanks, Andrew

— Reply to this email directly, view it on GitHub https://github.com/sidneys/homebrew-homebrew/issues/2#issuecomment-1030322457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHXFNE3JNPHWRNFSHV7TMETUZQYTHANCNFSM4WGHDMNA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

jes-ale commented 2 years ago

Update. This fixed it:

Easy Installation curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2 YOU NEED TO CHMOD +X uup_download_macos RUN ./uup_download_macos

BAM it starts downloading.

This worked for me <3

dhanani94 commented 2 years ago

Update. This fixed it: Easy Installation curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2 YOU NEED TO CHMOD +X uup_download_macos RUN ./uup_download_macos BAM it starts downloading.

This worked for me <3

~/Desktop  ❯❯❯ brew install --formula --build-from-source ./openssl@1.0.rb
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/open
curl: (7) Failed to connect to gist.githubusercontent.com port 443: Bad file descriptor

Error: openssl@1.0: Failed to download resource "openssl@1.0--patch"

Hmm running into this issue, looking into this but yeah, not able to get this to install

edit: @minacle 's method worked beautifully. I had some unrelated networking issues to work through first 🙃

minacle commented 2 years ago

@dhanani94, Please try my new solution that using homebrew tap. https://github.com/sidneys/homebrew-homebrew/issues/2#issuecomment-885728072

yeldos23 commented 2 years ago

thanks!

Adithr123 commented 2 years ago

I have gone through everything, but i still get this error One of required applications is not installed. The following applications need to be installed to use this script:

macOS requires Homebrew (https://brew.sh) to install the prerequisite software. If you use Homebrew, you can install these using: brew tap sidneys/homebrew brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw

Adithr123 commented 2 years ago

I have tried everyones methoods, reinstalling everything, ect

aycajr commented 2 years ago

Minacle's method worked for me

7081869 commented 2 years ago

Hi I have a similar issue, I've tried minacle method as well as the other the other solution proposed by ashtonvalasko. I'm trying to build a iso file for windows on mac.

The current error message when running ./uup_download_macos.sh is "genisoimage nor mkisofs does seem to be installed", although I have repeatedly tried to install cdrtools over homebrew. Can you help me on this topic?

minacle commented 2 years ago

@7081869

You should install cabextract, cdrtools, and wimlib too, as wrote in readme.unix.md.

Try below:

brew install cabextract cdrtools wimlib

and then retry your script.

If the problem not resolved, you may need to (re)link them explicitly.

brew unlink cabextract cdrtools wimlib
brew link cabextract cdrtools wimlib
moekhalil commented 2 years ago

brew install aria2 cabextract cdrtools wimlib

the following is for installing chntpw (instead of messing with make file)

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb

brew install --formula --build-from-source ./openssl@1.0.rb

mkdir -p /opt/homebrew/Cellar/openssl@1.0
sudo ln -s /usr/local/Cellar/openssl@1.0/1.0.2u /opt/homebrew/Cellar/openssl@1.0/1.0.2u
brew install --formula --build-from-source ./chntpw.rb
sudo rm /opt/homebrew/Cellar/openssl@1.0/1.0.2u

I didn't have /opt/homebrew/ at all, so I removed the whole directory when finished.

if chntpw isn't showing up in terminal as available, and brew link chntpw says it is already linked, start new terminal session (or type bash or zsh and press enter) then run ./uup_download_macos.sh -- and voila!

SamSlainte commented 1 year ago

I got another error when running "brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw" anybody can help?

Last 15 lines from /Users/[username]/Library/Logs/Homebrew/openssl@1.0/03.make: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8009892332: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

08Jesus02 commented 1 year ago

me explicas como aplicaste la solucion? por favor, no soy muy experimentado en esto de la terminal

Third33 commented 1 year ago

I got another error when running "brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw" anybody can help?

Last 15 lines from /Users/[username]/Library/Logs/Homebrew/openssl@1.0/03.make: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8009892332: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

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

it's work for me. Ventura

CrimsonCleaver commented 1 year ago

Also getting the same issue as SamSlainte

Tried with a fresh Ventura 13.3 build on a M1 MBP multiple times. Latest Brew used, openssl1.0 never successfully runs make test, it gets the elliptic curve routines error every time.

smbrine commented 1 year ago
brew install minacle/chntpw/chntpw

Man you're great! I much appreciate your solution! It worked that easy!

SamSlainte commented 1 year ago

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

Thanks @Third33 , it also worked with me! bash uup_download_macos.sh worked after running 2 commands above.

Satur666 commented 1 year ago

hello everyone, there is a problem when creating an iso image

`==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openss ==> make ==> make test Last 15 lines from /Users/mihail/Library/Logs/Homebrew/openssl@1.0/03.make: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820: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 sh: uup_download_macos.sh: No such file or directory`

Has anyone experienced this? Any tips?

Third33 commented 1 year ago

hello everyone, there is a problem when creating an iso image

`==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openss ==> make ==> make test Last 15 lines from /Users/mihail/Library/Logs/Homebrew/openssl@1.0/03.make: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820: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) #2 sh: uup_download_macos.sh: No such file or directory`

Has anyone experienced this? Any tips?

See my comment above :)

Satur666 commented 1 year ago

hello everyone, there is a problem when creating an iso image ==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openss ==> make ==> make test Last 15 lines from /Users/mihail/Library/Logs/Homebrew/openssl@1.0/03.make: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820: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) #2 sh: uup_download_macos.sh: No such file or directory Has anyone experienced this? Any tips?

See my comment above :)

I would not write a message if I did not try this initially, it did not help.

alexbear18 commented 1 year ago

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

Thank you, it worked for me!

jack338c commented 1 year ago

hello everyone, there is a problem when creating an iso image

`==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openss ==> make ==> make test Last 15 lines from /Users/mihail/Library/Logs/Homebrew/openssl@1.0/03.make: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820: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) #2 sh: uup_download_macos.sh: No such file or directory`

Has anyone experienced this? Any tips?

I got the same issue

jack6@jack6s-Mac-mini ~ % brew install sidneys/homebrew/openssl@1.0 ==> Fetching sidneys/homebrew/openssl@1.0 ==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c19 Already downloaded: /Users/jack6/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/jack6/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz ==> Installing openssl@1.0 from sidneys/homebrew ==> Patching ==> Applying openssl-1.0.2u-darwin-arm64.patch patching file Configure ==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/usr/local/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared en ==> make ==> make test Last 15 lines from /Users/jack6/Library/Logs/Homebrew/openssl@1.0/03.make: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 140704691860460:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 140704691860460:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 140704691860460: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

wy555 commented 1 year ago

Update:

I have found that the aria2c is placed in /opt/homebrew/bin after installing aria2.

I set a temporary path to this /opt/homebrew/bin and able to run the uup_download_macos.sh script to create the Windows 11 Pro ISO file for ARM64 for Macbook Silicon M1.

Your solution works for the minacle/chntpw repository.

Thanks.


I have tried the miracle/chntpw repository and installing the miracle/chntpw/chntpw.

But still running the uup_download_macos.sh script gave the following error: aria2c does not seem to be installed

Below is the steps I did.

$ /opt/homebrew/bin/brew tap minacle/chntpw $ /opt/homebrew/bin/brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw

==> Downloading https://formulae.brew.sh/api/formula.jws.json

O=

==> Downloading https://formulae.brew.sh/api/cask.jws.json

O=

Warning: aria2 1.36.0_1 is already installed and up-to-date. To reinstall 1.36.0_1, run: brew reinstall aria2 Warning: cabextract 1.11 is already installed and up-to-date. To reinstall 1.11, run: brew reinstall cabextract Warning: wimlib 1.14.1 is already installed and up-to-date. To reinstall 1.14.1, run: brew reinstall wimlib Warning: cdrtools 3.02a09 is already installed and up-to-date. To reinstall 3.02a09, run: brew reinstall cdrtools Warning: minacle/chntpw/chntpw 1.0.1 is already installed and up-to-date. To reinstall 1.0.1, run: brew reinstall chntpw

$ bash uup_download_macos.sh aria2c does not seem to be installed Check the readme.unix.md for details

creativetags commented 1 year ago

I've tried the suggestions above and still have the error during make test about elliptic curve routines

johnd486 commented 1 year ago

I also have this problem, building on a MacBook Air M2. Looks like this issue has been open a while, any chance of a fix? The objective is to get Windows 11 ARM running on UTM on said MacBook.

==> make
==> make test
Last 15 lines from /Users/<my_username>/Library/Logs/Homebrew/openssl@1.0/03.make:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8434130604:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8434130604: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:
can't install openssl@1.0 https://github.com/sidneys/homebrew-homebrew/issues/20
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2
herbert256 commented 1 year ago

Also on a M2 MacBook Air, came for the same problem here, I found in others issues below solution

brew tap minacle/chntpw brew install minacle/chntpw/chntpw brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw ./uup_download_macos.sh

invercargill12 commented 1 year ago

Hi everyone! I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

Error message:

Creating boot.wim...
openHive(): read error: : Inappropriate ioctl for device
chntpw: Unable to open/read a hive, exiting..
[WARNING] Ignoring extended attributes of 1 files
"ISODIR/sources/boot.wim" original size: 402005 KiB
Using LZX compression with 8 threads
Archiving file data: 1118 MiB of 1118 MiB (100%) done
"ISODIR/sources/boot.wim" optimized size: 395341 KiB
Space saved: 6663 KiB

Exporting Windows 11 Core to install.wim...
[ERROR] Destination image description contains illegal characters
ERROR: Exiting with error code 24:
       An invalid parameter was given.
Failed to export Windows 11 Core to install.wim

Does anyone know how to fix it? Thank you.

herbert256 commented 1 year ago

Hi everyone! I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

instead of using uup_download_macos.sh you can download below ISO

https://files.rg-adguard.net/file/eaa79b4b-0b95-add5-9a9e-06bb860ec5cc

lixianguser commented 1 year ago

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

Thank you, it worked for me!👏

fmarulaz commented 1 year ago

@lixianguser : Merci beaucoup pour ta solution ! Elle fonctionne parfaitement et m'a permis de résoudre ce problème ! Je tournais en rond depuis des heures, et tu m'as tiré d'affaire ... Merci encore et bonne (fin de ?) journée. Bien à toi : Florent

fmarulaz commented 1 year ago

@Lixianguser: Thank you very much for your solution! It works perfectly and allowed me to solve this problem!

I've been going around in circles for hours, and you got me out of trouble...

Thank you again and good (end of?) Day.

Yours: Florent

adewidar-trz commented 1 year ago

@CrimsonCleaver did you manage to get past the make test stage? I'm stuck at this step too

lekosbelas commented 1 year ago

Hi everyone! I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

instead of using uup_download_macos.sh you can download below ISO

https://files.rg-adguard.net/file/eaa79b4b-0b95-add5-9a9e-06bb860ec5cc

@herbert256 Thank you bro

Ph1eu commented 1 year ago

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

this worked for my M2. thanks a lot

benedict051998 commented 1 year ago

Kindly help me with this error. I still can't get it to work.

make test Last 15 lines from /Users/juliusbenedictignacio/Library/Logs/Homebrew/openssl@1.0/03.make: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8310152876:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8310152876:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8310152876: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