- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
我是 Ruby 的新手。我安装了 DataMapper 并且正在尝试安装 dm-mysql-adapter-1.0.2 gem 。但是当我尝试安装时,出现以下错误。我正在使用 ubuntu 操作系统。
vinoth@vinoth-laptop:~/Downloads$ gem install dm-mysql-adapter-1.0.2 -- --with-mysql- lib=/usr/lib/mysql -- --with-mysql-conf=/usr/bin/mysql
WARNING: Installing to ~/.gem since /home/vinoth/gems and
/home/vinoth/gems/bin aren't both writable.
WARNING: You don't have /home/vinoth/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing dm-mysql-adapter-1.0.2:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb --with-mysql-lib=/usr/lib/mysql -- --with-mysql- conf=/usr/bin/mysql
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
- ........
Gem files will remain installed in /home/vinoth/.gem/ruby/1.8/gems/do_mysql-0.10.2 for inspection.
Results logged to /home/vinoth/.gem/ruby/1.8/gems/do_mysql-0.10.2/ext/do_mysql/gem_make.out
我错过了什么吗?
附加信息。
Ruby 版本:ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
gem 版本:1.3.5
最佳答案
您需要安装 mysql 开发包:
sudo apt-get install libmysqlclient-dev
应该做的事
关于ruby - 安装 dm-mysql-adapter 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4661337/
通过反复试验,我发现GetPixel函数接受两个参数,一个用于 X,一个用于 Y,即使用于一维图像。在 1D 图像上,第二个索引必须设置为零。 image list := [3]: {1,2,3} l
除了 Funambol 或实现 OMA DM 的库之外,您是否知道任何 OMA DM 服务器的开源实现? 最佳答案 您可能想尝试一下OMA-DM simulator由 Koneki(Eclipse 开
我想计算给定ROI的曲线下面积,如附图,我想得到13到30的绿色曲线下面积,能否通过DM脚本实现这个功能? 以前从未做过类似的事情,任何建议谢谢! 最佳答案 如果图像是标签“A”,那么您可以简单地执行
我有两个模型:论坛应用程序中的帖子和图像,其中帖子使用 dm-is-tree 以父子格式排列。到目前为止,图像是 Post 模型的一部分。由于 Post 模型变得笨拙,我需要增加更多深度来标记图像,我
全部:我想构造一个函数。返回值的类型可能有两种可能:数字或字符串。起初,我以为可以使用重载函数(参见代码)。但这个函数必须有不同类型的输入。所以下面的代码会出错。有没有可行且简单的方法来解决这个问题?
要在 SAS 中打开表,我们可以使用 DM“VT {tablename}”命令。 关闭可视窗口的等效命令是什么??? 最佳答案 嗯...这个命令将关闭可视化窗口(用你的数据替换 {libref.dat
我正在尝试抓取我的 Instagram DM(直接消息)。但是,我不知道如何自动向下滚动该列以获取向我发送消息的其他用户名。我试过了 this ,以及滚动代码listed here . 但是,两者都不
我对 Blueprint 和 Spring DM 有点困惑: 据我认为的真实情况: Spring DM 是 Spring Source 定义的框架 Blueprint 是 OSGi 联盟定义的框架 B
是否有任何程序或任何控制台脚本可以监听麦克风输入,并且当噪音超过 db 中的某个阈值时,会播放音频文件? 最佳答案 需要考虑的一件事是,当使用 sox(例如使用 rec)录制时,sox 会输出一个文本
我正在尝试为我的机器人创建一个 VA 培训部分,它应该向我发送他们要求的培训类型。但是我碰壁了,不知道从这里该往哪里走。 我在网上寻找解决方案,但没有找到适合我的解决方案 if (cmd === `$
我开始研究 osgi 的主要目的是完成我面前的任务。基本上我将能够分发基于 Web 的应用程序并单独构建整个 Web 应用程序的特定功能,这样我就可以在 A 部署具有功能 a、b、c 的 Web 应用
vbs调用插件报:ActiveX部件不能创建对象,代码:800A01AD 报错如下图: 解决方法需要两步: 第一步改注册表: HKEY_CLASSES_ROOT\VBSFile\S
我正在寻找一个非常基本的配置示例。我有一个wap设置文件,我只想使用它来配置设备。 我正在寻找具有此功能的示例的API? 最佳答案 尝试S60 Platform: OMA Client Provisi
例如,当有人私信我的机器人时,它会说“你好”或“你为什么要私信机器人......?”我用这段代码试过了: @client.event async def on_message(message: dis
为了在SI图像中进行漂移校正,如下图所示: 我写代码: number max_shift=5 image src := GetFrontImage() number sx, sy, sz src.Ge
试图让我的机器人回复私信“这是一个私信”,但没有成功,这是我的代码: @client.event async def on_message(message): if message.guild
试图让我的机器人回复私信“这是一个私信”,但没有成功,这是我的代码: @client.event async def on_message(message): if message.guild
我需要等待一段时间才能关闭 OSGI 上下文。(给一些时间来完成当前正在运行的任务)。我在 extenderProperties bean 中遇到了 shutdown.wait.time 属性。 谁能
我在向特定人员发送 PM 时遇到了一些问题。我知道如何向消息的作者发送 DM。但是,我希望尝试将 DM 直接发送给特定的人。 async run(message, args) { if (ar
按照 Heroku 网站上的说明,我安装了 Postgress.app,安装了 pg gem,安装了 data_mapper,一切都很顺利。最后,尝试安装 dm-sqlite-adapter 并得到这
我是一名优秀的程序员,十分优秀!