<div dir="ltr">[Sloved]<div>Hi Richard &amp; All,</div><div><br></div><div>After reboot, the problem solved.</div><div><br></div><div># Detail -- all changes happened </div><div>1. the toolchain is unzipped to &#39;/opt&#39; folder and its ownship is changed to the current user.</div><div>2. the &#39;<span style="font-size:12.8px">SWIFT_HOME&#39; value in the &#39;/etc/profile.d/swift.sh&#39; is updated to &#39;/opt/swift&#39;</span></div><div>3. reboot the system</div><div style="font-size:12.8px"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 31, 2016 at 8:52 PM, Liyu Cai <span dir="ltr">&lt;<a href="mailto:liyu.move@gmail.com" target="_blank">liyu.move@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Yes, it works if one install the toolchain directly in &#39;/usr/local&#39; as you said.<br></div><div><div>//</div><div>The problem here is it SEEMS the toolchain can only use the absolute path &#39;<span style="font-size:12.8px">/usr/local/bin/repl_swift&#39; </span>to look for &#39;<span style="font-size:12.8px">repl_swift</span>&#39;, instead of a relative w.r.t the current path of &#39;swift&#39; command.</div></div><div>//</div><div>The absolute-path-only case may bring extra works when one want to uninstall/reconfigure/upgrade the toolchian.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 31, 2016 at 8:28 PM, Richard Stahl <span dir="ltr">&lt;<a href="mailto:rstahl@me.com" target="_blank">rstahl@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hmm..   I just installed swift on a Ubuntu AWS EC2 instance with no problem.  I installed the swift toolchain in ‘/usr/local’ and set my PATH as appropriated—no problems.  Have you tried installing in a location other than /usr/local/lib and *not* setting ‘LD_LIBRARY_PATH or SWIFT_HOME?<div><div><div><br><div><blockquote type="cite"><div>On Jul 31, 2016, at 8:00 AM, Liyu Cai &lt;<a href="mailto:liyu.move@gmail.com" target="_blank">liyu.move@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr">yes, I did:<div><br><div>```bash</div><div><div>u@tX:~$ clang --version</div><div>Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)</div><div>Target: x86_64-pc-linux-gnu</div><div>Thread model: posix</div></div><div>```</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 31, 2016 at 7:46 PM, Richard Stahl <span dir="ltr">&lt;<a href="mailto:rstahl@me.com" target="_blank">rstahl@me.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Did you install ‘clang’? E.g.(from instructions):<div><br></div><div><br></div><div>On Linux<br><br>First, install clang:<br><br>$ sudo apt-get install clang</div><div><br></div><div><br><div><blockquote type="cite"><div><div><div>On Jul 31, 2016, at 5:57 AM, Liyu Cai via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br></div></div><div><div><div><div dir="ltr"><div>So I was trying to install swift 3 (RC3) on a Ubuntu 14.04 LTS (64 bits) laptop, but get an REPL missing error.</div><div><br></div><div># What happened</div><div>```bash</div><div>cd /usr/local/lib</div><div>tar xvf swift-3.0-PREVIEW-3-ubuntu14.04.tar.gz</div><div>sudo ln -s swift-3.0-PREVIEW-3-ubuntu14.04 swift</div><div>```</div><div><br></div><div>then, created &quot;/etc/profile.d/swift.sh&quot; with following content:</div><div>```bash</div><div>export SWIFT_HOME=/usr/local/lib/swift</div><div>export PATH=$SWIFT_HOME/usr/bin:$PATH</div><div>export LD_LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LD_LIBRARY_PATH</div><div>export LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LIBRARY_PATH</div><div>```</div><div><br></div><div>then, &#39;source&#39; the .sh file in a terminal and start `swift` :</div><div>```bash</div><div>source /etc/profile.d/swift.sh</div><div>swift</div><div>```</div><div><br></div><div>and get following error:</div><div>```bash</div><div>error: REPL executable does not exist: &#39;/usr/local/bin/repl_swift&#39;</div><div>```</div><div><br></div><div>However, &#39;swift --version&#39; works with following output:</div><div>```bash</div><div>Swift version 3.0 (swift-3.0-PREVIEW-3)</div><div>Target: x86_64-unknown-linux-gnu</div><div>```</div><div><br></div><div># Try to solve</div><div>Thoughts there are some steps may be missed, so I re-checked the </div><div>docs on <a href="http://swift.org/" target="_blank">swift.org</a> and <a href="http://swift.org/lldb" target="_blank">swift.org/lldb</a> , but no lucks. Neither does the</div><div>blogs I found on how to set up Swift on Ubuntu OS.</div><div><br></div><div>(One can just create a sybolic link of repl_swift under /usr/local/bin, but it bring more works to uninstall/reconfigure Swfit dev env)</div><div><br></div><div>Did anyone have met this before? Anything I can try? Or,possibly,  there are sth to be done with the release itself...</div></div></div></div>
_______________________________________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>