Articles of ruby

Redhat for Ruby 1.8.7有一个可靠的RPM源代码吗?

我看了,但我无法find最新的1.8.X版本的Ruby的RPM源。 那里有一个吗? 这是在服务器上运行一些pipe理脚本,而不是托pipe基于Ruby的网站,所以它不是任务关键,但服务器是。

乘客安装过程中是否需要安装nginx?

我正在尝试为Nginx安装Passenger: $ gem install passenger $ passenger-install-nginx-module 在安装过程中,乘客希望编译和安装Nginx。 这是必要的步骤吗? 我检查了我的安装,发现我已经安装了Nginx的Passenger模块: appls:/www/redmine # zypper se passenger Loading repository data… Reading installed packages… S | Name | Summary | Type –+—————————+————————————————–+——– i | rubygem-passenger | Easy and robust Ruby web application deployment | package | rubygem-passenger-apache2 | Passenger apache module | package i | rubygem-passenger-nginx | Passenger […]

独angular兽在Debian 5上的安装错误

我在Debian 5上运行ruby1.9,并没有设法用rubygems安装“独angular兽”。 我得到这个错误,并不真正知道如何解决它。 你有任何想法可能的根源? > gem install unicorn Building native extensions. This could take a while… ERROR: Error installing unicorn: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9 extconf.rb checking for CLOCK_MONOTONIC in time.h… yes checking for clockid_t in time.h… yes checking for clock_gettime() in -lrt… yes checking for t_open() in -lnsl… no checking for […]

/ usr / bin / env:ruby1.8:没有这样的文件或目录

问题 尝试设置CI乔( https://github.com/defunkt/cijoe ),我得到以下错误: /usr/bin/env: ruby1.8: No such file or directory 我在做什么 CI乔作为万维网数据运行,我正在运行的命令是 RAILS_ENV=test bundle exec rake -s test 当我以www-data(sudo su www-data)的身份login时,执行相同的命令。 所以我想弄清楚什么可能是错的。 debugging输出 $ which ruby1.8 /usr/bin/ruby1.8 这个问题类似于: https://stackoverflow.com/questions/6126165/usr-bin-env-ruby-1-8-no-such-file-or

托pipeRuby on Rails应用程序

我是一名Ruby on Rails开发人员,我计划购买一个托pipe空间以发布我的Web应用程序(我正在开发一个小型社交networking)。 这是我第一次尝试部署一个Ruby on Rails应用程序,所以我不是这方面的专家。 我想在性能和价格之间find一个“妥协”。 我认为,现在共享服务器就足够(也许)我的需求(build议赞赏…)。 在本地我正在使用 Ruby on Rails 3.0.9 ruby1.9.2-P136 阿帕奇 Phusion乘客 MySQL的 所以托pipe服务器应该满足上述要求。 更多:在我的应用程序中,我使用回形针gem,所以另一个必要条件是图像魔术。 什么托pipe服务,你build议我的需求? 当我为RoR购买托pipe空间时,应该注意什么? 而且,最重要的是,你build议哪个托pipe服务? PS:如果你需要一些其他的信息只是问,我会更新的问题。

用apt-get安装最新的stable ruby​​(1.9.2 p290)

这是在debian服务器上。 但是这可能吗?

多个PassengerRoot?

你如何定义多个passengeroot – 我的gem是不同的,所以这样的事情: PassengerRuby /Users/david/.rvm/wrappers/ruby-1.9.2-p290@rpgweb/ruby PassengerRuby /Users/david/.rvm/wrappers/ruby-1.9.2-p290@eweds/ruby 显然,这不工作。 我只是把它放在httpd.conf中。 有没有什么办法,当它试图加载我的本地主机A,它会使用第一个gemset和本地主机B它将使用第二个gemset乘客? 谢谢。

在CentOS上编译Ruby 1.9.2的错误

所有。 我从官方网站http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz下载了ruby源代码。 但是当我自述文件告诉我时,我收到了一些编译错误: tar -xzf ruby-1.9.2-p290.tar.gz cd ruby-1.9.2-p290 ./configure make 它产生了: make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " enc make[1]: Entering directory `/home/robert/sources/ruby-1.9.2-p290' gcc -I. -I.ext/include/i686-linux -I./include -I. -D_FILE_OFFSET_BITS=64 -DONIG_ENC_REGISTER=rb_enc_register -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long -o enc/encdb.o -c ./enc/encdb.c o .ext/i686-linux/enc/encdb.so enc/encdb.o -L. […]

傀儡仪表板无法启动

所以情况就是这样。 我在CentOS 5.7 64位上运行Puppet,在puppet master上我也有puppet-dashboard,但是当我尝试启动它时,我看到以下内容: [root@puptest-master puppet-dashboard]# script/server -e production NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from ./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21. NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01. Gem::SourceIndex#initialize called from ./script/../config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100. NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will […]

在Debian生产服务器上安装ruby 1.9.2

我有一个问题在Debian上使用rvm安装ruby 1.9.2。 安装进行得很好,当我键入 rvm使用1.9.2 那么它说: 使用/usr/local/rvm/gems/ruby-1.9.2-p180 但是当我键入 ruby-v 我明白了 ruby1.8.7(2010-08-16 patchlevel 302)[x86_64-linux]