gpt4 book ai didi

ruby-on-rails - gem install ruby​​-odbc -v '0.99995' 无法在 ubuntu 11.10 上安装

转载 作者:太空宇宙 更新时间:2023-11-03 17:00:07 24 4
gpt4 key购买 nike

我在安装 gem ruby​​-odbc -v'0.99995' 时没有收到错误。请帮我解决这个错误。我尝试了很多方法,但都没有用。

Building native extensions.  This could take a while...
ERROR: Error installing ruby-odbc:
ERROR: Failed to build gem native extension.

/home/sheetal/.rvm/rubies/ruby-1.8.7-p371/bin/ruby extconf.rb
checking for version.h... yes
checking for sql.h... 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/sheetal/.rvm/rubies/ruby-1.8.7-p371/bin/ruby
--with-odbc-dir
--without-odbc-dir
--with-odbc-include
--without-odbc-include=${odbc-dir}/include
--with-odbc-lib
--without-odbc-lib=${odbc-dir}/lib
ERROR: sql.h not found

我正在使用 ruby​​ 1.8.7 和 rails2

最佳答案

您是否尝试过安装 unix odbc 开发文件?

sudo apt-get install unixodbc-dev

关于ruby-on-rails - gem install ruby​​-odbc -v '0.99995' 无法在 ubuntu 11.10 上安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17269947/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com