[swift-users] 'REPL not exist' when Install Swift 3(RC3) on Ubuntu 14.04

Liyu Cai liyu.move at gmail.com
Sun Jul 31 07:52:48 CDT 2016


Yes, it works if one install the toolchain directly in '/usr/local' as you
said.
//
The problem here is it SEEMS the toolchain can only use the absolute path '
/usr/local/bin/repl_swift' to look for 'repl_swift', instead of a relative
w.r.t the current path of 'swift' command.
//
The absolute-path-only case may bring extra works when one want to
uninstall/reconfigure/upgrade the toolchian.



On Sun, Jul 31, 2016 at 8:28 PM, Richard Stahl <rstahl at me.com> wrote:

> 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?
>
> On Jul 31, 2016, at 8:00 AM, Liyu Cai <liyu.move at gmail.com> wrote:
>
> yes, I did:
>
> ```bash
> u at tX:~$ clang --version
> Ubuntu clang version 3.4-1ubuntu3 (tags/RELEASE_34/final) (based on LLVM
> 3.4)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> ```
>
>
> On Sun, Jul 31, 2016 at 7:46 PM, Richard Stahl <rstahl at me.com> wrote:
>
>> Did you install ‘clang’? E.g.(from instructions):
>>
>>
>> On Linux
>>
>> First, install clang:
>>
>> $ sudo apt-get install clang
>>
>>
>> On Jul 31, 2016, at 5:57 AM, Liyu Cai via swift-users <
>> swift-users at swift.org> wrote:
>>
>> So I was trying to install swift 3 (RC3) on a Ubuntu 14.04 LTS (64 bits)
>> laptop, but get an REPL missing error.
>>
>> # What happened
>> ```bash
>> cd /usr/local/lib
>> tar xvf swift-3.0-PREVIEW-3-ubuntu14.04.tar.gz
>> sudo ln -s swift-3.0-PREVIEW-3-ubuntu14.04 swift
>> ```
>>
>> then, created "/etc/profile.d/swift.sh" with following content:
>> ```bash
>> export SWIFT_HOME=/usr/local/lib/swift
>> export PATH=$SWIFT_HOME/usr/bin:$PATH
>> export LD_LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LD_LIBRARY_PATH
>> export LIBRARY_PATH=$SWIFT_HOME/usr/lib:$LIBRARY_PATH
>> ```
>>
>> then, 'source' the .sh file in a terminal and start `swift` :
>> ```bash
>> source /etc/profile.d/swift.sh
>> swift
>> ```
>>
>> and get following error:
>> ```bash
>> error: REPL executable does not exist: '/usr/local/bin/repl_swift'
>> ```
>>
>> However, 'swift --version' works with following output:
>> ```bash
>> Swift version 3.0 (swift-3.0-PREVIEW-3)
>> Target: x86_64-unknown-linux-gnu
>> ```
>>
>> # Try to solve
>> Thoughts there are some steps may be missed, so I re-checked the
>> docs on swift.org and swift.org/lldb , but no lucks. Neither does the
>> blogs I found on how to set up Swift on Ubuntu OS.
>>
>> (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)
>>
>> Did anyone have met this before? Anything I can try? Or,possibly,  there
>> are sth to be done with the release itself...
>> _______________________________________________
>> swift-users mailing list
>> swift-users at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-users
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160731/e01d7a07/attachment.html>


More information about the swift-users mailing list