You are not logged in.

#1 2018-02-24 12:23:22

palmenros
Member
Registered: 2018-02-24
Posts: 2

How to install two different clang versions?

I have installed from pacman clang 5.0.1-2, which is needed by QtCreator. However, I want to install Unreal Engine 4, which needs clang greater than 3.4 and lesser than 4.
In pacman there is clang35, but it replaces clang 5. I am searching for a way to have two versions of clang installed at the same time. I have tried clang37-split from AUR, but makepkg returns an error.
Thank you.

Offline

#2 2018-02-24 12:59:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,534
Website

Re: How to install two different clang versions?

palmenros wrote:

I have tried clang37-split from AUR, but makepkg returns an error.

Generally we'd expect more detail than that.  However upon checking out that AUR package, I'd not expect success, so those details may not be relevant.  I just thought I'd pre-emptively note this here so others don't focus on getting those error messages.

However, you could modify the PKGBUILD of any appropriate working clang package and just adjust the prefix variable as was done in clang37-split so that it is installed outside of /usr/bin/

Last edited by Trilby (2018-02-24 13:02:16)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2018-02-24 13:07:17

progandy
Member
Registered: 2012-05-17
Posts: 5,199

Re: How to install two different clang versions?

At a glance, there is a versioned dependency that isn't provided by arch anymore. You can try to change the ocaml version dependency to the version currently provided by arch linux, but there is no guarantee that it will work.

Last edited by progandy (2018-02-24 13:08:43)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2018-02-24 13:37:45

palmenros
Member
Registered: 2018-02-24
Posts: 2

Re: How to install two different clang versions?

Thanks propandy, but I have already tried that. It starts to compile but at about 35% an error comes up.

Offline

Board footer

Powered by FluxBB