Created
June 28, 2011 19:46
-
-
Save 8th-Light-Blog/1052016 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Blog Title: Embedded Ruby Sings Sinatra | |
| Author: Doug Bradbury | |
| Date: December 30th, 2008 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| etc | |
| fcntl | |
| iconv | |
| socket | |
| stringio | |
| strscan | |
| syck | |
| thread | |
| zlib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/sh | |
| export ARM_TOOLS=/usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/bin | |
| export CC=$ARM_TOOLS/arm-unknown-linux-gnu-gcc | |
| export LD=$ARM_TOOLS/arm-unknown-linux-gnu-gcc | |
| export AR=$ARM_TOOLS/arm-unknown-linux-gnu-ar | |
| export RANLIB=$ARM_TOOLS/arm-unknown-linux-gnu-ranlib | |
| export ac_cv_func_getpgrp_void=yes | |
| export ac_cv_func_setpgrp_void=yes | |
| ./configure --host=arm-unknown-linux --enable-wide-getaddrinfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| TOPDIR = File.dirname(__FILE__).chomp!("/lib/ruby/1.8/arm-linux") | |
| DESTDIR = "/~/ruby/install" | |
| CONFIG = {} | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby setup.rb --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo gem install sinatra-0.3.2.gem -i /arm/fs/usr/local/lib/ruby/gems/1.8 --no-rdoc --no-ri | |
| sudo gem install rack-0.4.0.gem -i /arm/fs/usr/local/lib/ruby/gems/1.8 --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'rack/handler/webrick' | |
| require 'sinatra' | |
| Sinatra::Application.default_options.merge!( | |
| :run => false, | |
| :env => :production, | |
| :port => 80 | |
| ) | |
| get '/' do | |
| "Hello Sinatra!" | |
| end | |
| Rack::Handler::WEBrick.run Sinatra.application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment