On Mar 27, 2016, at 9:51 PM, A. J. Rajkumar wrote:
Hi
OK, first try to update clang, because I don't think you can get it done
with clang (1.7 which is what you have). It needs at least clang version 3.0
or later as it says.
If you are having issues upgrading to clang-3.0, then you might have to
update your gcc from 4.2.1 to 4.9.2 which is what I have and then compile
clang-3.0 and then compile the latest production version of ruby.
Good Luck.
Regards
JR
On Sun, Mar 27, 2016 at 7:27 PM, John Aten <welcome.to.eye.o.rama@gmail.com> wrote:
I have 10.6.8, clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn) and gcc 4.2.1
This is the error I get when running ./configure:
<stdin>:2:3: error: #error premature clang
#error premature clang
^
1 error generated.
configure: error: clang version 3.0 or later is required
I have used the readline library in scripts, and in general I can get it working; it just the vi editing mode that doesn't work. I was hoping for a quicker fix, but it looks like I will just have to update clang.
On Mar 26, 2016, at 11:15 PM, A. J. Rajkumar wrote:
Hi John
What version of the OSX do you have? I have 10.6.8 (Snow Leopard)
What version of clang do you have? I have this
localhost$ clang -v
Apple clang version 3.0 (tags/Apple/clang-211.10.1) (based on LLVM 3.0svn)
Target: x86_64-apple-darwin10.8.0
Thread model: posix
What gcc do you have? I have this
gcc version 4.9.2 (GCC)
With that I have been able to compile and run ruby from sources:
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin10.8.0]
You should be able to run this script and verify 'readline'
require 'readline'
while line = Readline.readline('> ', true)
p line
end
Let us know if you have still having issues.
Regards
JR
On Sat, Mar 26, 2016 at 11:15 PM, John Aten <welcome.to.eye.o.rama@gmail.com> wrote:
Hi all,
I'm running Ruby 2.0.0 on Mac Snow Leopard. I have been playing around with the readline library, the goal being to get access to vi editing mode for input in command line scripts. I was having trouble with it, and found an article (TOTO MACAU - DATA TOTO MACAU - PENGELUARAN TOTO MACAU - RESULT TOTO MACAU) that said that vi editing mode is unavailable on Mac. This article recommends compiling Ruby from source; I tried that, and got a dependency error, I believe saying that a newer version of clang is required. I figured I could just update clang, but as I have looked into this I am getting out beyond my depth rather quickly.
Does anyone know if there is some other fix, or should I just keep at it and figure out the dependencies?
Thanks,
John
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>
Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>