我正在尝试将rails应用程序上传到hostgator并使用bcrypt gem获取错误。我从GEMFILE和文件.lock中删除了gem。救命啊!
捆绑环境
Bundler 1.7.3
Ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
Rubygems 1.8.21
GEM_HOME /home4/agtcorp/ruby/gems
GEM_PATH
Gemfile
source "http://rubygems.org"
gem "rake", "0.8.3"
gem "rack", "1.1.0"
gem "i18n", "0.4.2"
gem "rubytree", "0.5.2", :require => "tree"
gem "RedCloth", "~>4.2.3", :require => "redcloth" # for CodeRay
gem "mysql"
gem "coderay", "~>0.9.7"
gem "rdoc", "~>2.4.2"
gem 'devise'
Gemfile.lock
捆绑安装
Fetching gem metadata from http://rubygems.org/.......
Resolving dependencies..........
Using rake 0.8.3
Using RedCloth 4.2.9
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for ruby/util.h... no
creating Makefile
make
gcc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux -I. -fPIC -g -O2 fPIC -c crypt.c
make: execvp: gcc: Permission denied
make: *** [crypt.o] Error 127
Gem files will remain installed in /home4/agtcorp/ruby/gems/gems/bcrypt-3.1.7 for inspection.
Results logged to /home4/agtcorp/ruby/gems/gems/bcrypt-3.1.7/ext/mri/gem_make.out
An error occurred while installing bcrypt (3.1.7), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.7'` succeeds before bundling.