捆绑安装 mysql时发生错误:
我有工作台和服务器,我可以连接到它,所以这不是问题.
Installing MysqL (2.8.1) with native extensions /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:551:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Instal ler::ExtensionBuildError)

        /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb  checking for MysqL_query() in -lMysqLclient... no checking for main() in -lm... yes checking for MysqL_query() in -lMysqLclient... no checking for main() in -lz... yes checking for MysqL_query() in
-lMysqLclient... no checking for main() in -lsocket... no checking for MysqL_query() in -lMysqLclient... no checking for main() in -lnsl... yes checking for MysqL_query() in -lMysqLclient... no checking for main() in -lmygcc... no checking for MysqL_query() in -lMysqLclient... no
*** 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=/home/ahmet/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
        --with-MysqL-config
        --without-MysqL-config
        --with-MysqL-dir
        --without-MysqL-dir
        --with-MysqL-include
        --without-MysqL-include=${MysqL-dir}/include
        --with-MysqL-lib
        --without-MysqL-lib=${MysqL-dir}/lib
        --with-MysqLclientlib
        --without-MysqLclientlib
        --with-mlib
        --without-mlib
        --with-MysqLclientlib
        --without-MysqLclientlib
        --with-zlib
        --without-zlib
        --with-MysqLclientlib
        --without-MysqLclientlib
        --with-socketlib
        --without-socketlib
        --with-MysqLclientlib
        --without-MysqLclientlib
        --with-nsllib
        --without-nsllib
        --with-MysqLclientlib
        --without-MysqLclientlib
        --with-mygcclib
        --without-mygcclib
        --with-MysqLclientlib
        --without-MysqLclientlib


Gem files will remain installed in /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/MysqL-2.8.1 for inspection. Results logged to /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/MysqL-2.8.1/ext/MysqL_api/gem_make.out
        from /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:529:in `block in build_extensions'
        from /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `each'
        from /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:504:in `build_extensions'
        from /home/ahmet/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/source.rb:101:in `block in install'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/source.rb:91:in `install'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/installer.rb:58:in `block (2 levels) in run'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/installer.rb:57:in `block in run'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/installer.rb:49:in `run'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/installer.rb:8:in `install'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/cli.rb:220:in `install'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/vendor/thor/task.rb:22:in `run'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/vendor/thor.rb:263:in `dispatch'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/lib/bundler/vendor/thor/base.rb:386:in `start'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.16/bin/bundle:13:in `<top (required)>'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `load'
        from /home/ahmet/.rvm/gems/ruby-1.9.2-p290/bin/bundle:19:in `<main>'
在安装MysqL gem之前安装以下.
sudo apt-get install MysqL-server MysqL-client
sudo apt-get install libMysqL-ruby libMysqLclient-dev

在Ubuntu上使用ruby在rails上安装MySQL [ERROR]的更多相关文章

  1. ios – ipatool无法使用bitcode构建(xcode 7.1.1)

    在日志中我发现的是:有小费吗?解决方法在管理器上单击“分发应用程序”后,我在XCode10.1上遇到了同样的问题.在我的情况下,这是因为我从我的终端调用XCode并且rvm配置了不同的ruby版本.运行rvm系统为我修复了它.

  2. XCode 3.2 Ruby和Python模板

    在xcode3.2下,我的ObjectiveCPython/Ruby项目仍然可以打开更新和编译,但是你无法创建新项目.鉴于xcode3.2中缺少ruby和python的所有痕迹(即创建项目并添加新的ruby/python文件),是否有一种简单的方法可以再次安装模板?我发现了一些关于将它们复制到某个文件夹的信息,但我似乎无法让它工作,我怀疑文件夹的位置已经改变为3.2.解决方法3.2中的应用程序模板

  3. ios – 为具有多个目标和不同平台的项目编写Podfile

    如何让CocoaPods成功整合到我的项目和iOS/Mac目标?我已经阅读了Podfile文档,但发现它在这方面缺乏.解决方法得到它了!从我的每个目标和运行的pod安装中删除libPods-xxxx.a文件,再次执行了我的目标集成.

  4. ios – 从Xcode Cocapods插件运行pod安装

    我正在尝试从Xcodecocoapodsplugin运行pod安装命令.当我运行update/installcocoapods命令我得到一个错误:这是奇怪的,如果我去终端中的目录,并运行一个pod安装我没有问题.要注意的是,错误是指Ruby2.0.0,而当我从终端中的目录运行ruby-v命令时,我得到(ruby1.9.3p327(2012-11-10修订版37606)[x86_64-darwin1

  5. 从iOS应用程序发送帖子到PHP脚本不工作…简单的解决方案就像

    我之前已经做了好几次了但是由于某些原因我无法通过这个帖子…我尝试了设置为_POST且没有的变量的PHP脚本……当它们未设置为发布时它工作精细.这是我的iOS代码:这里是PHP的一大块,POST变量不在正确的位置?我想这对于更有经验的开发人员来说是一个相当简单的答案,感谢您的帮助!解决方法$_POST是一个数组,而不是一个函数.您需要使用方括号来访问数组索引:

  6. ios – 如何修复pods许可证文件错误

    当我输入要么我为一个库获得以下内容:无法读取许可证文件/Users/me/Documents/project/myproject/company/myproduct/Pods/OHAttributedLabel/OHAttributedLabel/LICENSEforthespecOHAttributedLabel(3.5.3)有谁知道为什么?我被建议:无济于事解决方法TL;DRIt’sRuby2

  7. Swift中实现ruby中字符串乘法倍增的功能

    hopy;)我们知道在ruby中对于字符串类型我们可以用乘法生成一个指定数量重复的字符串:但在Swift中String默认是没有该实现的,不过要想实现该方法也十分之简单,只要定义一个*法操作符就可以了:

  8. Project Perfect让Swift在服务器端跑起来-让Perfect更Rails (五)

    让大家看看我对Perfect的改造。再说说Perfect的运行原理。其实当用户发送请求时,都是首先找到PerfectServerModuleInit()这个方法,根据指定规则去找对应的Handlers,之后通过Handlers的方法handleRequest去处理相对应的事务处理。其实handleRequest很接近我们的Controller,如果做成一个类似Rails的框架不是不可能的。首先我要扩展一下PerfectLib中的WebRequest和WebResponse这两个方法,针对WebReques

  9. android – 用我非常简单的calabash测试用例不断得到错误“HTTPClient :: ReceiveTimeoutError”

    我是calabash-android测试自动化库的新手.我花了两天时间来理解这个问题没有成功:(我正在使用calabash-android版本0.8.0,我按照文档pre-definedsteps进行测试.我的测试很简单,只需等待登录界面(这是一个包含id为“email_field”的输入字段的活动),输入用户名和密码.这是我在功能文件中的步骤:当我使用命令calabash-android运行my

  10. Android – 将SQLite与MySQL同步的最佳方式

    参见英文答案>Synchronizingclient-serverdatabases5个我正在开发一个包含网络应用和移动应用程序的项目,该应用程序记录每日用户的数据.用户可以删除,更新他们的数据,他们可以使用许多设备插入数据.我打算这样开发:用户输入他们的数据然后插入sqlite.服务将定期启动(每5小时或每小时)以使用时间戳与MysqL同步.我确实在互联网上使用服务和时间戳搜索了一个样本,但我一

随机推荐

  1. crontab发送一个月份的电子邮件

    ubuntu14.04邮件服务器:Postfixroot收到来自crontab的十几封电子邮件.这些邮件包含PHP警告.>我已经解决了这些警告的原因.>我已修复每个cronjobs不发送电子邮件(输出发送到>/dev/null2>&1)>我删除了之前的所有电子邮件/var/mail/root/var/spool/mail/root但我仍然每小时收到十几封电子邮件.这些电子邮件来自cronjobs,

  2. 模拟两个ubuntu服务器计算机之间的慢速连接

    我想模拟以下场景:假设我有4台ubuntu服务器机器A,B,C和D.我想在机器A和机器C之间减少20%的网络带宽,在A和B之间减少10%.使用网络模拟/限制工具来做到这一点?

  3. ubuntu-12.04 – 如何在ubuntu 12.04中卸载从源安装的redis?

    我从源代码在Ubuntu12.04上安装了redis-server.但在某些时候它无法完全安装,最后一次makeinstallcmd失败.然后我刚刚通过apt包安装.现在我很困惑哪个安装正在运行哪个conf文件?实际上我想卸载/删除通过源安装的所有内容,只是想安装一个包.转到源代码树并尝试以下命令:如果这不起作用,您可以列出软件自行安装所需的步骤:

  4. ubuntu – “apt-get source”无法找到包但“apt-get install”和“apt-get cache”可以找到它

    我正在尝试下载软件包的源代码,但是当我运行时它无法找到.但是当我运行apt-cache搜索squid3时,它会找到它.它也适用于apt-getinstallsquid3.我使用的是Ubuntu11.04服务器,这是我的/etc/apt/sources.list我已经多次更新了.我尝试了很多不同的debs,并没有发现任何其他地方的错误.这里的问题是你的二进制包(deb)与你的源包(deb-src)不

  5. ubuntu – 有没有办法检测nginx何时完成正常关闭?

    &&touchrestarted),因为即使Nginx没有完成其关闭,touch命令也会立即执行.有没有好办法呢?这样的事情怎么样?因此,pgrep将查找任何Nginx进程,而while循环将让它坐在那里直到它们全部消失.你可以改变一些有用的东西,比如睡1;/etc/init.d/Nginx停止,以便它会休眠一秒钟,然后尝试使用init.d脚本停止Nginx.你也可以在某处放置一个计数器,这样你就可以在需要太长时间时发出轰击信号.

  6. ubuntu – 如何将所有外发电子邮件从postfix重定向到单个地址进行测试

    我正在为基于Web的应用程序设置测试服务器,该应用程序发送一些电子邮件通知.有时候测试是使用真实的客户数据进行的,因此我需要保证服务器在我们测试时无法向真实客户发送电子邮件.我想要的是配置postfix,以便它接收任何外发电子邮件并将其重定向到一个电子邮件地址,而不是传递到真正的目的地.我正在运行ubuntu服务器9.10.先感谢您设置本地用户以接收所有被困邮件:你需要在main.cf中添加:然后

  7. ubuntu – vagrant无法连接到虚拟框

    当我使用基本的Vagrantfile,只配置了两条线:我看到我的虚拟框打开,但是我的流氓日志多次显示此行直到超时:然后,超时后的一段时间,虚拟框框终于要求我登录,但是太久了!所以我用流氓/流氓记录.然后在我的物理机器上,如果我“流氓ssh”.没有事情发生,直到:怎么了?

  8. ubuntu – Nginx – 转发HTTP AUTH – 用户?

    我和Nginx和Jenkins有些麻烦.我尝试使用Nginx作为Jenkins实例的反向代理,使用HTTP基本身份验证.它到目前为止工作,但我不知道如何传递带有AUTH用户名的标头?}尝试将此指令添加到您的位置块

  9. Debian / Ubuntu – 删除后如何恢复/ var / cache / apt结构?

    我在ubuntu服务器上的空间不足,所以我做了这个命令以节省空间但是现在在尝试使用apt时,我会收到以下错误:等等显然我删除了一些目录结构.有没有办法做apt-getrebuild-var-tree或类似的?

  10. 检查ubuntu上安装的rubygems版本?

    如何查看我的ubuntu盒子上安装的rubygems版本?只是一个想法,列出已安装的软件包和grep为ruby或宝石或其他:)dpkg–get-selections

返回
顶部