Apps :: Install Rails on DSL



More details:

- I have a hdd install.
- I don't have a video card on the system
- I access the system through ssh
- the rest of the system is shared through samba

- I have aliendebs, apache and samba installed.

I'm getting an error when I try to configure the rub
y compilation setup:
Code Sample

nasman@0[ruby-1.8.6-p111]$ ./configure
checking build system type... i586-pc-linux-gnulibc1
checking host system type... i586-pc-linux-gnulibc1
checking target system type... i586-pc-linux-gnulibc1
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... unsupported
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


And in the log file:
Code Sample

In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/include/syslimits.h:7,
             from /usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:11,
             from conftest.c:10:
             /usr/lib/gcc-lib/i386-linux/2.95.4/include/limits.h:117: limits.h: No such file or directory


But this is just one of many.

How do I tell if my compiler is working properly?

This is the version I have:  gcc version 2.95.4 20011002 (Debian prerelease)

OK, I'm one step closer ... I have ruby 1.8.6 and rubygems 1.0.1

For some of the commands you need admin privileges so use sudo or go in as root

What I did:

Get the compiler
1. download gcc1-with-libs.unc
2. run mydsl-load gcc1-with-libs.dsl

Get ruby 1.8.6, compile it, and install it
1. download Ruby download page ... get the latest stable source code
2. ./configure
3. make
4. make install

I already had an older ruby ... so I had to link /usr/bin/ruby to /usr/local/bin/ruby

Get rubygems 1.0.1, compile it, and install it
1. download Ruby gems download page ... get the latest stable source code
2. ruby setup.rb all

I already had an older gem ... so I had to cp /usr/local/bin/gem /usr/bin/gem

Next I need rails, a database ... and ... luck.

Code Sample
$ gem install rails --include-dependencies
INFO:  `gem install -y` is now default and will be removed
INFO:  use --ignore-dependencies to install only the gems you list
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rake-0.8.1
Successfully installed activesupport-2.0.2
Successfully installed activerecord-2.0.2
Successfully installed actionpack-2.0.2
Successfully installed actionmailer-2.0.2
Successfully installed activeresource-2.0.2
Successfully installed rails-2.0.2
7 gems installed
Installing ri documentation for rake-0.8.1...
Installing ri documentation for activesupport-2.0.2...
Installing ri documentation for activerecord-2.0.2...
Installing ri documentation for actionpack-2.0.2...
Installing ri documentation for actionmailer-2.0.2...
Installing ri documentation for activeresource-2.0.2...
Installing RDoc documentation for rake-0.8.1...
Installing RDoc documentation for activesupport-2.0.2...
Installing RDoc documentation for activereis added cord-2.0.2...
Installing RDoc documentation for actionpack-2.0.2...
Installing RDoc documentation for actionmailer-2.0.2...
Installing RDoc documentation for activeresource-2.0.2...
$

This added rails to my system.

jpeters
Quote
Unload a unc?

Unmount. :-)

Next Page...
original here.