标签: devkit

为pik安装的Rubies安装devkit

我用pik安装了两个红宝石,但我没有在pik外面安装任何红宝石.

当我选择使用pik的Ruby,然后尝试设置devkit时,没有二进制文件添加到生成的config.yml文件中:

# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example: …
Run Code Online (Sandbox Code Playgroud)

ruby windows pik devkit

5
推荐指数
1
解决办法
1909
查看次数

错误:无法在Windows上构建gem本机扩展

我在安装' redcarpet'gem 时遇到以下错误.它虽然在我的朋友机器上安装没有问题.(我想安装它来运行yard)Ruby版本:1.9.3

cmd输出:

D:\Learning\Common_POM_FW\SampleProjects>yard
[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`

D:\Learning\Common_POM_FW\SampleProjects>gem install redcarpet
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing redcarpet:
        ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe -r ./siteconf20141009-6544-978w4t.rb extconf.rb
creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems devkit

5
推荐指数
2
解决办法
2万
查看次数

Windows中的Ruby on Rails:安装DevKit时出错

我是ROR的新手,我正在尝试安装DevKit,但是我遇到了一些错误.我使用的是Win7-64bit,我安装了DevKit-mingw64-64-4.7.2-20130224-1432-sfx.我跟着github中的安装.老实说,错误不明确,我无法找到解决问题的方法.

 C:\Devkit>type config.yml
 This configuration file contains the absolute path locations of all
 installed Rubies to be enhanced to work with the DevKit. This config
 file is generated by the 'ruby dk.rb init' step and may be modified
 before running the 'ruby dk.rb install' step. To include any installed
 Rubies that were not automagically discovered, simply add a line below
 the triple hyphens with the absolute path to the Ruby root directory.

Example:
--
- C:/ruby19trunk
- C:/ruby192dev
--
c:/Ruby22 …
Run Code Online (Sandbox Code Playgroud)

gem ruby-on-rails devkit

5
推荐指数
1
解决办法
1340
查看次数

如何在Windows上安装mysql2 gem

我正在使用DevKit和XAMPP,现在我必须执行以下命令:

gem install mysql2 -v 0.2.6 --platform=ruby -- --with-mysql-dir="x:\Prog
ram Files\mysql-5.5.11-winx64" --with-mysql-lib="x:\Program Files\mysql-5.5.11-winx64\lib" --with-my
sql-include="x:\Program Files\mysql-5.5.11-winx64\include" --without-opt-dir
Run Code Online (Sandbox Code Playgroud)

但是,XAMPP 在其MySQL目录中不包含libinclude文件夹.我应该指定什么呢?

谢谢

windows rubygems ruby-on-rails devkit

3
推荐指数
1
解决办法
1万
查看次数

如何指定Devkit的路径?

我在Windows 7 x64上,我正在尝试从头开始安装Ruby on Rails.我刚刚安装了RubyInstaller 1.9.3-p429,现在刚刚运行了DevKit-tdm-32-4.5.2-20111229-1559-sfx.做完之后ruby dk.rb install --force.我试着测试它是否设置正确但遇到:

c:\DevKit>gem install RedCloth --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
The system cannot find the path specified.
ERROR:  Error installing RedCloth:
        ERROR: Failed to build gem native extension.

        C:/Ruby193/bin/ruby.exe extconf.rb
checking for main() in -lc... no
creating Makefile


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/RedCloth-4.2.9/ext/redcloth_scan/gem_make.out
Run Code Online (Sandbox Code Playgroud)

这种情况发生在需要Devkit的所有宝石上.我想我必须设置指定的路径,但我不知道这意味着什么.我该怎么做或这里真正的问题是什么?

PS

一点点背景.我确实安装了RailsInstaller但是我得到了同样的错误所以我删除了所有内容.我也安装了NodeJ,但也删除了.我完全删除了PATH变量,从头开始.

UPDATE

尝试RailsInstaller给了我这个错误:

$ …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails ruby-on-rails-3 devkit

3
推荐指数
1
解决办法
8586
查看次数

使用windows安装mysql2时出错

奇怪的是,我可以使用此命令安装mysql2: $ gem install mysql2 --platform=ruby -- '--with-mysql-lib="c:\Program Files\MySQL\MySQL Server 5.5\lib" --with-mysql-include="c:\Program Files\MySQL\MySQL Server 5.5\include"'以下是结果:

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.10
1 gem installed
Installing ri documentation for mysql2-0.3.10...
Installing RDoc documentation for mysql2-0.3.10...
Run Code Online (Sandbox Code Playgroud)

但是当我正在运行时bundle install(显然我需要安装很多宝石),它无法安装mysql2,所以bundle install停在那里,这真让我疯狂......任何人都可以帮忙吗?多谢了!以下是结果bundle install:

Installing mysql2 (0.3.8) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

        c:/Ruby192/bin/ruby.exe extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... …
Run Code Online (Sandbox Code Playgroud)

ruby mysql devkit

2
推荐指数
1
解决办法
3329
查看次数

在Win7中的ruby命令提示符上安装Rubygems时出错

尝试在Win7(32位)的Ruby命令提示符下安装rubygems时出现以下错误.请注意,我已经安装了Ruby1.9.3并将devkit(DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe)添加到Ruby中.

以下是我尝试过的所有事情:

 C:\devkit>ruby dk.rb init

 [INFO] found RubyInstaller v1.9.3 at C:/Ruby193

 Initialization complete! Please review and modify the auto-generated
 'config.yml' file to ensure it contains the root directories to all
 of the installed Rubies you want enhanced by the DevKit.

 C:\devkit>ruby dk.rb install

 [INFO] Updating convenience notice gem override for 'C:/Ruby193'
 [INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'

 C:\rubygems-1.8.24>ruby setup.rb install

 C:/rubygems-1.8.24/lib/rubygems/config_file.rb:53:in `sysconfdir': code converte
 r not found (UTF-16LE to Windows-1258) (Encoding::ConverterNotFoundError)
 from C:/rubygems-1.8.24/lib/rubygems/config_file.rb:53:in `<class:Config
 File>'
 from C:/rubygems-1.8.24/lib/rubygems/config_file.rb:30:in `<top (require
 d)>'
 from C:/rubygems-1.8.24/lib/rubygems/custom_require.rb:36:in `require' …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems devkit

2
推荐指数
1
解决办法
2570
查看次数

标签 统计

devkit ×7

ruby ×5

ruby-on-rails ×3

rubygems ×3

windows ×2

gem ×1

mysql ×1

pik ×1

ruby-on-rails-3 ×1