gem install debugger -v '1.5.0' fails

后端 未结 6 1909
Happy的楠姐
Happy的楠姐 2021-01-19 21:26

I am trying to do bundle in the large project on Mavericks and some gems are broken or something wrong with my environment in spite of this is fresh install of

6条回答
  •  无人共我
    2021-01-19 21:48

    Sometimes this issue is related with missing package. Most of the time these files (for instance method.h) belongs to package named libXXX-dev.

    It's difficult for us to know what the package contains file. I've recently bumped into a utility to deal with this annoying problem (for those who works with apt-get package manager). The tool is apt-file and you can use it as follow:

    1. Installation: sudo apt-get install apt-file
    2. Updating apt-file db: sudo apt-file update
    3. Looking at file: sudo apt-file search 'method.h'

    The result might be:

    ...
    libcxxtools-dev: /usr/include/cxxtools/constmethod.h
    libcxxtools-dev: /usr/include/cxxtools/method.h
    libcxxtools-dev: /usr/include/cxxtools/unit/testmethod.h
    libgcj12-dev: /usr/include/c++/4.6/gcj/method.h
    libgcj13-dev: /usr/include/c++/4.7/gcj/method.h
    ...
    

    In the particular case of debuggergem the missing package is `libcxxtools-dev``

    I'm on Debian 3.2.54-2 x86_64 GNU/Linux

提交回复
热议问题