mongrel

Debian GNU Linux 4.0 etch - 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


2008-04-11 (金) 16:39:20 (6031d)

リロード   新規 編集 凍結 差分 添付 複製 名前変更   ホーム 一覧 単語検索 最終更新 バックアップ リンク元   ヘルプ   最終更新のRSS