mongrel の変更点


* Debian GNU Linux 4.0 etch - ruby - mongrel [#xb527e64]

** gem install mongrel時のエラー対処1 [#g419fde5]
 # gem install mongrel
 Updating metadata for 1 gems from http://gems.rubyforge.org/
 .
 complete
 Building native extensions. This could take a while...
 ERROR:  Error installing mongrel:
         ERROR: Failed to build gem native extension.
 /usr/bin/ruby1.8 extconf.rb install mongrel
 creating Makefile
 
 make
 sh: make: command not found
 
 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.
 Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out
~

***ログ確認 [#l26a92f0]
 # vi /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out
~

***makeインストール [#be784f7c]
 # aptitude search make

 # apt-get install make

 # make
~

** gem install mongrel時のエラー対処2 [#g1ac4e6b]
 # gem install mongrel
 Building native extensions.  This could take a while...
 ERROR:  Error installing mongrel:
         ERROR: Failed to build gem native extension.
 /usr/bin/ruby1.8 extconf.rb install mongrel
 creating Makefile
 
 make
 gcc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I. -fPIC -Wall -g -fno-strict-aliasing -O2 -fPIC -c fastthread.c
 make: gcc: Command not found
 make: *** [fastthread.o] Error 127
 
 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.
 Results logged to /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out
~
***ログ確認 [#j91cac5a]
 # vi /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out
~
***gccインストール [#fd30baf5]
 # aptitude search gcc

 # apt-get install gcc

 # gcc
~