# Note to Self: Moving ruby, $:. Don't \_do\_ that

**URL:** <https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879>\
**Category:** Ruby\
**Created:** [June 27, 2007, 2:02am UTC](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879 "2007-06-27T02:02:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [June 27, 2007, 2:02am UTC](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879/1 "2007-06-27T02:02:52Z")

</div>

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 C. Phone : (64)(3) 358 6639  
Tait Electronics Fax : (64)(3) 359 4632  
PO Box 1645 Christchurch Email : removed\_email\_address@domain.invalid  
New Zealand

---

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [June 27, 2007, 3:39am UTC](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879/2 "2007-06-27T03:39:01Z")

</div>

On 6/27/07, John C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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](http://rubyurl.com/Nkn)  
hope that sheds more light on your problem… dunno how you tried it.

---

<div class="post-metadata">

**Author:** ![amin1426](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4da419/32.png) [@amin1426](https://www.ruby-forum.com/u/amin1426)\
**Post date:** [June 28, 2007, 1:20am UTC](https://www.ruby-forum.com/t/note-to-self-moving-ruby-dont-do-that/107879/3 "2007-06-28T01:20:09Z")

</div>

On Wed, 27 Jun 2007, Michael F. wrote:

> ./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.

> > Curiously enough it seems to do The Right Thing in the code for DOSISH  
> > slightly modified from [http://rubyurl.com/Nkn](http://rubyurl.com/Nkn)  
> > hope that sheds more light on your problem… dunno how you tried it.
> 
> > Bottom line. Note to Self:
> > 
> > Don’t do that.

John C. Phone : (64)(3) 358 6639  
Tait Electronics Fax : (64)(3) 359 4632  
PO Box 1645 Christchurch Email : removed\_email\_address@domain.invalid  
New Zealand
