gems

Ruby: Could not find a temporary directory

匿名 (未验证) 提交于 2019-12-03 02:15:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting some 500 errors in my Passenger Rails app. When looking at the log it appears passenger cannot access the /tmp dir. I have validated that it is there and has RW access to root, and then tried www-data. What is going on here? 2014-01-14 16:01:16.6573 20624/7fa7c8806700 Pool2/SmartSpawner.h:301 ]: Preloader for /var/www/socialrest_homepage started on PID 20686, listening on unix:/tmp/passenger.1.0.20618/generation-0/backends/preloader.20686 App 20704 stdout: [Tue Jan 14 16:01:17 2014] [error] [client 168.215.171.129] Premature end

Postgres could not connect to server

匿名 (未验证) 提交于 2019-12-03 02:11:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: After I did brew update and brew upgrade, my postgres got some problem. I tried to uninstall postgres and install again, but it didn't work as well. This is the error message.(I also got this error message when I try to do rake db:migrate) $ psql psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? How can I solve it? Mac version: Mountain lion. homebrew version: 0.9.3 postgres version: psql (PostgreSQL) 9.2.1 And this is what I did.

no such file to load ― rdoc/task

匿名 (未验证) 提交于 2019-12-03 02:06:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: When I run rake db : create I receive this error rake aborted ! no such file to load -- rdoc / task ( See full trace by running task with -- trace ) Here is the --trace /usr/ lib / ruby / site_ruby / 1.8 / rubygems / custom_require . rb : 36 : in `gem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in ` require ' /home/tpeg/rails_apps/Test/Rakefile:8 /usr/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in `load' / usr / lib / ruby / gems / 1.8 / gems / rake - 0.9 . 2 / lib / rake / rake

Nokogiri error when running bundle install

匿名 (未验证) 提交于 2019-12-03 02:05:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Trying to get a cloned Rails app running. When running bundle install I get this error: Using mini_portile (0.5.0) Installing nokogiri (1.6.0) Gem::InstallError: nokogiri requires Ruby version >= 1.9.2. An error occurred while installing nokogiri (1.6.0), and Bundler cannot continue. Make sure that `gem install nokogiri -v '1.6.0'` succeeds before bundling. But this is the output for rbenv version : When running gem list I get: . . . mini_portile (0.5.0) minitest (2.5.1) multi_json (1.7.7) nokogiri (1.6.0) I've been racking my brain for an

Psych::SyntaxError couldn't parse YAML

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am facing problem in rails application running on fedora 16 Rails version 2.3.5 and Ruby 1.9.2.p320 . The application running fine on Ubuntu 11.10. When I run the rails server and Hit any controller the following error in coming. Psych::SyntaxError in controllername#actionname couldn't parse YAML I have tried the apply the following trick but it's not work for me. I have added the following line in config/boot.rb require 'yaml' YAML::ENGINE.yamler = 'syck' the error trace is .rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/psych.rb:148:in `parse

rails generate rspec:install config/environments/development.rb:1:in `<top (required)>': undefined method `configure'

匿名 (未验证) 提交于 2019-12-03 01:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: first, here are my versions: Greg - Nowickis - MacBook - Pro : sample_app Greg_Nowicki$ ruby - v ruby 2.0 . 0p451 ( 2014 - 02 - 24 revision 45167 ) [ x86_64 - darwin13 . 1.0 ] Greg - Nowickis - MacBook - Pro : sample_app Greg_Nowicki$ rails - v Rails 4.0 . 4 I'm following the Hartl Rails tutorial and am install rspec for testing. I have added gem 'rspec-rails' to my gemfile and when I run rails generate rspec:install, this is what I get: Greg - Nowickis - MacBook - Pro : sample_app Greg_Nowicki$ rails generate rspec : install /

How can I use unicorn as “rails s”?

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: A new rails project's gemfile shows: # Use unicorn as the app server gem 'unicorn' rails s --help shows: Usage: rails server [mongrel, thin, etc] [options] Yet, doing: rails s unicorn I get: /Users/patrick/.rvm/gems/ruby-1.9.3-head@keynote/gems/rack-1.4.5/lib/rack/handler.rb:63:in `require': cannot load such file -- rack/handler/unicorn (LoadError) from /Users/patrick/.rvm/gems/ruby-1.9.3-head@keynote/gems/rack-1.4.5/lib/rack/handler.rb:63:in `try_require' from /Users/patrick/.rvm/gems/ruby-1.9.3-head@keynote/gems/rack-1.4.5/lib/rack/handler

Cocoapods: Failed to connect to GitHub to update the CocoaPods/Specs specs repo

匿名 (未验证) 提交于 2019-12-03 01:58:03
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: When running pod repo update the following error is generated: Updating spec repo `master` [!] Failed to connect to GitHub to update the CocoaPods / Specs specs repo - Please check if you are offline , or that GitHub is down Using cocoapods 1.0.1 I'm also aware of this: . Adding --verbose flag to the call shows the ruby call stack: . rvm / gems / ruby - 2.3 . 0 / gems / cocoapods - core - 1.0 . 1 / lib / cocoapods - core / github . rb : 100 : in `modified_since_commit' .rvm/gems/ruby-2.3.0/gems/cocoapods-core-1.0.1/lib/cocoapods

Rails - cannot run app: Unable to load the EventMachine C extension;

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I run an app on Lion OS X, I get this error: Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby' /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0/lib/eventmachine.rb:8:in `require': no such file to load -- rubyeventmachine (LoadError) from /Users/adam/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0/lib/eventmachine.rb:8:in ` ' from /Users/adam/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require' from /Users/adam/.rvm/gems/ruby-1.9.2-p290

“uninitialized constant Sass::Script (NameError)”

匿名 (未验证) 提交于 2019-12-03 01:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I had first to change my Gemfile from (I deleted the comments to make the text shorter): source 'https://rubygems.org' gem 'rails', '4.2.0' gem 'sqlite3' gem 'sass-rails', '~> 5.0' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.1.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 2.0' gem 'sdoc', '~> 0.4.0', group: :doc group :development, :test do gem 'byebug' gem 'web-console', '~> 2.0' gem 'spring' end to: source 'https://rubygems.org' gem 'rails', '4.2.0' gem 'sass-rails', '5.0.1' gem 'uglifier', '2.5.3' gem 'coffee-rails',