Changing the installation prefix to the lib after configure/make/makeinstall

L

llothar

Lets say i compile ruby on Unix with

../configure --prefix=$HOME/my_ruby; make; make install

And later i want to move it to $HOME/your_ruby
What can i do to get the inital paths for the standart library to also
refer to
the new location.

The RUBYLIB_PREFIX environment variable (which i expected to use)
is obsoleted.
 
E

Eric Hodel

Lets say i compile ruby on Unix with

./configure --prefix=$HOME/my_ruby; make; make install

And later i want to move it to $HOME/your_ruby
What can i do to get the inital paths for the standart library to also
refer to the new location.

/configure --prefix=$HOME/your_ruby; make; make install

Otherwise, anything depending upon Config::CONFIG will break.
 
L

llothar

/configure --prefix=$HOME/your_ruby; make; make install

Otherwise, anything depending upon Config::CONFIG will break.

Well or there is some way to patch the new path into Config::CONFIG?

How can i add a ruby interpreter to an application that can move
around
(for example on a USB Stick)?

Fixing CONFIG["prefix"] and CONFIG["configure_args"] is simple but i
see that in "config.h" the paths are really hard coded. That sucks.

Can't we change this? I do not see any reason for this inflexibility.
I don't understand why RUBYLIB_PREFIX was removed (well it was never
implemented
on Unix just Win32).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top