我在Windows机器上安装了Ruby 1.8.7和Ruby 1.9.2。
在我的控制台中,当我执行ruby -v时,它会给我Ruby1.8.7
现在当我试着
gem install rails -v 2.3.8
我得到了这个错误
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ERROR: could not find gem rails locally or in a repository
我的RubyGems版本显示为1.3.5,所以我尝试更新它
gem update --system
我得到了
当尝试安装fileutils gem时,我得到以下输出:
No package 'MagickCore' found
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'MagickCore' found
Package MagickCore
sudo gem install mysql — –with-mysql-config=/usr/local/mysql/bin/mysql_config
/usr/local/lib/ruby/1.9.1/optparse.rb:1262: warning: regexp match /.../n against to UTF-8 string
/usr/local/lib/ruby/1.9.1/optparse.rb:1278: warning: regexp match /.../n against to UTF-8 string
/usr/local/lib/ruby/1.9.1/op
我刚刚迁移到Ubuntu 8.10作为我的开发环境;这是我第一次认真尝试将Linux作为日常使用的操作系统,我很难让Rails运行起来。我遵循了一些教程,这些教程似乎都工作得很好,但是当我尝试在任何东西上使用gem install或gem update时,我得到了一个错误,看起来像这样:
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError)
from /usr/local/lib
我开发了一个叫web_scraper的宝石。当我试图将它发布到rubygems.org时,我得到了下面的问题。
> You do not have permission to push to this gem. Ask an owner to add
> you with: gem owner web_scraper --add <email>
这是gem env的输出
RubyGems Environment:
- RUBYGEMS VERSION: 2.5.1
- RUBY VERSION: 2.3.1 (2016-04-26 patchlevel 112)
我有一个新安装的带有MongoMapper的rails 4。现在,我正在尝试在我的rails实例上安装doorkeeper。
我在我的Gemfile中添加了"gem 'doorkeeper-mongodb'“行。然后我运行了'bundle install‘。我得到了以下错误:
Could not find gem 'doorkeeper-mongodb (>= 0) ruby' in any of the gem sources listed in your Gemfile or available on this machine.
此外,
因此,现在我只是在Ruby中尝试C/C++扩展,在使用rake编译gem时遇到了麻烦。现在我要做的就是定义一个模块,它不会加载Init_*函数,因为它说符号是未定义的。但是,当我检查.so文件时,它清楚地列在符号表中:
nm -gC RSFML.so
0000000000201038 B __bss_start
w __cxa_finalize
0000000000201038 D _edata
0000000000201050 B _end
0000000000000744 T _fini
我正在尝试运行我的rails项目,但是当我试图访问myproject.dev时网页却被卡住了。粉末启动时没有任何问题,并且Guard不会拾取任何错误。
Rails服务器可以工作,但会生成以下错误:
/usr/local/Cellar/ruby/2.2.3/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'railties' (>= 0) among 17 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Us
我已经克隆了这个项目,还解决了许多与gems安装和其他配置相关的问题,但现在我被这个问题卡住了。
RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.14.6/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find mini_portile2-2.0.0 in any of the sources (Bundler::GemNotFound)
我已经尝试了很多次来安装这个gem,但是都没有用。当我尝试安装这个gem时,此消息显示
$ ge
开放式免责声明:我对这个问题所涉及的技术很熟悉。但是谷歌公司,她没有产出-a的水果。
我正在尝试将Rails应用程序部署到生产中。这个应用程序使用WEBRick运行得很好。我还使用AWS从S3检索数据。
我安装并设置了Nginx与乘客。当我点击页面时,我正在测试这个错误:
/home/ec2-user/.gem/ruby/2.0/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:223: `@@{' is not allowed as a class variable name
/home/ec2-user/.gem/ruby/2.0/gems/aw
我正在使用ruby gem实现LinkedIn登录,并在我的ruby on rails应用程序中获取详细信息。我正在尝试让用户管理页面。在javascript SDK中,我可以像这样找到它:
IN.API.Raw("/companies?format=json&is-company-admin=true")
但在使用ruby on rails时,我找不到任何与此相关的文档。
有没有什么办法可以用这个gem做到这一点?
安装ruby和divkit后,我在下载包时出错。这是一个ssl证书错误,我在网上尝试了几乎所有的解决方案,但都不起作用。
gem install json --platform=ruby
ERROR: Could not find a valid gem 'json' (>= 0), here is why: Unable to
download data from https://rubygems.org/ - SSL_connect returned=1 errno=0
state=SSLv3 read server certificate B: certif
我在Rails composer中使用rails-devise应用程序。在我尝试在控制台中与模型交互之前,一切看起来都很好。我尝试了以下命令:
rails console
User.all
我从控制台得到以下错误:
NameError: uninitialized constant User
from (irb):2
from /Users/msarr/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5.1/lib/rails/commands/console.rb:110:in `start'
from /Users/msarr/.rvm/gems/ru
我在获得正确的Ruby版本来加载一个项目时遇到了问题。我已经在rvm中安装了我需要的ruby版本,并使用rvm use 1.9.3设置了它,当我运行rvm list时,我得到了以下内容:
=> ruby-1.9.3-p547 [ x86_64 ]
* ruby-2.1.2 [ x86_64 ]
所以它看起来是正确的,但是当我尝试使用rails server运行这个项目时,我得到了以下内容:
Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3
下面是我的Gemfile:
source 'http://rubyg
我在安装wp扫描时遇到了问题,特别是在命令中:
sudo gem install bundler && bundle install --without test
返回:
WARNING: You don't have /root/.gem/ruby/2.3.0/bin in your PATH,
gem executables will not run.
Successfully installed bundler-1.12.4
Parsing documentation for bundler-1.12.4
Done installing docume
我正在尝试学习Jekyll,如果我输入以下命令
rake post title="Hello World"
我得到以下错误:
rake post title="My First Post"
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:296:in `to_specs': Could not find 'rake' (>= 0) among 11 total gem(s) (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8