aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.27k stars 79 forks source link

gzip: stdout: Broken pipe #144

Closed madskjeldgaard closed 1 year ago

madskjeldgaard commented 1 year ago

Hi, all of a sudden I started getting broken pipe errors:

/opt/homebrew/bin/cppman Ver 0.5.4
Copyright (C) 2010 Wei-Ning Huang
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Wei-Ning Huang (AZ) <aitjcize@gmail.com>.

From this command for example:

 cppman std::list

gzip: stdout: Broken pipe

I'm on MacOS 13.0.1 (22A400) on an M2 macbook

kanewjp commented 1 year ago

Same issue on M1 pro

vbaswin commented 1 year ago
gunzip: error writing to output: Broken pipe
gunzip: /Users/aswinvb/.cache/cppman/cppreference.com/std::vector<T,Allocator>::begin
std::vector<T,Allocator>::cbegin.3.gz: uncompress failed

on m2 macbook air for input

cppman vector::begin
aitjcize commented 1 year ago

You need to install the groff command, it's part of the dependencies.

brew install groff

madskjeldgaard commented 1 year ago

You need to install the groff command, it's part of the dependencies.

brew install groff

This fixes it, but it's actually not part of the dependencies on homebrew at least: https://formulae.brew.sh/formula/cppman#default

aitjcize commented 1 year ago

I guess I can send a PR for the brew formula.

madskjeldgaard commented 1 year ago

Thanks! Maybe also there should be an addition to the README about this dependency? Thanks a lot. really happy it is working again, I'm a big fan of this tool :)

glenvt18 commented 1 year ago

Hi. Is agroff a MacOS-specific thing or is it a typo? There is no agroff on Linux and after 9adce61 cppman is broken on Linux.

aitjcize commented 1 year ago

@glenvt18 sorry that was indeed a typo. Fixed on master.

madskjeldgaard commented 1 year ago

I'm closing this now as it seems to work fine (for me at least) now. Thanks for the fixes @aitjcize