我在

Windows7中安装了

Ruby版本的ruby 1.9.2p0(2010-08-18)[i386-mingw32].

和宝石血统1.3.7

当我试图安装mysql gem时,显示无法构建gem本机扩展错误,为什么会这样?我的mysql版本是5.1.36(WampServer)

E:\RubyApps\test_app2>gem install mysql2

Building native extensions. This could take a while...

ERROR: Error installing mysql2:

ERROR: Failed to build gem native extension.

E:/Ruby192/bin/ruby.exe extconf.rb

checking for rb_thread_blocking_region()... *** extconf.rb failed ***

Could not create Makefile due to some reason,probably lack of

necessary libraries and/or headers. Check the mkmf.log file for more

details. You may need configuration options.

Provided configuration options:

--with-opt-dir

--without-opt-dir

--with-opt-include

--without-opt-include=${opt-dir}/include

--with-opt-lib

--without-opt-lib=${opt-dir}/lib

--with-make-prog

--without-make-prog

--srcdir=.

--curdir

--ruby=E:/Ruby192/bin/ruby

E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to genera

te an executable file. (RuntimeError)

You have to install development tools first.

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:435:in `try_link0'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:440:in `try_link'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:552:in `try_func'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:797:in `block in have_func'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:693:in `block in checking_for'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block (2 levels) in postp

one'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:280:in `block in postpone'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:254:in `open'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:276:in `postpone'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:692:in `checking_for'

from E:/Ruby192/lib/ruby/1.9.1/mkmf.rb:796:in `have_func'

from extconf.rb:9:in `'

Gem files will remain installed in E:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.

2.3 for inspection.

Results logged to E:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql2-0.2.3/ext/mysql2/ge

m_make.out

E:\RubyApps\test_app2>

ruby gem 安装mysql2_Ruby gem mysql2安装错误相关推荐

  1. checking for mysql_commit in -lmy_安装mysql gem for ruby和jruby gem

    我的机器上安装了jruby mysql gem.但是,出于某种原因,我不得不改为ruby而不是jruby,而且除了没有安装mysql gem for ruby之外,一切似乎都正常工作,现在当我尝试安装 ...

  2. brew 安装mysql5.6_MacOS 10.14安装和brew更新后无法安装mysql gem

    在macOS 10.14安装Brew更新后,我的开发系统坏了. 我无法安装mysql gem.在尝试安装时,我得到: $gem install mysql -v '2.8.1' --source 'h ...

  3. 尝试安装pg gem时找不到#39;libpq-fe.h标头

    我正在使用Ruby on Rails 3.1预版本. 我喜欢使用PostgreSQL,但问题是安装pg gem. 它给了我以下错误: $ gem install pg Building native ...

  4. MAC中安装 sudo gem install cocoapods 报错 Building native extensions. This could take a while...

    原文地址声明:https://blog.csdn.net/qq_23179075/article/details/104819430 在MAC中安装 sudo gem install cocoapod ...

  5. ruby mysql 驱动_windows下Rails安装MySql驱动的配置

    1.安装ruby 这我就不废话了,安装很简单,网上资料也很多. 安装完后再环境变量path里加入D:ruby\bin(视你的安装路径了) 安装完后在命令行输入ruby -v, 会显示版本号,表示安装成 ...

  6. Ruby on Rails的下载及安装以及开发环境的搭建

    要基于ruby开发应用程序,我们必须安装ruby.gem.rails.mongrel. 第一,到官方网站上下载最新的Ruby One-Click Installer版本(已经自带了RubyGems,一 ...

  7. typo(ruby的开源blog)系统的安装

    1.要求安装ruby1.8.3以上,并且需要安装rails,版本也要匹配好,否则会出错.(下文用typo4.1和rails1.2.3安装成功) 2.下载并安装typo,gem install typo ...

  8. Ubuntu 13.10 安装软件失败后出现的问题——已安装 post-installation 脚本 返回了错误号 1...

    安装Oracle-java7-installer失败后,再次重新安装后出现错误-- dpkg: error processing oracle-java7-installer (--configure ...

  9. 【错误归纳】E: Sub-process /usr/bin/dpkg returned an error code (1)子进程 已安装 post-installation 脚本 返回了错误号 1

    问题描述 我在使用apt-get install 安装某个程序的时候出现了下面的错误提示: 正在设置 anydesk (5.1.1) ...System start/stop links for /e ...

最新文章

  1. 【强哥推荐】VSCode常用快捷键配置文件表,记得收藏
  2. sql查询父节点所有子节点id_5招搞定SQL棘手问题,同事看到直呼“内行”
  3. xcode选择活动的开发人员目录错误
  4. Linux — OpenSSH 安全的远程连接
  5. 数据处理算法链接 DATA MINING GA LINK
  6. syslog可能引起得问题_牙齿经常有问题?可能是这4个坏习惯引起的,要改正
  7. 基于linux实现DNS互联网的搭建
  8. 【Elasticsearch】使用Elasticsearch 7.8 快速搭建食谱搜索系统
  9. count函数_计数函数Count、Counta、Countblank、Countif、Countifs技巧解读
  10. 已加密的PDF怎么解密?只要学会这两招即可轻松解密
  11. 新势力盯上了“新能源车险”
  12. 电信吉比特光纤猫虚拟服务器设置,吉比特光纤猫内置wifi怎样设置上网
  13. Ansys APDL的超声换能器的模态分析(更新中)
  14. 数据结构导论 — (自考)
  15. k8s教程01(k8s环境配置及私有仓库搭建)
  16. css外联式6,css样式内联式,外联式,嵌入式的格式是什么?
  17. Redis Cluster集群
  18. JSP+MYSQL网上作业提交及管理系统
  19. 虚拟机怎么装服务器系统教程视频,云服务器装虚拟机教程视频
  20. 20170421康拓普面试题

热门文章

  1. android studio安装教程完整,Android Studio 安装配置方法完整教程【小白秒懂】
  2. 关于配置环境变量相关解答
  3. OJ1069: 向Z同学学习
  4. 猪场管理网站php,某养猪场网站整站 v1.1
  5. 信息学奥赛一本通 1073:救援 | OpenJudge NOI 1.5 19:救援
  6. 信息学奥赛一本通 1033:计算线段长度 | OpenJudge NOI 1.3 16
  7. Not Wool Sequences(CF-239C)
  8. 基础算法 —— 高精度计算 —— Java 大数类
  9. 活动安排问题(51Nod-1428)
  10. Ranking the Cows(POJ-3275 )