日期:2014-05-16  浏览次数:20789 次

rake db:migrate RAILS_ENV="production" 救我,我在试用期,求求大家了
在执行rake db:migrate的时候你可能遇到一个错误消息 ‘no such file to load –openssl’。那就需要先
install openssl openssl-devel
然后在已经解压的ruby source code中
# cd /ruby_install_dir/ext/openssl# ruby extconf.rb# make & make install

我已经这么做了,怎么还提示no such file to load –openssl’,能给点建议么?救救我

  linux9 


执行 # rake db:migrate RAILS_ENV="production"
--------------
错误如下
warning' require rake/rdoctask is deprecated. please use require /rdoc/task (in RDoc 2.4.2+) instead.
  at /usr/local/ruby/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
 rake aborted!
no such file to load --openssl

task:top=>db:migrate=> environment


------解决方案--------------------
我在前面加了个mysql -u root :>rake db:migrate 没报错..不晓得对没
------解决方案--------------------
warning' require rake/rdoctask is deprecated. please use require /rdoc/task (in RDoc 2.4.2+) instead.