WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: tiny core and RubyOnRails [SOLVED]  (Read 3263 times)

Offline nurbs999

  • Newbie
  • *
  • Posts: 8
tiny core and RubyOnRails [SOLVED]
« on: July 16, 2009, 02:54:38 PM »
Hello!

i'm trying to get rails running on tiny core with a sqlite database. the problem is, that i can't build the sqlite3-ruby gem.
i compiled ruby 1.9.1-p129 and build an tce, which works fine. how can i install developer tools under tiny core? (gcc is installed, but doesn't compile, seems like the assembler compiler is missing?)
Code: [Select]
tc@box:~$ echo "int main(){ return 0;}" > text.c
tc@box:~$ gcc text.c
gcc: error trying to exec 'as': execvp: No such file or directory
tc@box:~$

here is the error message:
Code: [Select]
tc@box:~/sqlite3-ruby-1.2.4$ ruby setup.rb
---> lib
---> lib/sqlite3
---> lib/sqlite3/driver
---> lib/sqlite3/driver/native
<--- lib/sqlite3/driver/native
---> lib/sqlite3/driver/dl
<--- lib/sqlite3/driver/dl
<--- lib/sqlite3/driver
<--- lib/sqlite3
<--- lib
---> ext
---> ext/sqlite3_api
/usr/local/bin/ruby /home/tc/sqlite3-ruby-1.2.4/ext/sqlite3_api/extconf.rb
checking for fdatasync() in -lrt... /usr/local/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:419:in `try_link'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:527:in `try_func'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:723:in `block in have_library'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:248:in `open'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
        from /usr/local/lib/ruby/1.9.1/mkmf.rb:718:in `have_library'
        from /home/tc/sqlite3-ruby-1.2.4/ext/sqlite3_api/extconf.rb:7:in `<main>'
'system /usr/local/bin/ruby /home/tc/sqlite3-ruby-1.2.4/ext/sqlite3_api/extconf.rb ' failed
« Last Edit: July 16, 2009, 03:19:20 PM by nurbs999 »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: tiny core and RubyOnRails
« Reply #1 on: July 16, 2009, 03:01:39 PM »
as command  is in the binutils extension.

Probably best to fetch the compiletc meta extension as doing so will provide a complete development environment.
10+ Years Contributing to Linux Open Source Projects.

Offline nurbs999

  • Newbie
  • *
  • Posts: 8
Re: tiny core and RubyOnRails
« Reply #2 on: July 16, 2009, 03:18:54 PM »
hell, that was too easy :)
thanks for the tip. i installed compiletc.tce and sqlite3-devs.tce.

installation of the sqlite3-ruby gem worked