<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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 class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 31, 2016, at 8:00 AM, Liyu Cai <<a href="mailto:liyu.move@gmail.com" class="">liyu.move@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">yes, I did:<div class=""><br class=""><div class="">```bash</div><div class=""><div class="">u@tX:~$ clang --version</div><div class="">Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM 3.4)</div><div class="">Target: x86_64-pc-linux-gnu</div><div class="">Thread model: posix</div></div><div class="">```</div></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Jul 31, 2016 at 7:46 PM, Richard Stahl <span dir="ltr" class=""><<a href="mailto:rstahl@me.com" target="_blank" class="">rstahl@me.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Did you install ‘clang’? E.g.(from instructions):<div class=""><br class=""></div><div class=""><br class=""></div><div class="">On Linux<br class=""><br class="">First, install clang:<br class=""><br class="">$ sudo apt-get install clang</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On Jul 31, 2016, at 5:57 AM, Liyu Cai via swift-users <<a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class="">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 class=""><br class=""></div><div class=""># What happened</div><div class="">```bash</div><div class="">cd /usr/local/lib</div><div class="">tar xvf swift-3.0-PREVIEW-3-ubuntu14.04.tar.gz</div><div class="">sudo ln -s swift-3.0-PREVIEW-3-ubuntu14.04 swift</div><div class="">```</div><div class=""><br class=""></div><div class="">then, created "/etc/profile.d/swift.sh" with following content:</div><div class="">```bash</div><div class="">export SWIFT_HOME=/usr/local/lib/swift</div><div class="">export PATH=$SWIFT_HOME/usr/bin:$PATH</div><div class="">export LD_LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LD_LIBRARY_PATH</div><div class="">export LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LIBRARY_PATH</div><div class="">```</div><div class=""><br class=""></div><div class="">then, 'source' the .sh file in a terminal and start `swift` :</div><div class="">```bash</div><div class="">source /etc/profile.d/swift.sh</div><div class="">swift</div><div class="">```</div><div class=""><br class=""></div><div class="">and get following error:</div><div class="">```bash</div><div class="">error: REPL executable does not exist: '/usr/local/bin/repl_swift'</div><div class="">```</div><div class=""><br class=""></div><div class="">However, 'swift --version' works with following output:</div><div class="">```bash</div><div class="">Swift version 3.0 (swift-3.0-PREVIEW-3)</div><div class="">Target: x86_64-unknown-linux-gnu</div><div class="">```</div><div class=""><br class=""></div><div class=""># Try to solve</div><div class="">Thoughts there are some steps may be missed, so I re-checked the </div><div class="">docs on <a href="http://swift.org/" target="_blank" class="">swift.org</a> and <a href="http://swift.org/lldb" target="_blank" class="">swift.org/lldb</a> , but no lucks. Neither does the</div><div class="">blogs I found on how to set up Swift on Ubuntu OS.</div><div class=""><br class=""></div><div class="">(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 class=""><br class=""></div><div class="">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 class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" target="_blank" class="">swift-users@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""></div></blockquote></div><br class=""></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>