Installing RVM, Ruby on Rails, and Passenger on Centos 6

2013-03-23: THIS IS AN UPDATED VERSION OF A POST I WROTE A LITTLE OVER A YEAR AGO. THERE HAVE BEEN SOME SECURITY ISSUES WITH RAILS IN THAT TIME, AND S[……]

继续阅读

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找看看究竟[……]

继续阅读