Skip to content

Failed to run on Ubuntu 18.04 LTS #139

@PanderMusubi

Description

@PanderMusubi

Version 1.11.2 of cldoc doesn't run on Ubuntu 18.04 LTS. The error is:

Fatal: Failed to run clang++ to obtain system include headers, please install clang++ to use cldoc
  Error message: [Errno 2] No such file or directory: 'clang++': 'clang++'

but running

sudo apt-get install clang++

results in

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'clang-modernize-5.0' for regex 'clang+'
...
Note, selecting 'clang-6.0-examples' for regex 'clang+'
libclang1-6.0 is already the newest version (1:6.0-1ubuntu2).
libclang1-6.0 set to manually installed.
clang-format-6.0 is already the newest version (1:6.0-1ubuntu2).
clang-format is already the newest version (1:6.0-41~exp5~ubuntu1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-clang-4.0 : Conflicts: python-clang-x.y
                    Breaks: python-clang-3.9 but 1:3.9.1-19ubuntu1 is to be installed
 python-clang-5.0 : Conflicts: python-clang-x.y
                    Breaks: python-clang-3.9 but 1:3.9.1-19ubuntu1 is to be installed
 python-clang-6.0 : Conflicts: python-clang-x.y
                    Breaks: python-clang-3.9 but 1:3.9.1-19ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.

I have no idea how to continue from here. dpkg -l|grep -v ^ii did not report anything out of the ordinary. How can this be fixed?

dpkg -l|grep -i clang

reports

ii  clang-format                                                1:6.0-41~exp5~ubuntu1                             amd64        Tool to format C/C++/Obj-C code
ii  clang-format-6.0                                            1:6.0-1ubuntu2                                    amd64        Tool to format C/C++/Obj-C code
ii  libclang1-6.0:amd64                                         1:6.0-1ubuntu2                                    amd64        C interface to the clang library

I did not have python-clang installed. I have tried installing some versions of python-clang but without success of fixing the problem above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions