我不知道在OSX山狮下安装红宝石/ rails是怎么回事。
我从一个黑色rails应用程序开始,运行bundle并使用bundle show列出已安装的包,我得到如下信息:
[..]
* sqlite3 (1.3.7)
* thor (0.17.0)
* tilt (1.3.3)
* treetop (1.4.12)
[..]
一旦运行rake :migrate,就会得到以下错误:
Could not find thor-0.17.0 in any of the sources
Run `bundle install` to install missing gems.
但是,如图所示,安装了t
我似乎不能部署到Heroku。它在捆绑上一直失效。我能在本地捆绑。我得到了以下错误:
Gem::RemoteFetcher::FetchError: bad response backend read error 503 (https://rubygems.global.ssl.fastly.net/gems/thor-0.18.1.gem)
An error occurred while installing thor (0.18.1), and Bundler cannot continue.
Make sure that `gem install thor -v '0.18.1&
我试着编译一个Thor库。它依赖于SFML。我在编译SFGUI时没有遇到任何问题,它也依赖于SFML。之前我使用的是完全相同的工具链。一切都很好
CMake gui错误:
The C compiler identification is unknown
The CXX compiler identification is GNU 4.9.2
Check for working C compiler: E:/Programs_Portable/Dev-Cpp/minGW32/bin/gcc.exe
Check for working C compiler: E:/Programs_Portabl
我正在尝试创建一个新的Rails应用程序。每次我输入rails new之后,我都会得到这个错误
/usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.2/lib/thor/parser/option.rb:130:in `validate_default_type!': An option's default must match its type. (ArgumentError)
from /usr/local/lib/ruby/gems/2.2.0/gems/thor-0.19.2/lib/thor/parser/option.
我一直跟着railstutorial.org学习rails,现在,我不知道我的错误来自哪里,但是rails测试没有测试,rails服务器也没有出现
C:\Sites\sample_app>rails test
C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bcrypt-3.1.11-x86-mingw32/lib/bcrypt.rb:16:in `require': cannot load such file -- bcrypt_ext (LoadError)
from C:/RailsInstaller
安装zsh之后,我无法启动rails服务器,我得到以下错误:
在bash,它正在正常工作。
错误:
╭─love@Love ~/rails/nbt1 ‹system› ‹master*›
╰─➤ rs
Could not find rake-10.1.0 in any of the sources
╭─love@Love ~/rails/nbt1 ‹system› ‹master*›
╰─➤ bundle
我有一个Padrino项目,它使用Erb作为模板引擎,使用Mongoid作为对象-文档-映射器。
我正在尝试通过以下命令为我的Padrino项目创建管理应用程序
padrino g admin -e erb
但是我收到一个错误
/home/vadim/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/psych.rb:297:in `initialize': No such file or directory - /home/vadim/projects/interierka/heroku/.components (Errno::ENOENT)
fr
所以,我确信我曾经出于绝望做过一次sudo bundle install,现在我明白了这是一个禁忌。但是现在,当我尝试运行bundle install时,我得到了以下错误:
Installing culerity (0.2.12) /Library/Ruby/Site/1.8/rubygems/installer.rb:294:in `generate_bin': You don't have write permissions into the /Library/Ruby/Gems/1.8/bin directory. (Gem::FilePermissionError)
我在我的rails应用程序中做了“捆绑安装”。首先,我收到了以下信息:
Bundler could not find compatible versions for gem "bundler":
In Gemfile:
rails (= 3.0.1) ruby depends on
bundler (~> 1.0.0) ruby
Current Bundler version:
bundler (1.3.4)
This Gemfile requires a different version of Bundler.
然后我在这里找到
今天,我醒来时有一种我想要抓的痒: Linux区域到底是由什么组成的?当然,我不仅是在寻找答案而没有搜索过。据我理解,Linux分区由以下组件组成:
Linux Kernel
GNU tools and libraries
Package Management
Documentation
Windows System
Windows Manager
Desktop Environment
我遗漏了什么吗?
在打印帮助输出时, gem似乎总是按字母顺序排列已定义的命令。示例:
#!/usr/bin/env ruby
require "thor"
class MyCLI < Thor
desc "z", "this should go first"
def z; end
desc "a", "this should go second"
def a; end
end
MyCLI.start(ARGV)
将此脚本保存为thor-test并在不带参数的情况下调用它将提供以下输出:
Command
使用rails生成新项目。
将twitter-bootstrap-rails添加到Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.8'
# Use thin as webserver
gem 'thin'
# Mysql
gem 'mysql2'
# Gems used only for assets and not required
# in production environmen
我要是被困在这里就好了。从/home/frank/.rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/railties-4.2.5.1/lib/rails/application/configuration.rb:110:in database_configuration': Cannot loadRails.application.database_configuration: (RuntimeError) Could not load database configuration. No such file - ["config/d
当我启动我的Rail Server for Project时,它给出了如下错误
sahil@sahil-M:~/sites/tasks$ rails s
Could not find gem 'sqlite3 (>= 0, runtime)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
当我去安装包的时候,它给了我另一个错误
sahil@sahil-M:~/sites/tasks$ sudo bundle install
Fe