<div dir="ltr"><div>Yes, it works if one install the toolchain directly in '/usr/local' as you said.<br></div><div><div>//</div><div>The problem here is it SEEMS the toolchain can only use the absolute path '<span style="font-size:12.8px">/usr/local/bin/repl_swift' </span>to look for '<span style="font-size:12.8px">repl_swift</span>', instead of a relative w.r.t the current path of 'swift' 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="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 31, 2016 at 8:28 PM, Richard Stahl <span dir="ltr"><<a href="mailto:rstahl@me.com" target="_blank">rstahl@me.com</a>></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 class="h5"><div><br><div><blockquote type="cite"><div>On Jul 31, 2016, at 8:00 AM, Liyu Cai <<a href="mailto:liyu.move@gmail.com" target="_blank">liyu.move@gmail.com</a>> 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"><<a href="mailto:rstahl@me.com" target="_blank">rstahl@me.com</a>></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 <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> 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 "/etc/profile.d/swift.sh" 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, 'source' 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: '/usr/local/bin/repl_swift'</div><div>```</div><div><br></div><div>However, 'swift --version' 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>