Projects

Ticket #71 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

setting --prefix in ./configure does not set location of install

Reported by: stephen.bannasch@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.3
Component: MacRuby Keywords:
Cc:

Description

Setting --prefix when running ./configure does NOT set the location for installation.

mkdir MacRuby
cd MacRuby
mkdir macruby
svn co http://svn.macosforge.org/repository/ruby/MacRuby/branches/testing src
cd src
./configure --enable-framework --enable-fat-binary --prefix=/Users/stephen/dev/MacRuby/macruby
make
sudo make install-nodoc

Results in an install of 'ruby' et al being saved in /usr/local/bin

Change History

Changed 2 years ago by lsansonetti@…

  • milestone set to MacRuby 0.3

Changed 2 years ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed

In trunk, it is possible to specify a destination directory in which all the MacRuby bits will be installed in.

$ rake
$ DESTDIR=/tmp/MacRuby rake install

However it is then necessary to force the dynamic linker to load libmacruby.dylib from the destination directory.

DYLD_LIBRARY_PATH=/tmp/MacRuby/Library/Frameworks/MacRuby.framework/Versions/Current/usr/lib /tmp/MacRuby/usr/local/bin/macruby -v
MacRuby version 0.3 (ruby 1.9.0 2008-06-03) [universal-darwin9.0]

Changed 2 years ago by stephen.bannasch@…

Not sure if the ticket should be re-opened .. this just seemed a bit weird to me.

Executing rake install with DESTDIR specified with a relative dir path doesn't work.

markgc failed in instruby.rb when this dir specification was used with rake install:

DESTDIR=../../builds/macruby/macruby_r308 rake install

Here's the actual error:

cannot markgc /System/Library/Frameworks/AppKit.framework/Versions/C/Resources/BridgeSupport/AppKit.dylib
rake aborted!
Command failed with status (1): [./miniruby instruby.rb --make="/usr/bin/ma...]
/Users/stephen/dev/ruby/src/macruby.svn/rakefile:559

markgc worked and the install completed with both of these dir specifications:

sudo env DESTDIR=../../builds/macruby/macruby_r308 rake install
DESTDIR=/Users/stephen/ruby/src/builds/macruby/macruby_r308 rake install
Note: See TracTickets for help on using tickets.