# How to install ruby in home folder?

**URL:** <https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932>\
**Category:** Ruby\
**Created:** [November 12, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932 "2007-11-12T12:26:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 12, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/1 "2007-11-12T12:26:16Z")

</div>

I don’t have root access  
Is there any idea to install ruby in home folder(/home/username/) only ?

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 12, 2007, 1:20pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/2 "2007-11-12T13:20:26Z")

</div>

On Nov 12, 2007, at 5:26 AM, Pokkai D. wrote:

> ## I don’t have root access Is there any idea to install ruby in home folder(/home/username/) only ?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Yes, there is.  
Google this: install Ruby Dreamhost

Dreamhost users often have to do just this in order to have the  
latest Ruby and/or Gems.  
If you have shell access via ssh and compiler.  
wget, curl, ftp, or svn are also very helpful.

Do be aware though, on any account like this, where you don’t have  
higher level control, compiling or installing might fail if they have  
a administrative daemon process that goes around killing long-running  
or CPU intensive user processes.  
Should be Ok though…  
But don’t be surprised, it might run a bit slower if it is a shared  
host…

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 12, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/3 "2007-11-12T15:34:44Z")

</div>

Pokkai D. wrote:

> I don’t have root access  
> Is there any idea to install ruby in home folder(/home/username/) only ?

Assuming you’ve got all the GNU tools:

1. Download the source tarball and unpack it.

2. Create a folder "/home/username/ruby

3. Go into the directory that came from the unpacked tarball and type

4. Add “/home/username/ruby/bin” to the front of your path. Type

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 12, 2007, 5:21pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/4 "2007-11-12T17:21:16Z")

</div>

M. Edward (Ed) Borasky wrote:

> ```
> $ autoconf
> $ ./configure --prefix=/home/username/ruby
> $ make
> $ make install
> 
> ```

when i execute “./configure --prefix=/home/username/ruby”

checking build system type… i686-pc-linux-gnulibc1  
checking host system type… i686-pc-linux-gnulibc1  
checking target system type… i686-pc-linux-gnulibc1  
checking for gcc… gcc  
checking for C compiler default output file name…  
configure: error: C compiler cannot create executables  
See `config.log’ for more details.

what to do ?

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 13, 2007, 6:43am UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/5 "2007-11-13T06:43:51Z")

</div>

Pokkai D. wrote:

> checking host system type… i686-pc-linux-gnulibc1  
> checking target system type… i686-pc-linux-gnulibc1  
> checking for gcc… gcc  
> checking for C compiler default output file name…  
> configure: error: C compiler cannot create executables  
> See `config.log’ for more details.
> 
> what to do ?

There will be a file named “config.log” in the source directory. It will  
tell you what went wrong. If it isn’t obvious to you, post it here and  
we’ll have a look at it. What flavor of Linux are you running, and if  
it’s one of those “user friendly” ones like Fedora, have you installed  
all the “development tools?”

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 13, 2007, 9:29am UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/6 "2007-11-13T09:29:43Z")

</div>

M. Edward (Ed) Borasky wrote:

> There will be a file named “config.log” in the source directory. It will  
> tell you what went wrong. If it isn’t obvious to you, post it here and  
> we’ll have a look at it. What flavor of Linux are you running, and if  
> it’s one of those “user friendly” ones like Fedora, have you installed  
> all the “development tools?”

thanks for your reply.

i am using linux ubuntu 7.04.  
how to install all “development tools”? (without root permission)  
actually i am a student and working in a Linux Server ,i don’t have  
“root” access

# this is my “config.log” file contents in “/home/username/packages/ruby-1.8.6”

This file contains any messages produced by compilers while  
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was  
generated by GNU Autoconf 2.61. Invocation command line was

$ ./configure --prefix=/home/thani/ruby

## ---------

## Platform.

## ---------

hostname = sumi-desktop  
uname -m = i686  
uname -r = 2.6.20-15-generic  
uname -s = Linux  
uname -v = #2 SMP Sun Apr 15 07:36:31 UTC 2007

/usr/bin/uname -p = unknown  
/bin/uname -X = unknown

/bin/arch = i686  
/usr/bin/arch -k = unknown  
/usr/convex/getsysinfo = unknown  
/usr/bin/hostinfo = unknown  
/bin/machine = unknown  
/usr/bin/oslevel = unknown  
/bin/universe = unknown

PATH: /home/thani/packages/jruby/bin  
PATH: /home/thani/packages/jdk1.6.0/bin  
PATH: /usr/local/sbin  
PATH: /usr/local/bin  
PATH: /usr/sbin  
PATH: /usr/bin  
PATH: /sbin  
PATH: /bin  
PATH: /usr/games

## -----------

## Core tests.

## -----------

configure:1892: checking build system type  
configure:1910: result: i686-pc-linux-gnulibc1  
configure:1932: checking host system type  
configure:1947: result: i686-pc-linux-gnulibc1  
configure:1969: checking target system type  
configure:1984: result: i686-pc-linux-gnulibc1  
configure:2245: checking for gcc  
configure:2261: found /usr/bin/gcc  
configure:2272: result: gcc  
configure:2510: checking for C compiler version  
configure:2517: gcc --version \>&5  
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)  
Copyright © 2006 Free Software Foundation, Inc.  
This is free software; see the source for copying conditions. There is  
NO  
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
PURPOSE.

configure:2520: $? = 0  
configure:2527: gcc -v \>&5  
Using built-in specs.  
Target: i486-linux-gnu  
Configured with: …/src/configure -v  
–enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr  
–enable-shared --with-system-zlib --libexecdir=/usr/lib  
–without-included-gettext --enable-threads=posix --enable-nls  
–program-suffix=-4.1 --enable-\_\_cxa\_atexit --enable-clocale=gnu  
–enable-libstdcxx-debug --enable-mpfr --enable-checking=release  
i486-linux-gnu  
Thread model: posix  
gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)  
configure:2530: $? = 0  
configure:2537: gcc -V \>&5  
gcc: ‘-V’ option must have argument  
configure:2540: $? = 1  
configure:2563: checking for C compiler default output file name  
configure:2590: gcc conftest.c \>&5  
/usr/bin/ld: crt1.o: No such file: No such file or directory  
collect2: ld returned 1 exit status  
configure:2593: $? = 1  
configure:2631: result:  
configure: failed program was:  
| /\* confdefs.h. _/  
| #define PACKAGE\_NAME “”  
| #define PACKAGE\_TARNAME “”  
| #define PACKAGE\_VERSION “”  
| #define PACKAGE\_STRING “”  
| #define PACKAGE\_BUGREPORT “”  
| #define USE\_BUILTIN\_FRAME\_ADDRESS 1  
| /_ end confdefs.h. \*/  
|  
| int  
| main ()  
| {  
|  
| ;  
| return 0;  
| }  
configure:2638: error: C compiler cannot create executables  
See `config.log’ for more details.

## ----------------

## Cache variables.

## ----------------

ac\_cv\_build=i686-pc-linux-gnulibc1  
ac\_cv\_env\_CC\_set=  
ac\_cv\_env\_CC\_value=  
ac\_cv\_env\_CFLAGS\_set=  
ac\_cv\_env\_CFLAGS\_value=  
ac\_cv\_env\_CPPFLAGS\_set=  
ac\_cv\_env\_CPPFLAGS\_value=  
ac\_cv\_env\_CPP\_set=  
ac\_cv\_env\_CPP\_value=  
ac\_cv\_env\_LDFLAGS\_set=  
ac\_cv\_env\_LDFLAGS\_value=  
ac\_cv\_env\_LIBS\_set=  
ac\_cv\_env\_LIBS\_value=  
ac\_cv\_env\_YACC\_set=  
ac\_cv\_env\_YACC\_value=  
ac\_cv\_env\_YFLAGS\_set=  
ac\_cv\_env\_YFLAGS\_value=  
ac\_cv\_env\_build\_alias\_set=  
ac\_cv\_env\_build\_alias\_value=  
ac\_cv\_env\_host\_alias\_set=  
ac\_cv\_env\_host\_alias\_value=  
ac\_cv\_env\_target\_alias\_set=  
ac\_cv\_env\_target\_alias\_value=  
ac\_cv\_host=i686-pc-linux-gnulibc1  
ac\_cv\_prog\_ac\_ct\_CC=gcc  
ac\_cv\_target=i686-pc-linux-gnulibc1

## -----------------

## Output variables.

## -----------------

ALLOCA=’’  
AR=’’  
ARCHFILE=’’  
ARCH\_FLAG=’’  
AS=’’  
ASFLAGS=’’  
CC=‘gcc’  
CCDLFLAGS=’’  
CFLAGS=’’  
COMMON\_HEADERS=’’  
COMMON\_LIBS=’’  
COMMON\_MACROS=’’  
CP=’’  
CPP=’’  
CPPFLAGS=’’  
CPPOUTFILE=’’  
DEFS=’’  
DLDFLAGS=’’  
DLDLIBS=’’  
DLEXT2=’’  
DLEXT=’’  
DLLWRAP=’’  
ECHO\_C=’’  
ECHO\_N=’-n’  
ECHO\_T=’’  
EGREP=’’  
ENABLE\_SHARED=’’  
EXEEXT=’’  
EXPORT\_PREFIX=’’  
EXTOUT=’’  
EXTSTATIC=’’  
GNU\_LD=’’  
GREP=’’  
INSTALL\_DATA=’’  
INSTALL\_PROGRAM=’’  
INSTALL\_SCRIPT=’’  
LDFLAGS=’’  
LDSHARED=’’  
LIBEXT=’’  
LIBOBJS=’’  
LIBPATHENV=’’  
LIBPATHFLAG=’’  
LIBRUBY=’’  
LIBRUBYARG=’’  
LIBRUBYARG\_SHARED=’’  
LIBRUBYARG\_STATIC=’’  
LIBRUBY\_A=’’  
LIBRUBY\_ALIASES=’’  
LIBRUBY\_DLDFLAGS=’’  
LIBRUBY\_LDSHARED=’’  
LIBRUBY\_SO=’’  
LIBS=’’  
LINK\_SO=’’  
LN\_S=’’  
LTLIBOBJS=’’  
MAINLIBS=’’  
MAJOR=‘1’  
MAKEDIRS=’’  
MAKEFILES=’’  
MANTYPE=’’  
MINIOBJS=’’  
MINIRUBY=’’  
MINOR=‘8’  
NM=’’  
NROFF=’’  
OBJDUMP=’’  
OBJEXT=’’  
OUTFLAG=’’  
PACKAGE\_BUGREPORT=’’  
PACKAGE\_NAME=’’  
PACKAGE\_STRING=’’  
PACKAGE\_TARNAME=’’  
PACKAGE\_VERSION=’’  
PATH\_SEPARATOR=’:’  
PREP=’’  
RANLIB=’’  
RDOCTARGET=’’  
RM=’’  
RPATHFLAG=’’  
RUBYW\_INSTALL\_NAME=’’  
RUBY\_INSTALL\_NAME=’’  
RUBY\_SO\_NAME=’’  
RUNRUBY=’’  
SET\_MAKE=’’  
SHELL=’/bin/bash’  
SOLIBS=’’  
STATIC=’’  
STRIP=’’  
TEENY=‘6’  
TRY\_LINK=’’  
WINDRES=’’  
XCFLAGS=’’  
XLDFLAGS=’’  
YACC=’’  
YFLAGS=’’  
ac\_ct\_CC=‘gcc’  
arch=’’  
bindir=’${exec\_prefix}/bin’  
build=‘i686-pc-linux-gnulibc1’  
build\_alias=’’  
build\_cpu=‘i686’  
build\_os=‘linux-gnulibc1’  
build\_vendor=‘pc’  
configure\_args=’’  
datadir=’${datarootdir}’  
datarootdir=’${prefix}/share’  
docdir=’${datarootdir}/doc/${PACKAGE}’  
dvidir=’${docdir}’  
exec\_prefix=‘NONE’  
host=‘i686-pc-linux-gnulibc1’  
host\_alias=’’  
host\_cpu=‘i686’  
host\_os=‘linux-gnulibc1’  
host\_vendor=‘pc’  
htmldir=’${docdir}’  
includedir=’${prefix}/include’  
infodir=’${datarootdir}/info’  
libdir=’${exec\_prefix}/lib’  
libexecdir=’${exec\_prefix}/libexec’  
localedir=’${datarootdir}/locale’  
localstatedir=’${prefix}/var’  
mandir=’${datarootdir}/man’  
oldincludedir=’/usr/include’  
pdfdir=’${docdir}’  
prefix=’/home/thani/ruby’  
program\_transform\_name=‘s&^&&’  
psdir=’${docdir}’  
rubyw\_install\_name=’’  
sbindir=’${exec\_prefix}/sbin’  
setup=’’  
sharedstatedir=’${prefix}/com’  
sitearch=’’  
sitedir=’’  
sysconfdir=’${prefix}/etc’  
target=‘i686-pc-linux-gnulibc1’  
target\_alias=’’  
target\_cpu=‘i686’  
target\_os=‘linux-libc1’  
target\_vendor=‘pc’

## -----------

## confdefs.h.

## -----------

#define PACKAGE\_NAME “”  
#define PACKAGE\_TARNAME “”  
#define PACKAGE\_VERSION “”  
#define PACKAGE\_STRING “”  
#define PACKAGE\_BUGREPORT “”  
#define USE\_BUILTIN\_FRAME\_ADDRESS 1

# configure: exit 77

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 13, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/7 "2007-11-13T19:40:14Z")

</div>

M. Edward (Ed) Borasky wrote:

> The compiler and loader “gcc” and “ld” appear to be installed and  
> operating, but “crt1.o” is missing. This is a run time library. It  
> _should_ be on the system. You will need to have the system  
> administrators help you.

first of all thanks to you  
now i installed ruby-1.8.6  
now everything is fine to me

how to install ri and rdoc ?

---

<div class="post-metadata">

**Author:** ![mokkai](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Post date:** [November 13, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/how-to-install-ruby-in-home-folder/119932/8 "2007-11-13T15:14:31Z")

</div>

Pokkai D. wrote:

> thanks for your reply.
> 
> i am using linux ubuntu 7.04.  
> how to install all “development tools”? (without root permission)  
> actually i am a student and working in a Linux Server ,i don’t have  
> “root” access

You will need to convince your system administrators to help you. See  
below.

> $ ./configure --prefix=/home/thani/ruby
> 
> configure:2245: checking for gcc
> 
> i486-linux-gnu  
> Thread model: posix  
> gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)  
> configure:2530: $? = 0  
> configure:2537: gcc -V \>&5  
> gcc: ‘-V’ option must have argument  
> configure:2540: $? = 1  
> configure:2563: checking for C compiler default output file name  
> configure:2590: gcc conftest.c \>&5  
> /usr/bin/ld: crt1.o: No such file: No such file or directory  
> collect2: ld returned 1 exit status

The compiler and loader “gcc” and “ld” appear to be installed and  
operating, but “crt1.o” is missing. This is a run time library. It  
_should_ be on the system. You will need to have the system  
administrators help you.
