Project

General

Profile

Bug #9312

Build the ruby executable in bin/

Added by postmodern (Hal Brodigan) about 5 years ago. Updated almost 5 years ago.

Status:
Feedback
Priority:
Normal
Target version:
-
[ruby-core:59349]

Description

In order to allow Ruby Switchers to directly use a Ruby that is built but not installed (such as trunk or a branch), the ruby executable should be placed in the bin/ directory.

History

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

  • Status changed from Open to Feedback

make ruunable may help you?

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

Sorry, runnable.

Updated by postmodern (Hal Brodigan) about 5 years ago

Test on trunk (r44467)

$ ./configure
$ make
$ make runnable
make: *** No rule to make target un-runnable', needed byrunnable'. Stop.

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

To make relocatable, configure needs --enable-shared and --enable-load-relative.

#5

Updated by postmodern (Hal Brodigan) about 5 years ago

$ ./configure --enable-shared --enable-load-relative
$ make
...
making enc
make[1]: Entering directory `/vault/0/src/ruby/trunk'
linking encoding encdb.so
/usr/bin/ld: cannot find -l-lpthread
collect2: error: ld returned 1 exit status

Updated by postmodern (Hal Brodigan) about 5 years ago

Running make runnable appears to add a bin/goruby hardlink to ../goruby.

Updated by nobu (Nobuyoshi Nakada) about 5 years ago

mkrunnable.rb creates symlinks only.

Updated by postmodern (Hal Brodigan) almost 5 years ago

After updated again, I see that make runnable created a bin/ruby symlink. However, --enable-shared requires that LD_LIBRARY_PATH=./lib/ is set. Also, bin/ruby cannot find core libraries such as 'thread'.

Updated by nobu (Nobuyoshi Nakada) almost 5 years ago

What's your platform?

Updated by postmodern (Hal Brodigan) almost 5 years ago

Fedora Linux 19 x86-64

Also available in: Atom PDF