gpt4 book ai didi

ruby-on-rails - RoR 安装 : Run 'bundle install' not working?

转载 作者:行者123 更新时间:2023-12-04 06:15:49 26 4
gpt4 key购买 nike

在尝试在 Ubuntu 10.10 上运行第一个项目时,我得到了这个:

antonio@antonio-desktop:~/Documents/tickets$./script/rails server
Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.

好吧,后来我写:
antonio@antonio-desktop:~/Documents/tickets$ bundle install

并在安装过程中得到这个:
        /usr/bin/ruby1.8 extconf.rb 
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite3-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** 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.

所以,我试过这个:
 sudo yum install sqlite3-devel

得到了这个:
 Setting up Install Process
No package sqlite3-devel available.
Nothing to do

为什么?我正在运行 Rails 3.1,顺便说一句。

最佳答案

试试:sudo apt-get install libsqlite3-dev

关于ruby-on-rails - RoR 安装 : Run 'bundle install' not working?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7264199/

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