Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ 1 [2] 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Install Rails on DSL, Trying to install Rails on DSL ...< Next Oldest | Next Newest >
mariusc80 Offline





Group: Members
Posts: 12
Joined: June 2007
Posted: Jan. 06 2008,16:57 QUOTE

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.
Back to top
Profile PM 
mariusc80 Offline





Group: Members
Posts: 12
Joined: June 2007
Posted: Jan. 06 2008,17:08 QUOTE

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)
Back to top
Profile PM 
mariusc80 Offline





Group: Members
Posts: 12
Joined: June 2007
Posted: Jan. 06 2008,23:00 QUOTE

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.
Back to top
Profile PM 
mariusc80 Offline





Group: Members
Posts: 12
Joined: June 2007
Posted: Jan. 07 2008,05:40 QUOTE

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.
Back to top
Profile PM 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: Jan. 08 2008,21:02 QUOTE

jpeters
Quote
Unload a unc?

Unmount. :-)


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
13 replies since Jan. 04 2008,18:03 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Install Rails on DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code