-
Notifications
You must be signed in to change notification settings - Fork 67
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
MacOS homebrew install error #81
Comments
I am also unable to build VobSub2SRT on MacOS. I think the Homebrew errors here are just an indicator of the failing build overall. I get the same problem without Homebrew. I'm using MacOS Mojave 10.15.5. I also tried making the build changes from #73 which worked for others (though on older OS versions?) and still get errors:
|
Yup, I have the same problem on Mojave.
|
Install instructions for macOS fail. Could somebody fix this?
|
Same issue on my MacMini running Mojave:
|
Since this issue started off with a build error, I opened a new issue: to cover the "Non-checksummed download of vobsub2srt formula file from an arbitrary URL is unsupported!" failure. |
Has anyone tried building VobSub2SRT on macOS with an older version of Tesseract? If you're using Homebrew to compile, Homebrew will always use the latest version of any requirement for building. Building against Tesseract v3 probably stands a better chance. Since this project hasn't been updated it awhile, I suspect it assumes an older version of Tesseract. Like this version back from when the |
I think a lot of the problem is that on macOS the compiler defaults to clang instead of gcc. |
I was able to build vobsub2srt on MacOS 14 Sonoma using this fork: https://github.com/leonard-slass/VobSub2SRT You can build and install using brew like so:
|
Last login: Wed Jun 24 15:49:24 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run
chsh -s /bin/zsh
.For more details, please visit https://support.apple.com/kb/HT208050.
mbp:~ xia$ brew install --HEAD https://github.com/ruediger/VobSub2SRT/raw/master/packaging/vobsub2srt.rb
Updating Homebrew...
^CWarning: Calling Non-checksummed download of vobsub2srt formula file from an arbitrary URL is deprecated! Use 'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.
######################################################################## 100.0%-######################################################################## 100.0%
==> Cloning git://github.com/ruediger/VobSub2SRT.git
Updating /Users/xiaa/Library/Caches/Homebrew/vobsub2srt--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 0ba6e25 Merge pull request #64 from CamJN/master
==> cmake ..
==> make install
Last 15 lines from /Users/xiaa/Library/Logs/Homebrew/vobsub2srt/02.make:
^
In file included from /tmp/vobsub2srt-20200624-61427-otjkxz/src/vobsub2srt.c++:27:
In file included from /usr/local/include/tesseract/baseapi.h:31:
/usr/local/include/tesseract/serialis.h:59:43: error: unknown type name 'size_t'; did you mean 'ssize_t'?
bool DeSerialize(FILE* fp, int32_t* data, size_t n = 1);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h:31:33: note: 'ssize_t' declared here
typedef __darwin_ssize_t ssize_t;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [src/CMakeFiles/vobsub2srt.dir/vobsub2srt.c++.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/CMakeFiles/vobsub2srt.dir/all] Error 2
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Traceback (most recent call last):
'28: from /usr/local/Homebrew/Library/Homebrew/build.rb:202:in
<main>' 27: from /usr/local/Homebrew/Library/Homebrew/build.rb:118:in
install'26: from /usr/local/Homebrew/Library/Homebrew/utils.rb:474:in
with_env' 25: from /usr/local/Homebrew/Library/Homebrew/build.rb:123:in
block in install'24: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1166:in
brew' 23: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2130:in
stage'22: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:230:in
stage' 21: from /usr/local/Homebrew/Library/Homebrew/resource.rb:81:in
stage'20: from /usr/local/Homebrew/Library/Homebrew/resource.rb:106:in
unpack' 19: from /usr/local/Homebrew/Library/Homebrew/resource.rb:196:in
mktemp'18: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in
run' 17: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in
chdir'16: from /usr/local/Homebrew/Library/Homebrew/mktemp.rb:57:in
block in run' 15: from /usr/local/Homebrew/Library/Homebrew/resource.rb:197:in
block in mktemp'14: from /usr/local/Homebrew/Library/Homebrew/resource.rb:111:in
block in unpack' 13: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2154:in
block in stage'12: from /usr/local/Homebrew/Library/Homebrew/utils.rb:474:in
with_env' 11: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2155:in
block (2 levels) in stage'10: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1173:in
block in brew' 9: from /usr/local/Homebrew/Library/Homebrew/build.rb:152:in
block (2 levels) in install'8: from /Users/xiaa/Library/Caches/Homebrew/Formula/vobsub2srt.rb:15:in
install' 7: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2073:in
mkdir'6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:128:in
cd' 5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:128:in
chdir'4: from /usr/local/Homebrew/Library/Homebrew/formula.rb:2074:in
block in mkdir' 3: from /Users/xiaa/Library/Caches/Homebrew/Formula/vobsub2srt.rb:17:in
block in install'2: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1951:in
system' 1: from /usr/local/Homebrew/Library/Homebrew/formula.rb:1951:in
open'/usr/local/Homebrew/Library/Homebrew/formula.rb:2013:in
block in system': Failed executing: make install (BuildError) 9: from /usr/local/Homebrew/Library/Homebrew/brew.rb:45:in
8: from /usr/local/Homebrew/Library/Homebrew/brew.rb:150:in
rescue in <main>' 7: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:413:in
dump'6: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:359:in
issues' 5: from /usr/local/Homebrew/Library/Homebrew/exceptions.rb:363:in
fetch_issues'4: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:299:in
issues_for_formula' 3: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:285:in
search_issues'2: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:394:in
search' 1: from /usr/local/Homebrew/Library/Homebrew/utils/github.rb:219:in
open_api'/usr/local/Homebrew/Library/Homebrew/utils/github.rb:267:in `raise_api_error': curl failed! % Total % Received % Xferd Average Speed Time Time Time Current (GitHub::Error)
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to api.github.com port 443: Connection refused
mbp:~ xiaa$
The text was updated successfully, but these errors were encountered: