<div dir="ltr"><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
I am trying to have llvm and clang on a centOS 5 without root permissions. I tried to do it downloading llvm and clang src packages and trying the ususal configure, make and make install steps as such:</p><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(51,51,51);line-height:20px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34)">wget <a href="http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz">http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz</a>
wget <a href="http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz">http://llvm.org/releases/3.3/cfe-3.3.src.tar.gz</a>
tar xzf llvm-3.3.src.tar.gz && cd llvm-3.3.src/tools/ && tar xzf ../../cfe-3.3.src.tar.gz
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
I tried with a newer version of gcc compiled for this 64bit CentOS system, because the older version wouldn't work (see below). When I try it with the newer version, I get this:</p><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(51,51,51);line-height:20px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34)">export LD_LIBRARY_PATH=/home/avilella/src/gcc/gcc-4.7.2/lib64:/home/avilella/src/gcc/gcc-4.7.2/lib
export CC=/home/avilella/src/gcc/gcc-4.7.2/bin/gcc
export CXX=/home/avilella/src/gcc/gcc-4.7.2/bin/g++  
export PATH=/home/avilella/src/python/python-2.7.3/bin:$PATH
cd ~/src/llvm/latest/llvm-3.3.src
./configure --prefix=/home/avilella/src/llvm/latest/llvm && make clean && make -j8 && make install
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
After these steps, I don't see clang in the bin directory:</p><pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(51,51,51);line-height:20px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34)">/home/avilella/src/llvm/latest/llvm/bin    
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
So I followed the instructions in the clang directory, and ran <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);background-color:rgb(238,238,238)">make -j8</code> on it:</p>
<pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(51,51,51);line-height:20px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34)">cd ~/src/llvm/latest/llvm-3.3.src/tools/cfe-3.3.src
make -j8
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
Doing so, I get this <code style="margin:0px;padding:1px 5px;border:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);background-color:rgb(238,238,238)">clange/Config/config.h</code> error:</p>
<pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:13px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(51,51,51);line-height:20px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34)">[...]
InitHeaderSearch.cpp:17:51: fatal error: clang/Config/config.h: No such file or directory
[...]
</code></pre><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
This is mentioned in a bug report from 2011, which I would be solved by now:</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-size:15px;vertical-align:baseline;clear:both;word-wrap:break-word;color:rgb(51,51,51);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;line-height:20px">
<a href="http://llvm.org/bugs/show_bug.cgi?id=11903" rel="nofollow" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;text-decoration:none;color:rgb(43,109,151)">http://llvm.org/bugs/show_bug.cgi?id=11903</a></p>
</div>