DevHeads.net

TEst stalling

Hello,

Just compiled ruby 2.3 on BSD/OS 4.3.1 and
the tests stalls on test_Attr .

IS their a way to check verbosely where the test is stalling?

Comments

Re: TEst stalling

By Ryan Davis at 03/24/2016 - 11:32

I haven't poked in a while, but I believe that TESTOPTS still works, so TESTOPTS=-v

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

Re: TEst stalling

By The Doctor at 03/24/2016 - 16:32

On Thu, Mar 24, 2016 at 09:32:25AM -0600, Ryan Davis wrote:

So from inside ruby-2.3.0 directory

run

make test TESTOPTS=-v correct?

Re: TEst stalling

By Ryan Davis at 03/25/2016 - 17:56

If it were `rake`, you can definitely do the variable afterwards... It might be that you need to stick it before the `make`

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>

No vi editing mode in Ruby read line on mac

By John Aten at 03/26/2016 - 23:15

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 (<a href="http://bogojoker.com/readline/" title="http://bogojoker.com/readline/">http://bogojoker.com/readline/</a>) 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>

Re: No vi editing mode in Ruby read line on mac

By A. J. Rajkumar at 03/27/2016 - 00:15

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. ... at gmail dot com

Re: No vi editing mode in Ruby read line on mac

By John Aten at 03/27/2016 - 19:27

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.

Re: No vi editing mode in Ruby read line on mac

By A. J. Rajkumar at 03/27/2016 - 22:51

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. ... at gmail dot com>
wrote:

Re: No vi editing mode in Ruby read line on mac [SOLVED]

By John Aten at 03/31/2016 - 22:25

Well this is embarrassing. As it turns out, vi editing mode works just fine on my system, as is. I had misread the code snippet from the article I cited, in which the editing mode was enabled, and I then misread the error. The article does claim that vi editing mode is unsupported on Mac; I don't know if that is relevant to a later version of OS X or what, but once I got the code right it worked as promised. I'm just glad I double checked it.

Thanks for the assistance!

Re: TEst stalling

By The Doctor at 03/25/2016 - 18:30

On Fri, Mar 25, 2016 at 02:56:11PM -0700, Ryan Davis wrote:
We are talking the BSD make.