AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题

问题[rails](ubuntu)

Martin Hope
cbll
Asked: 2015-06-21 23:18:59 +0800 CST

RVM 安装错误

  • 1

试图启动一个 Rails 环境,但它不会工作。我在这里关注installfest指南。步骤 1 和 2 有效;但是,curl -L get.rvm.io | bash -s stable终端命令为我提供了

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
XXX@XXX:~$ source ~/.rvm/scripts/rvm
-bash: /home/flyveren/.rvm/scripts/rvm: No such file or directory
XXX@XXX:~$ \curl -sSL https://get.rvm.io | bash -s stable
curl: (77) error setting certificate verify locations:
  CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none

在此之后,type rvm | head -1将给出 的输出-bash: type: rvm: not found,这意味着安装根本不起作用。

这些步骤看起来相当简单,但有些地方是非常错误的。

Ubuntu 14.04、Gnome 3环境

rails
  • 2 个回答
  • 664 Views
Martin Hope
Alex
Asked: 2011-01-20 09:39:25 +0800 CST

sqlite-ruby gem问题

  • 3

我正在尝试让我的 ruby​​ on rails 启动并运行,但我似乎无法安装 sqlite3-ruby gem 。当我运行它时,我收到此错误:

获取: sqlite-ruby-2.2.3.gem (100%) 构建原生扩展。这可能需要一段时间... 错误:安装 sqlite-ruby 时出错:错误:无法构建 gem 原生扩展。

/usr/bin/ruby1.8 extconf.rb 检查 -lsqlite 中的 main()... 不检查 sqlite.h... 否 * extconf.rb 失败 *由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。检查 mkmf.log 文件以获取更多详细信息。您可能需要配置选项。

任何解决方案?

rails
  • 2 个回答
  • 1085 Views
Martin Hope
Albert Montoya
Asked: 2010-12-20 00:04:20 +0800 CST

如何将 Ruby on Rails 配置为始终使用 mySQL 作为默认数据库?

  • 1

如何将 Ruby on Rails 配置为始终使用 mySQL 作为默认数据库?

我是一个新手,我刚刚安装了 Ruby on Rails 和 mySQL,默认情况下ROR使用 sqlite3,但是当我将 db 文件配置为使用 mysql 而不是 sqlite3 时,它会出现各种错误。

我尝试安装 ruby​​ mySQL gem,但仍然有更多错误。我应该重新安装 Ubuntu 吗?我目前使用的是 10.10 版。

programming mysql ruby rails
  • 1 个回答
  • 384 Views
Martin Hope
huug
Asked: 2010-11-27 12:05:43 +0800 CST

是否有用于 gedit 的 ruby​​ 语法验证插件?

  • 3

我正在使用https://github.com/gmate/gmate设置,但它缺少 ruby​​ 语法验证插件。

我在哪里可以找到一个?

天呐!

plugins gedit ruby rails
  • 1 个回答
  • 529 Views
Martin Hope
rifferte
Asked: 2010-10-16 16:44:10 +0800 CST

如何设置 Ruby on Rails?

  • 14

我有兴趣在我的 10.10 笔记本电脑上设置 Ruby on Rails 环境。

安装时我需要记住什么特别的东西(即,这可能是新的或 10.10 独有的)?

有没有我可以遵循的建议演练?

提前致谢。

ruby rails installation
  • 7 个回答
  • 3527 Views
Martin Hope
Ciaran Archer
Asked: 2010-09-15 11:11:11 +0800 CST

如何解决 Ruby on Rails ImageMagick 冲突?

  • 2

我正在尝试在Ubuntu 10.04 LTS 上安装refinerycms,这是一个Ruby on Rails CMS。我跑rails server了,我得到以下异常:

carcher@carcher-laptop:~/Code/tgc$ rails server
=> Booting WEBrick
=> Rails 3.0.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
Exiting
/usr/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMagick2.so: This installation of RMagick was configured with ImageMagick 6.6.4 but ImageMagick 6.5.7-8 is in use. (RuntimeError)
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/rmagick-2.12.2/lib/RMagick.rb:11
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/analysis/r_magick_analyser.rb:1
 from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/config/r_magick.rb:15:in `apply_configuration'
 from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/configurable.rb:33:in `configure'
 from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/config/r_magick.rb:14:in `apply_configuration'
 from /usr/lib/ruby/gems/1.8/gems/dragonfly-0.7.6/lib/dragonfly/configurable.rb:39:in `configure_with'
 from /usr/lib/ruby/gems/1.8/gems/refinerycms-0.9.8.2/vendor/refinerycms/images/lib/images.rb:10
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `instance_exec'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in `run'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:50:in `run_initializers'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `each'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in `run_initializers'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:134:in `initialize!'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in `send'
 from /usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in `method_missing'
 from /home/carcher/Code/tgc/config/environment.rb:5
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in `new_constants_in'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:in `load_dependency'
 from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `require'
 from /home/carcher/Code/tgc/config.ru:3
 from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
 from /usr/lib/ruby/gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
 from /home/carcher/Code/tgc/config.ru:1:in `new'
 from /home/carcher/Code/tgc/config.ru:1
carcher@carcher-laptop:~/Code/tgc$ 

我按照此处的说明从源代码构建并安装了 ImageMagick 6.6.4,在此之前我删除了 Ubuntu 中预安装的 ImageMagick 工具,以避免任何冲突。但我似乎仍然有这个版本 6.5.7。

我想我的问题是如何删除/禁用ImageMagick 6.5.7-8?

10.04 configuration ruby rails
  • 2 个回答
  • 2322 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve