Note to Self: Moving ruby, $:. Don't _do_ that.

J

John Carter

With gcc you can build & install in /home/myname/opt/gcc and then tar it
up and deliver to your colleagues /opt directory and it seems to work.

They have been pretty careful about using relative paths everywhere.

Note to Self: Don't do that with ruby on Linux. You end up with
/home/myname/opt hard coded in the ruby executable, especially in the
include path $:

Curiously enough it seems to do The Right Thing in the code for DOSISH
and CYGWIN platforms... but that will do lots of wrong things in other
places for the linux platform.

Bottom line. Note to Self:

Don't do that.

John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : (e-mail address removed)
New Zealand
 
M

Michael Fellinger

With gcc you can build & install in /home/myname/opt/gcc and then tar it
up and deliver to your colleagues /opt directory and it seems to work.

They have been pretty careful about using relative paths everywhere.

Note to Self: Don't do that with ruby on Linux. You end up with
/home/myname/opt hard coded in the ruby executable, especially in the
include path $:

Curiously enough it seems to do The Right Thing in the code for DOSISH
and CYGWIN platforms... but that will do lots of wrong things in other
places for the linux platform.

./configure --prefix=/opt --enable-shared --enable-pthread
make
make DESTDIR=/home/manveru/tempruby install
#generate the ri docs
make DESTDIR=/home/manveru/tempruby install-doc

slightly modified from http://rubyurl.com/Nkn
hope that sheds more light on your problem... dunno how you tried it.
 
J

John Carter

./configure --prefix=/opt --enable-shared --enable-pthread
make
make DESTDIR=/home/manveru/tempruby install


Sigh! Tried that, didn't work quite. Something somwhere tries to
mkdir_p the /opt/... directory (which it doesn't have permission to
do..)

Note to Self:

Writing Notes to Self on the 'net is a Really Good Idea since it's
easier to find them on the 'net than it is to find them on my desk...

Funny that.
./configure --prefix=/opt --enable-shared --enable-pthread
make
make DESTDIR=/home/manveru/tempruby install
#generate the ri docs
make DESTDIR=/home/manveru/tempruby install-doc

slightly modified from http://rubyurl.com/Nkn
hope that sheds more light on your problem... dunno how you tried it.



John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : (e-mail address removed)
New Zealand
 

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

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top