New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Install Latest Head With Brew #864
Comments
Try without the patch. Maybe that change has already been applied.
…On May 2, 2017 8:13 PM, "jsl303" ***@***.***> wrote:
I was able to install head with brew before, but now I get this error. :(
Could someone help?
Thanks!
$ brew install tesseract --HEAD
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Using the sandbox
==> Cloning https://github.com/tesseract-ocr/tesseract.git
Cloning into '/Users/user/Library/Caches/Homebrew/tesseract--git'...
remote: Counting objects: 724, done.
remote: Compressing objects: 100% (694/694), done.
remote: Total 724 (delta 88), reused 163 (delta 12), pack-reused 0
Receiving objects: 100% (724/724), 3.74 MiB | 0 bytes/s, done.
Resolving deltas: 100% (88/88), done.
Checking connectivity... done.
==> Checking out branch master
==> Downloading b18cad4.
patch
########################################################################
100.0%
==> Patching
==> Applying b18cad4
<b18cad4>
.patch
patching file configure.ac
Hunk #1 <#1> FAILED at
220.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
patching file api/Makefile.am
Hunk #1 <#1> FAILED at
45.
1 out of 1 hunk FAILED -- saving rejects to file api/Makefile.am.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i
/private/tmp/tesseract--patch-20170502-16295-cpuv7w/b18cad4.patch
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#864>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AE2_o3IfozN9lAP88gjs9wh-NvF1aYnUks5r10D5gaJpZM4NOPNX>
.
|
Thanks, do you know how to tell brew to skip the patch?
|
The brew formulae is for version 3.05, while the HEAD is 4.00 (alpha). |
Thanks, wouldn't adding --head option like "brew install tesseract
--HEAD" download the latest head from the Github?
I'm wondering how to tell brew to skip the patch...
|
Dunno. I don't have a a Mac... |
@zdenop, maybe a new release 3.05.01 would help making such patches unnecessary. |
same here |
As you might already know, Homebrew's Formula can edit locally.
If you want to skip the patch, comment out line 71-74, and save it. ( /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/tesseract.rb )
or, wrapping patch block with 'if-end' block such like below.
|
My PR got merged. So, no need to edit Formula. @jsl303, It should work with the following command.
|
This issue can be closed. |
@stweil Please see the recent post at https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/tesseract-ocr/H9JmIRU2dQk/oMtSIvtHAwAJ regarding problem with install of training tools on mac os. Thanks! |
I need more information because I currently cannot reproduce the build problem (building training tools works for me with MacPorts and with Homebrew). |
I was able to install head with brew before, but now I get this error. :(
Could someone help?
Thanks!
$ brew install tesseract --HEAD
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
No changes to formulae.
==> Using the sandbox
==> Cloning https://github.com/tesseract-ocr/tesseract.git
Cloning into '/Users/user/Library/Caches/Homebrew/tesseract--git'...
remote: Counting objects: 724, done.
remote: Compressing objects: 100% (694/694), done.
remote: Total 724 (delta 88), reused 163 (delta 12), pack-reused 0
Receiving objects: 100% (724/724), 3.74 MiB | 0 bytes/s, done.
Resolving deltas: 100% (88/88), done.
Checking connectivity... done.
==> Checking out branch master
==> Downloading https://github.com/tesseract-ocr/tesseract/commit/b18cad4.patch
######################################################################## 100.0%
==> Patching
==> Applying b18cad4.patch
patching file configure.ac
Hunk #1 FAILED at 220.
1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
patching file api/Makefile.am
Hunk #1 FAILED at 45.
1 out of 1 hunk FAILED -- saving rejects to file api/Makefile.am.rej
Error: Failure while executing: /usr/bin/patch -g 0 -f -p1 -i /private/tmp/tesseract--patch-20170502-16295-cpuv7w/b18cad4.patch
The text was updated successfully, but these errors were encountered: