Installing Ruby, Rails via DarwinPorts on Powerbook G4 / Tiger

Posted: February 11, 2006 in Mac, RUBY, Ruby on Rails

http://darwinports.com/

rubyonmac:~ arie$ port list ruby
ruby @1.8.4 lang/ruby

rubyonmac:~ arie$ port list readline
readline @5.0.005 devel/readline

rubyonmac:~ arie$ port list lighttpd
lighttpd @1.4.9 www/lighttpd

rubyonmac:~ arie$ sudo port install readline
Password:
—> Fetching readline
—> Attempting to fetch readline50-001 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
—> Attempting to fetch readline50-002 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
—> Attempting to fetch readline50-003 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
—> Attempting to fetch readline50-004 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
—> Attempting to fetch readline50-005 from ftp://ftp.cwru.edu/pub/bash/readline-5.0-patches/
—> Attempting to fetch readline-5.0.tar.gz from ftp://ftp.gnu.org/gnu/readline
—> Verifying checksum(s) for readline
—> Extracting readline
—> Applying patches to readline
—> Configuring readline
—> Building readline with target all
—> Staging readline into destroot
—> Packaging tgz archive for readline 5.0.005_0+darwin_8
—> Installing readline 5.0.005_0+darwin_8
—> Activating readline 5.0.005_0+darwin_8
—> Cleaning readline
—> Fetching libiconv
—> Attempting to fetch libiconv-1.10.tar.gz from ftp://ftp.gnu.org/gnu/libiconv
—> Verifying checksum(s) for libiconv
—> Extracting libiconv
—> Configuring libiconv
—> Building libiconv with target all
—> Staging libiconv into destroot
—> Packaging tgz archive for libiconv 1.10_1+darwin_8
—> Installing libiconv 1.10_1+darwin_8
—> Activating libiconv 1.10_1+darwin_8
—> Cleaning libiconv
—> Fetching zlib
—> Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/
—> Verifying checksum(s) for zlib
—> Extracting zlib
—> Configuring zlib
—> Building zlib with target all
—> Staging zlib into destroot
—> Packaging tgz archive for zlib 1.2.3_0
—> Installing zlib 1.2.3_0
—> Activating zlib 1.2.3_0
—> Cleaning zlib
—> Fetching openssl
—> Attempting to fetch openssl-0.9.8a.tar.gz from http://www.openssl.org/source/
—> Verifying checksum(s) for openssl
—> Extracting openssl
—> Applying patches to openssl
—> Configuring openssl
—> Building openssl with target all
—> Staging openssl into destroot
—> Packaging tgz archive for openssl 0.9.8a_0+darwin_8
—> Installing openssl 0.9.8a_0+darwin_8
—> Activating openssl 0.9.8a_0+darwin_8
—> Cleaning openssl
—> Fetching ruby
—> Attempting to fetch ruby-1.8.4.tar.gz from ftp://xyz.lcs.mit.edu/pub/ruby/1.8
—> Verifying checksum(s) for ruby
—> Extracting ruby
—> Applying patches to ruby
—> Configuring ruby
—> Building ruby with target all
—> Staging ruby into destroot
—> Packaging tgz archive for ruby 1.8.4_1
—> Installing ruby 1.8.4_1
—> Activating ruby 1.8.4_1
—> Cleaning ruby

rubyonmac:~ arie$ ruby -v
ruby 1.8.4 (2005-12-24) [powerpc-darwin8.0.0]

rubyonmac:~ arie$ ri -v
ri v1.0.1 – 20041108

rubyonmac:~ arie$ rdoc -v
RDoc V1.0.1 – 20041108

rubyonmac:~ arie$ irb -v
irb 0.9.5(05/04/13)

rubyonmac:~ arie$ sudo port install rb-rubygems
Password:
—> Fetching rb-rubygems
—> Attempting to fetch rubygems-0.8.11.tgz from http://rubyforge.org/frs/download.php/5207/
—> Verifying checksum(s) for rb-rubygems
—> Extracting rb-rubygems
—> Configuring rb-rubygems
—> Building rb-rubygems with target setup
—> Staging rb-rubygems into destroot
—> Packaging tgz archive for rb-rubygems 0.8.11_0
—> Installing rb-rubygems 0.8.11_0
—> Activating rb-rubygems 0.8.11_0
—> Cleaning rb-rubygems

rubyonmac:~ arie$ gem list –local

*** LOCAL GEMS ***

sources (0.0.1)
This package provides download sources for remote gem installation

rubyonmac:~ arie$ which gem
/opt/local/bin/gem

rubyonmac:~ arie$ which ruby
/opt/local/bin/ruby

rubyonmac:~ arie$ sudo gem install redcloth bluecloth pdf-writer rails rio -y –rdoc
Attempting local installation of ‘redcloth’
Local gem file not found: redcloth*.gem
Attempting remote installation of ‘redcloth’
Updating Gem source index for: http://gems.rubyforge.org
Successfully installed RedCloth-3.0.4
Attempting local installation of ‘bluecloth’
Local gem file not found: bluecloth*.gem
Attempting remote installation of ‘bluecloth’
Successfully installed BlueCloth-1.0.0
Installing RDoc documentation for BlueCloth-1.0.0…
Attempting local installation of ‘pdf-writer’
Local gem file not found: pdf-writer*.gem
Attempting remote installation of ‘pdf-writer’
Successfully installed pdf-writer-1.1.3
Successfully installed color-tools-1.3.0
Successfully installed transaction-simple-1.3.0
Installing RDoc documentation for pdf-writer-1.1.3…
Installing RDoc documentation for color-tools-1.3.0…
Installing RDoc documentation for transaction-simple-1.3.0…
Attempting local installation of ‘rails’
Local gem file not found: rails*.gem
Attempting remote installation of ‘rails’
Successfully installed rails-1.0.0
Successfully installed rake-0.7.0
Successfully installed activesupport-1.2.5
Successfully installed activerecord-1.13.2
Successfully installed actionpack-1.11.2
Successfully installed actionmailer-1.1.5
Successfully installed actionwebservice-1.0.0
Installing RDoc documentation for rake-0.7.0…
Installing RDoc documentation for activesupport-1.2.5…
Installing RDoc documentation for activerecord-1.13.2…
Installing RDoc documentation for actionpack-1.11.2…
Installing RDoc documentation for actionmailer-1.1.5…
Installing RDoc documentation for actionwebservice-1.0.0…
Attempting local installation of ‘rio’
Local gem file not found: rio*.gem
Attempting remote installation of ‘rio’
Successfully installed rio-0.3.4
Successfully installed extensions-0.6.0
Installing RDoc documentation for rio-0.3.4…
Could not find main page RIO::Doc::SYNOPSIS
Could not find main page RIO::Doc::SYNOPSIS
Could not find main page RIO::Doc::SYNOPSIS
Could not find main page RIO::Doc::SYNOPSIS
Installing RDoc documentation for extensions-0.6.0…

rubyonmac:~/Sites/rails arie$ port list fcgi
fcgi @2.4.0 www/fcgi

rubyonmac:~/Sites/rails arie$ port list ruby-fcgi

rubyonmac:~/Sites/rails arie$ sudo port install fcgi
Password:
—> Fetching fcgi
—> Attempting to fetch fcgi-2.4.0.tar.gz from http://www.fastcgi.com//dist/
—> Verifying checksum(s) for fcgi
—> Extracting fcgi
—> Applying patches to fcgi
—> Configuring fcgi
—> Building fcgi with target all
—> Staging fcgi into destroot
—> Packaging tgz archive for fcgi 2.4.0_1
—> Installing fcgi 2.4.0_1
—> Activating fcgi 2.4.0_1
—> Cleaning fcgi

rubyonmac:~/Sites/rails arie$ sudo gem install fcgi –rdoc
Attempting local installation of ‘fcgi’
Local gem file not found: fcgi*.gem
Attempting remote installation of ‘fcgi’
Building native extensions. This could take a while…
ruby extconf.rb install fcgi –rdoc
checking for fcgiapp.h… yes
checking for FCGX_Accept() in -lfcgi… yes
creating Makefile

make
gcc -fno-common -O -pipe -I/opt/local/include -fno-common -pipe -fno-common -I. -I/opt/local/lib/ruby/1.8/powerpc-darwin8.0.0 -I/opt/local/lib/ruby/1.8/powerpc-darwin8.0.0 -I. -DHAVE_FCGIAPP_H -O -pipe -I/opt/local/include -c fcgi.c
cc -dynamic -bundle -undefined suppress -flat_namespace -L/opt/local/lib -L”/opt/local/lib” -o fcgi.bundle fcgi.o -lruby -lfcgi -lpthread -ldl -lobjc

make install
/usr/bin/install -c -m 0755 fcgi.bundle /opt/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/.
Successfully installed fcgi-0.8.6.1
Installing RDoc documentation for fcgi-0.8.6.1…

No definition for fcgi_s_accept

No definition for fcgi_s_each

No definition for fcgi_s_each

No definition for fcgi_s_iscgi

No definition for fcgi_in

No definition for fcgi_out

No definition for fcgi_err

No definition for fcgi_env

No definition for fcgi_finish

No definition for fcgi_stream_putc

No definition for fcgi_stream_write

No definition for fcgi_stream_print

No definition for fcgi_stream_printf

No definition for fcgi_stream_puts

No definition for fcgi_stream_addstr

No definition for fcgi_stream_flush

No definition for fcgi_stream_getc

No definition for fcgi_stream_ungetc

No definition for fcgi_stream_gets

No definition for fcgi_stream_read

No definition for fcgi_stream_eof

No definition for fcgi_stream_eof

No definition for fcgi_stream_close

No definition for fcgi_stream_closed

No definition for fcgi_stream_binmode

No definition for fcgi_stream_isatty

No definition for fcgi_stream_isatty

No definition for fcgi_stream_sync

No definition for fcgi_stream_setsync

rubyonmac:~/Sites/rails arie$ sudo port install pcre
—> Fetching pcre
—> Attempting to fetch pcre-6.4.tar.bz2 from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
—> Verifying checksum(s) for pcre
—> Extracting pcre
—> Configuring pcre
—> Building pcre with target all
—> Staging pcre into destroot
—> Packaging tgz archive for pcre 6.4_0
—> Installing pcre 6.4_0
—> Activating pcre 6.4_0
—> Cleaning pcre

rubyonmac:~/Sites/rails arie$ sudo port install lighttpd
Password:
—> Fetching lighttpd
—> Attempting to fetch lighttpd-1.4.9.tar.gz from http://www.lighttpd.net//download/
—> Verifying checksum(s) for lighttpd
—> Extracting lighttpd
—> Configuring lighttpd
—> Building lighttpd with target all
—> Staging lighttpd into destroot
—> Packaging tgz archive for lighttpd 1.4.9_0
—> Installing lighttpd 1.4.9_0
—> Activating lighttpd 1.4.9_0
—> Cleaning lighttpd

Please mail me at ariekusumaatmaja@gmail.com if this article is helpful to you. i’d be glad to response :)

For experts, please leave your comments to make this article better.

Advertisements

tinggalkan feedback konstruktif atau lebih baik diam

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s