Forum: Ruby-core [ruby-trunk - Bug #6807][Open] Can't compile ruby without ruby

Posted by devcurmudgeon (Paul Sherwood) (Guest)
on 2012-07-28 16:31
(Received via mailing list)
Issue #6807 has been reported by devcurmudgeon (Paul Sherwood).

----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807

Author: devcurmudgeon (Paul Sherwood)
Status: Open
Priority: Low
Assignee:
Category:
Target version:
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Luis Lavena (luislavena)
on 2012-07-28 16:53
(Received via mailing list)
Issue #6807 has been updated by luislavena (Luis Lavena).


AFAIK, if you build from trunk (a direct checkout) you need Ruby.

Release packages do not need a base Ruby since the specific files that 
depend on installed Ruby has already been generated and packaged in the 
file.

Perhaps you can try the nightly snapshots which I believe meet this 
scenario.

From download page:

http://www.ruby-lang.org/en/downloads/

Downloaded http://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz

That should work without an installed Ruby.

----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-28509

Author: devcurmudgeon (Paul Sherwood)
Status: Open
Priority: Low
Assignee:
Category:
Target version:
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-03 04:13
(Received via mailing list)
Issue #6807 has been updated by mame (Yusuke Endoh).

Status changed from Open to Rejected

Please follow Luis's advice, and reopen if you find another issue. 
Thanks.

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-32274

Author: devcurmudgeon (Paul Sherwood)
Status: Rejected
Priority: Low
Assignee:
Category:
Target version:
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by devcurmudgeon (Paul Sherwood) (Guest)
on 2013-02-24 14:39
(Received via mailing list)
Issue #6807 has been updated by devcurmudgeon (Paul Sherwood).


I'd like to reopen this after raising it on the mailing list. On a Linux 
system with autotools, GCC etc,
but no pre-existing Ruby, make fails for the following snapshots:

http://ftp.ruby-lang.org/pub/ruby/snapshot.tar.gz
http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz
http://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.gz

----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36924

Author: devcurmudgeon (Paul Sherwood)
Status: Rejected
Priority: Low
Assignee:
Category:
Target version:
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Luis Lavena (luislavena)
on 2013-02-24 14:42
(Received via mailing list)
Issue #6807 has been updated by luislavena (Luis Lavena).

Category set to build
Status changed from Rejected to Assigned
Assignee set to mame (Yusuke Endoh)
Target version set to 2.0.0


----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36925

Author: devcurmudgeon (Paul Sherwood)
Status: Assigned
Priority: Low
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Paul Sherwood (Guest)
on 2013-02-24 14:49
(Received via mailing list)
Sorry, Luis, I crossed with you - please feel free to close the new bug

On 24/02/2013 13:41, luislavena (Luis Lavena) wrote:
> Bug #6807: Can't compile ruby without ruby
>
> This is a repeat of bug 3008, which was closed a couple of years ago. I tried 
checking out at the exact commit that fixed 3008 and got the same result, so I'm 
thinking either something has changed outside of ruby since the fix, or possibly 
the fix never worked for Linux (the comment in the commit says ...for HP UX")?
>
>  There are no docs for how to get around this.  How can I get ruby on a system 
if I can't compile ruby?
> =end
>
>
>


--
Paul Sherwood                                            Codethink Ltd.
Tel: +44 788 798 4900                    302 Ducie House, Ducie Street,
http://www.codethink.co.uk/         Manchester, M1 2JW, United Kingdom.

Codethink provides advanced software design, development, integration &
test services: from embedded systems to high performance apps to cloud.
Posted by Luis Lavena (luislavena)
on 2013-02-24 14:49
(Received via mailing list)
Issue #6807 has been updated by luislavena (Luis Lavena).

Priority changed from Low to Normal


----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36927

Author: devcurmudgeon (Paul Sherwood)
Status: Assigned
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Luis Lavena (luislavena)
on 2013-02-24 14:51
(Received via mailing list)
Issue #6807 has been updated by luislavena (Luis Lavena).


=begin
Reported error:

 make
   CC = gcc
   LD = ld
   LDSHARED =
   CFLAGS =
   XCFLAGS = -include ruby/config.h -include ruby/missing.h 
-D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow 
-fvisibility=hidden -DRUBY_EXPORT -fPIE
   CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
   DLDFLAGS = -fstack-protector -pie
   SOLIBS =
 generating miniprelude.c
 executable host ruby is required. use --with-baseruby option.
 uncommon.mk:900: recipe for target `miniprelude.c' failed
 make: *** [miniprelude.c] Error 1

=end
----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36929

Author: devcurmudgeon (Paul Sherwood)
Status: Assigned
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by mame (Yusuke Endoh) (Guest)
on 2013-02-24 16:08
(Received via mailing list)
Issue #6807 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Feedback

Could you elaborate what you did exactly?

I could not reproduce it with a Ubuntu 12.10 sandbox created by 
debootstrap.

  $ sudo debootstrap --arch amd64 quantal /srv/ubuntu 
http://archive.ubuntu.com/ubuntu
  $ sudo cp ruby-2.0.0-p0.tar.bz2 /srv/ubuntu/tmp
  $ sudo cp /etc/apt/sources.list /srv/ubuntu/etc/apt
  $ sudo chdoor /srv/ubuntu
  # apt-get install autoconf make gcc
  # cd /tmp
  # tar xjf ruby-2.0.0-p0.tar.bz2
  # cd /ruby-2.0.0-p0
  # ruby  # ruby: command not found
  # ./configure
  # make  # succeeded

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36939

Author: devcurmudgeon (Paul Sherwood)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by paulsherwood (Paul Sherwood) (Guest)
on 2013-02-24 20:16
(Received via mailing list)
Issue #6807 has been updated by paulsherwood (Paul Sherwood).


I'm working on a custom Linux appliance build, in a chroot, so it is 
possible the problem is at my end. I'll follow your steps when I have 
access to an Ubuntu machine and update then

Thank you
Paul
----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36956

Author: devcurmudgeon (Paul Sherwood)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
 What happened:
  I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
  I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

 What I expected:
  I expect that ruby should compile.

This is a repeat of bug 3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed 3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

 There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-25 08:20
(Received via mailing list)
Issue #6807 has been updated by nobu (Nobuyoshi Nakada).

Description updated


----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36988

Author: devcurmudgeon (Paul Sherwood)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
=== What happened:
I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

=== What I expected:
I expect that ruby should compile.

This is a repeat of bug #3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed #3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-25 08:40
(Received via mailing list)
Issue #6807 has been updated by nobu (Nobuyoshi Nakada).

% Done changed from 100 to 0


----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-36989

Author: devcurmudgeon (Paul Sherwood)
Status: Feedback
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
=== What happened:
I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

=== What I expected:
I expect that ruby should compile.

This is a repeat of bug #3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed #3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Posted by Nobuyoshi Nakada (nobu)
on 2013-02-26 01:23
(Received via mailing list)
Issue #6807 has been updated by nobu (Nobuyoshi Nakada).


The only situation which we could thought of was that you did `make 
distclean' before `make'.

If it's not the case, please reopen this ticket.
----------------------------------------
Bug #6807: Can't compile ruby without ruby
https://bugs.ruby-lang.org/issues/6807#change-37013

Author: devcurmudgeon (Paul Sherwood)
Status: Closed
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: build
Target version: 2.0.0
ruby -v: current trunk


=begin
=== What happened:
I tried to compile  on a new Linux systems (Ubuntu 12.04 and a current 
custom Linux build)
I get the error:
 executable host ruby is required. use --with-baseruby option.
 make: *** [miniprelude.c] Error 1

=== What I expected:
I expect that ruby should compile.

This is a repeat of bug #3008, which was closed a couple of years ago. I 
tried checking out at the exact commit that fixed #3008 and got the same 
result, so I'm thinking either something has changed outside of ruby 
since the fix, or possibly the fix never worked for Linux (the comment 
in the commit says ...for HP UX")?

There are no docs for how to get around this.  How can I get ruby on a 
system if I can't compile ruby?
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.