Category: Ruby
Error installing caldecott: ERROR: Failed to build gem native extension.解决方法
gem安装caldecott的时候有以下报错:
Error installing caldecott: ERROR:
Failed to build gem native extension.
解决方法如下:
Ubuntu/Debian:
apt-get install libmysq[......]
An error occurred while installing sqlite3 (1.3.7), and Bundler cannot continue.
问题:
[root@centos6-x64 weblog]# bundle install
Fetching gem metadata from https://rubygems.org/………..
Fetching gem metadata from https://ruby[……]
‘Could not find a JavaScript runtime’ but execjs AND therubyracer are in Gemfile
问题:
执行rails server的时候报错:
[root@centos6-x64 weblog]# rails server
/usr/local/ruby2.0/lib/ruby/gems/2.0.0/gems/execjs-1.4.0/lib/execjs/runtimes.r[……]
修正“`require’: cannot load such file — openssl (LoadError)”错误
unbutu下编译ruby1.9.3以后,下了rails,生成了新项目,结果在跑的时候出现如下的错误:
1
`require': cannot load such
file
-- openssl (LoadError)
于是google找看看究竟[……]