Hello,
I am having a problem building Ruby from sources (checked out latest
version with Subversion from repository). I tried it for Ubunty 8.04 and
Cygwin. In both cases I got an error while running make:
echo executable host ruby is required. use --with-baseruby option.;
false -Ks ./tool/insns2vm.rb --srcdir="." opt_sc.inc
executable host ruby is required. use --with-baseruby option.
make: *** [opt_sc.inc] Error 1
What does it mean?
Thank you,
Kurt
···
--
Posted via http://www.ruby-forum.com/.
You don't have ruby installed, or it is not in your path.
If it is not in your path, use ./configure --with-baseruby (I think).
If it is not installed, try 1.8 before building 1.9.
···
On Jul 2, 2008, at 08:06 AM, Kurt Usen wrote:
I am having a problem building Ruby from sources (checked out latest
version with Subversion from repository). I tried it for Ubunty 8.04 and
Cygwin. In both cases I got an error while running make:
echo executable host ruby is required. use --with-baseruby option.;
false -Ks ./tool/insns2vm.rb --srcdir="." opt_sc.inc
executable host ruby is required. use --with-baseruby option.
make: *** [opt_sc.inc] Error 1
What does it mean?
Kurt Usen wrote:
Hello,
I am having a problem building Ruby from sources (checked out latest
version with Subversion from repository). I tried it for Ubunty 8.04 and
Cygwin. In both cases I got an error while running make:
echo executable host ruby is required. use --with-baseruby option.;
false -Ks ./tool/insns2vm.rb --srcdir="." opt_sc.inc
executable host ruby is required. use --with-baseruby option.
make: *** [opt_sc.inc] Error 1
What does it mean?
Thank you,
Kurt
Does it now need a running Ruby interpreter to build?
1) you can check the recv msg if msg==nil
2) maybe the send msg must add "\0" at end
"David Leal" <dgleal@gmail.com> 写入邮件新闻:<928198f16881d4e14cef239836a9b3d1@ruby-forum.com>...
···
Hello all,
I'm trying to get acquainted with network programming in Ruby and I'm
facing several problems. The biggest 2 are
1) How do I detect a connection loss when it happens while the client is
blocking, waiting for data? According to Stevens, most tcp
implementations time out after 11 minutes, but I disconnected my cable
and waited long after that--nothing. Is this my fault? Is it a ruby
problem?
2) The client (an IRC bot) seems to be stuck sometimes. Suddenly, input
stops, it stops logging data, everything stops. This happens on a
particular IRC server (heinlein.freenode.net) in the middle of the MOTD,
but happened a few days ago on another server during normal usage. The
code I'm using is
buffer = @socket.recvfrom(512).first
messages = buffer.split /\n/
@messages.last << messages.shift \
if @messages.last && @messages.last[-1] != ?\r
@messages += messages
An interesting twist is that this doesn't happen on heinlein upon
connection if I print the contents of the array I get from recvfrom.
Seems to be some kind of flushing problem, but I don't know enough about
it to be sure.
Any ideas?
Cheers,
David
--
Posted via http://www.ruby-forum.com/\.