Building ruby in a path independent fashion

M

MD

Hi,

I noticed that when I build and install ruby/gems, the path is hard
coded in the scripts. This causes a problem when I build on say an AIX
machine A and want to run the interpreter on AIX machine B. Is there
any way for the interpreter to be built in a path independent fashion?

Thanks in advance.

Regards,
-Manas
 
M

Michal Suchanek

Hi,

I noticed that when I build and install ruby/gems, the path is hard
coded in the scripts. This causes a problem when I build on say an AIX
machine A and want to run the interpreter on AIX machine B. Is there
any way for the interpreter to be built in a path independent fashion?

In general this is only possible with OS linker support (liko on OS
X). The interpreter needs its dynamic libraries, and paths to these is
traditionally hardcoded on unix-like OSes. If you place the
interpreter in a different place linking usually breaks. But once you
have interpreters on both systems you can look for extensions in
various places. I am not sure about the gem loading but normal
extensions can be loaded from anyplace you like.

Thanks

Michal
 

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,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top