mongrel のバックアップ(No.1)


ruby - mongrel

gem install mongrel時のエラー対処1

# 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

ログ確認

# vi /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out

makeインストール

# aptitude search make
# apt-get install make
# make

gem install mongrel時のエラー対処2

# 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

ログ確認

# vi /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out

gccインストール

# aptitude search gcc
# apt-get install gcc
# gcc