$ sudo apt-get install clang
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
clang-3.5 libclang-common-3.5-dev libclang1-3.5 libobjc-4.9-dev
Suggested packages:
gnustep gnustep-devel clang-3.5-doc
The following NEW packages will be installed:
clang clang-3.5 libclang-common-3.5-dev libclang1-3.5 libobjc-4.9-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/25.6 MB of archives.
After this operation, 100 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Selecting previously unselected package libobjc-4.9-dev:amd64.
(Reading database ... 315778 files and directories currently installed.)
Preparing to unpack .../libobjc-4.9-dev_4.9.2-10_amd64.deb ...
Unpacking libobjc-4.9-dev:amd64 (4.9.2-10) ...
Selecting previously unselected package libclang1-3.5:amd64.
Preparing to unpack .../libclang1-3.5_1%3a3.5-10_amd64.deb ...
Unpacking libclang1-3.5:amd64 (1:3.5-10) ...
Selecting previously unselected package libclang-common-3.5-dev.
Preparing to unpack .../libclang-common-3.5-dev_1%3a3.5-10_amd64.deb ...
Unpacking libclang-common-3.5-dev (1:3.5-10) ...
Selecting previously unselected package clang-3.5.
Preparing to unpack .../clang-3.5_1%3a3.5-10_amd64.deb ...
Unpacking clang-3.5 (1:3.5-10) ...
Selecting previously unselected package clang.
Preparing to unpack .../clang_1%3a3.5-25_amd64.deb ...
Unpacking clang (1:3.5-25) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up libobjc-4.9-dev:amd64 (4.9.2-10) ...
Setting up libclang1-3.5:amd64 (1:3.5-10) ...
Setting up libclang-common-3.5-dev (1:3.5-10) ...
Setting up clang-3.5 (1:3.5-10) ...
Setting up clang (1:3.5-25) ...
*update-alternatives: error: alternative path /usr/bin/clang++ doesn't exist* <= Error here
dpkg: error processing package clang (--configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for libc-bin (2.19-18+deb8u1) ...
Errors were encountered while processing:
clang
E: Sub-process /usr/bin/dpkg returned an error code (1)
Same problem when installing ghc
$ apt-get install ghc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
ghc-prof ghc-doc haskell-doc
The following NEW packages will be installed:
ghc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/25.3 MB of archives.
After this operation, 292 MB of additional disk space will be used.
Selecting previously unselected package ghc.
(Reading database ... 315968 files and directories currently installed.)
Preparing to unpack .../ghc_7.6.3-21_amd64.deb ...
Unpacking ghc (7.6.3-21) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up clang (1:3.5-25) ...
update-alternatives: error: alternative path /usr/bin/clang++ doesn't exist
dpkg: error processing package clang (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up ghc (7.6.3-21) ...
*update-alternatives: error: alternative path /usr/bin/runghc doesn't exist* <= Error here
dpkg: error processing package ghc (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
clang
ghc
E: Sub-process /usr/bin/dpkg returned an error code (1)