Articles of RubyGems的

安装curl-devel时依赖性问题

我想运行passenger-install-apache2-module所以我可以在CentOS 5.8上安装Redmine,但是passenger-install-apache2-module告诉我需要Curl development headers with SSL support ,它告诉我可以使用yum install curl-devel ,但是,当我运行时,我得到以下结果: Loaded plugins: fastestmirror, priorities, protectbase Loading mirror speeds from cached hostfile * base: ftp.pbone.net * extras: ftp.pbone.net * remi: remi-mirror.dedipower.com * updates: ftp.pbone.net 120 packages excluded due to repository priority protections 0 packages excluded due to repository protections Setting up Install Process Resolving Dependencies […]

如何validationPostgreSQL 9已经在CentOS服务器上正确安装?

我试图在CentoOS服务器上安装PG(postgres)gem,但是它一直说Postgres太旧了,即使我把它升级到了9.1.3(按照这里的说明http://www.davidghedini。 com / pg / entry / install_postgresql_9_on_centos )。 我正在使用CentOS 5.8(和Ruby 1.9.3) 这是错误消息: Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking for pg_config… yes Using config values from /usr/bin/pg_config checking for libpq-fe.h… yes checking for libpq/libpq-fs.h… yes checking for pg_config_manual.h… yes […]

在Windows系统上,我应该在哪里放置gemrc文件,以便Puppet可以find它?

运行木偶企业3.7 。 代理机器是Windows 2012 Server R2机器。 问题:我在哪里放置gemrc文件,以便Puppet的内部ruby可以find它? 在Linux上,放置文件的地方似乎是/ opt / puppet / etc / gemrc 。 目标 :指导puppet不要在rubygems.org上查看Gem,而是看看我们的内部Gemserver。

在64位CentOS上安装Mysql Ruby gem

我在64位CentOS机器上安装mysql ruby​​ gem时出现问题。 [jacekb@vitaidealn ~]$ uname -a Linux vitaidealn.local 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux 安装了Mysql和mysql-devel软件包。 Mysql_config提供以下path: Usage: /usr/lib64/mysql/mysql_config [OPTIONS] Options: –cflags [-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector –param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv] –include [-I/usr/include/mysql] –libs [-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto] […]

是删除〜/ .rvm /所有我需要执行干净的重新安装

我在〜/ .rvm /下安装了ruby和gems,现在我想重新安装所有的东西。 有没有修改/链接生活在这个文件夹之外? 所以,通过删除文件夹〜/ .rvm /可以重新开始吗?

在Ubuntu的服务器上的memcache明确和ruby1.9.1

我正在尝试在上面的设置上设置一个memcache服务器。 我收到以下错误: /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:443:in `load_missing_constant': uninitialized constant MemCache (NameError) from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing_with_dependencies' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing' from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:18:in `<class:MemcacheQueueClient>' from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:14:in `<module:Clients>' from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:13:in `<module:Workling>' from /root/voicegateway/vendor/plugins/workling/lib/workling/clients/memcache_queue_client.rb:12:in `<top (required)>' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `block in require' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require' from /root/voicegateway/vendor/plugins/workling/lib/workling/remote/runners/client_runner.rb:2:in `<top (required)>' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `block in require' from /var/lib/gems/1.9.1/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in […]

rvm版本切换后,gem install rails上的zlib错误

(Debian挤)rvm版本:1.10.0 我刚刚使用“rvm install 1.9.2”安装了ruby 1.9.2-p290,并将其设置为默认值。 但是,当我试图用rubygems安装rails时出现这个错误。 “gem install rails”在我的系统ruby安装上工作的很好。 root:/ usr / bin#rvm list rvmruby => ruby​​-1.9.2-p290 [i686] root:/ usr / bin#rvm current ruby​​-1.9.2-p290 root:/ usr / bin#gem list *本地GEMS * root:/ usr / bin#gem install rails错误:加载命令:install(LoadError)no load file – zlib 错误:执行gem时(NameError)未初始化常量Gem :: Commands :: InstallCommand 我已经尝试了在这个其他页面上的说明: https ://stackoverflow.com/questions/2441248/rvm-ruby-1-9-1-troubles,(apt-get install zlib,在rvm上重新安装1.9.2),但这似乎没有工作。 任何想法可能是根本问题?

在轨道上的ruby在Ubuntu的gitorious设置

我一直在试图安装gitorious一段时间,这需要ruby和铁轨等我终于得到了轨道页面服务,但不能完成gitorious安装,因为gem版本太新了。 错误日志说 请运行'rake ultrasphinx:configure' 并给出 rake ultrasphinx:configure (in /var/www/apps/gitorious) rake aborted! uninitialized constant ActiveSupport::Dependencies::Mutex /var/www/apps/gitorious/Rakefile:10:in `require' (See full trace by running task with –trace) 从谷歌search这是因为错误的gem版本。 找不到降级的方法。 显然sudo gem update –system 1.4.2应该做的伎俩,但Ubuntu 10.10不喜欢这个。 错误:在执行gem时(RuntimeError),在Debian上禁用了gem update –system,因为它会覆盖rubygems Debian软件包的内容,并可能以微妙的方式破坏Debian系统。 Debian支持的更新rubygems的方式是通过apt-get,使用Debian官方仓库。 如果你真的知道你在做什么,你仍然可以通过设置REALLY_GEM_UPDATE_SYSTEM环境variables来更新rubygems,但请记住这完全不被Debian支持。 所以我添加了export REALLY_GEM_UPDATE_SYSTEM=1到.bashrc并重新加载它。 〜/ .bashrc仍然一样。 我试过各种forms的设置这个环境variables没有运气。 我也被告知#gitorious irc频道添加文件config / initializers / ruby​​gems.rb与行require "thread" 。 这没有做任何事情。 编辑:刚刚find另一种方式是rvm install rubygems […]

ActiveAdmin用户pipe理

我是Ruby on Rails的新手。 我正在使用ActiveAdmin进行pipe理。 我已经search了很多关于“如何pipe理pipe理员用户”,例如,将默认用户名密码从[email protected]和password为其他内容。 或者如何添加额外的pipe理员用户,并给他们特定的权限给特定的pipe理员用户。 我真的很感激任何帮助/提示,​​你可以提供可以让我开始。

在ruby企业版使用gem timeout.rb中的segfault(ree-1.8.7)

我试图在我的新的Ubuntu 12.10(GNU / Linux的3.6.5-x86_64-linode28 x86_64)服务器上安装一个gem,我得到了timeout.rb中的段错误。 我已经安装了rvm和ree,并在尝试使用安装gem时得到这个错误: bsoule@ainslie:~$ gem update –system /usr/local/rvm/rubies/ree-1.8.7-2012.02/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02