aitjcize / cppman

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

Cannot install in Fedora 19/ Linux mint 15 #12

Closed Farzam closed 11 years ago

Farzam commented 11 years ago

I've tried to install cppman in Fedora 19 or Linux mint 15 and it installs successfully.

pip install cppman -> succesfully installed

But when I try to use it I get the error:

cppman cout -> output is

Python IOError: [Errno 13] Permission denied

trying sudo will not help.

I've installed it in Ubuntu 12.04 and had no problem.

Farzam commented 11 years ago

-I now fixed that-.(actually not fixed -> see EDIT in the 4th comment) but have a new problem: when for example I enter cppman cout the output shown is not in right format:

1mNAME0m
       std::cout - Standard output stream

1mTYPE0m
       object
       <iostream>
1mSYNOPSIS0m
       extern ostream cout;

1mDESCRIPTION0m
       Object of class ostream that represents the standard output stream oriented to narrow characters (of type
         char

       ). It corresponds to the C stream stdout.

It seems that I need to install or configure something. Can you help me?

aitjcize commented 11 years ago

Hi Farzam,

May I ask how did you fix the first problem? About the second problem, what pager are you using? You can see $HOME/.config/cppman/config.cfg It seems to be caused by groff, which it output color encoding... I'll investigate it and fix it ASAP.

aitjcize commented 11 years ago

Can you try edit pager_vim.sh or pager_less.sh Add an extra flag '-c' after the groff command and see if this solves it?

Farzam commented 11 years ago

I don't know exactly what I did but I think that the command 'sudo yum install python-virtualenv ' solved the problem. -------> see the EDIT.

my pager is vim(I also tried less and didn't help). I also added the -c flag and that didn't help too. should I add something to my .vimrc file?

EDIT: I found out that (about the first problem) installing with pip causes the same error. how I solved the problem was by downloading the source and running sudo python setup.py install. should I install it in another way?

Farzam commented 11 years ago

I finally solved the first problem by running chmod 777 /usr/lib/cppman/* but the second problem still exists.

aitjcize commented 11 years ago

Hi Farzam,

I'm now installing Linux Mint to reproduce the problem myself. Hopefully I'll get it fixed real soon. Thank you.

Farzam commented 11 years ago

Did you observe the problem?

aitjcize commented 11 years ago

Hi Farzam,

I'm using the latest version of Linux mint but did not have the problem except from permission denied. I think it might be caused by some extra environment variables which affects the color control sequence of groff. can you should me your .bashrc?

Farzam commented 11 years ago

Now I've uninstalled Linux mint and only have Fedora 19 installed. But removing .bashrc file or using zsh didn't solve the problem. and this is my env configurations in bashrc: export EDITOR=vim export PATH=$PATH:~/bin/Scripts export CDPATH=".:/home/farzam:/home/farzam/Codes"

aitjcize commented 11 years ago

Can you try the latest git version and see if the problem still exists? Thanks!

Farzam commented 11 years ago

No, it didn't make any difference. But I ran Linux mint live and there was no problem as you said. But in fedora the problem still exists. (I will try live fedora to see if the problem is still there or not)

aitjcize commented 11 years ago

Thanks! I'll try Fedora myself too.

aitjcize commented 11 years ago

I think I found the problem, the groff command shipped by fedora is outputing color coding even if the '-c' flags is given. I'll probably simply use sed to filter it out.

aitjcize commented 11 years ago

Hi, the problem is fixed in the latest commit. Thanks for reporting!

Farzam commented 11 years ago

Thanks very much, Solved.