Articles of ruby

无法安装Heroku使用RVM轻触gem

我试图在我的rvm上安装水龙头gem,但得到了以下结果: larson:~ larson$ rvm gem install taps Successfully installed taps-0.3.23 1 gem installed Installing ri documentation for taps-0.3.23… Installing RDoc documentation for taps-0.3.23… larson:~ larson$ ruby -S gem which taps ERROR: Can't find ruby library file or shared library taps 奇怪的是,水龙头仍然出现在我的gem名单。 这个错误是什么意思,它会阻止我使用Heroku的db:push命令?

rvm无法安装任何ruby

在任何版本的ruby安装过程中,RVM都会给我一个错误。 举个例子,ree-1.8.7-head rasfast@rasfast-home:~$ rvm install ree-1.8.7-head Installing Ruby from source to: /home/rasfast/.rvm/rubies/ree-1.8.7-head, this may take a while depending on your cpu(s)… ree-1.8.7-head – #fetching Cloning from git://github.com/FooBarWidget/rubyenterpriseedition187-330, this may take a while depending on your connection… Cloning into /home/rasfast/.rvm/repos/ree-1.8.7-head… remote: Counting objects: 3307, done. remote: Compressing objects: 100% (2900/2900), done. remote: Total 3307 (delta 435), […]

在debian上安装ruby,apt-get由于依赖关系失败而无法工作,我该如何解决?

我从源代码安装了ruby,并且所有与ruby有关的东西似乎都能正常工作。 我不能安装任何依赖于使用apt的ruby,因为我不想要安装2个ruby版本。 在使用–ignore-depends从dpkg安装mcollective之后,apt-get完全停止工作。 root@puppet:~# apt-get install ganglia-monitor Reading package lists… Done Building dependency tree Reading state information… Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: ganglia-monitor : Depends: libconfuse0 (>= 2.5) but it is not going to be installed Depends: libganglia1 (= 3.1.7-1+b1) but it […]

ruby或rvmruby在生产networking服务器

目前我们的生产服务器运行在系统ruby。 乘客处理我们的轨道应用程序。 我应该移动到使用rvm处理我的整个ruby的东西吗? 在生产环境中rvm能给我什么好处? 请指教。 我是处理服务器的初学者。 我需要使用乘客在同一个大型服务器框中运行一个或多个应用程序。 如果我通过rvm使用乘客,我应该为每个安装的ruby安装乘客gem吗?

如何确定是否ftp / smtp启动并使用脚本运行?

熟悉这些正常运行时监视服务如何执行检查,如果您的smtp或ftp服务器正在运行,我怎么能使用python / ruby​​自己做这个?

启动Rails服务器时出现语法错误,RVM可能是问题?

当我第一次尝试在生产环境中启动Rails应用程序时出现以下错误: /var/www/railsapp/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end …sion_store :cookie_store, key: '_intranet_session' ^ 我已经读过,这可能是目前的ruby版本的一个问题,所以我安装了RVM并更新了正在运行的版本。 **root@rails ~#** ruby -v ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02 **root@rails ~#** rvm use 1.9.3 Using /usr/local/rvm/gems/ruby-1.9.3-p125 **root@rails ~#** ruby -v ruby 1.9.3p125 (2012-02-16 revision 34643) [i686-linux] 我注意到,Ruby的生产版本是1.9.3p125,但开发版本是1.9.3p0,不知道是否重要。 然后我再次检查了Rails版本是正确的: **root@rails www/railsapp#** rails -v Rails 3.1.4 […]

mysql2 gem不能在CentOS 5.3上安装

我试图得到在centOS5.3上安装的gem mysql2,但导致与mysql55冲突。 有时(并不总是)我可以安装mysql55和mysql55服务器,但是之后我需要安装mysql-devel来获取gem mysql2安装中缺less的mysql.h文件。 但mysql-devel冲突到mysql55并且安装失败。 有谁知道是否有可能获得以下环境? rails 3.2 ruby​​ 1.9.3 mysql 5.5 apache + passenger 在CentOS5.3最终机器上? 如果不是哪一个你推荐我? 这是我的其他可能性: CentOS 5.5 Debian 5.0.6 openSUSE 11.2 Ubuntu 10.04.1 Fedora 12 谢谢。

用于HTTP和HTTPS的精简configuration文件

我试图在瘦上configurationHTTP和HTTPS。 我有这个configuration文件: environment: production address: 0.0.0.0 port: 9292 chdir: /home/[user]/[mySinatraAPP] pid: tmp/thin.pid rackup: config.ru log: server.log max_conns: 1024 timeout: 30 max_persistent_conns: 512 daemonize: true 我激活ssl选项: thin -C thin.yaml start –ssl 但它只激活HTTPS而不是HTTP。 任何想法我可以遵循的path?

在Passenger下接pipeCPU的机架进程

我有一个Spree网站运行下面的堆栈: Nginx 1.0.8 乘客3.0.9 Ruby 1.9.2-p290 机架1.3.6 Rails 3.1.4 施普雷河0.70.5 我最近从Spree 0.70.3升级,这也使Deface从0.7.x升级到0.8.0。 从那以后事情就非常不稳定了。 最近我们已经看到了一些CPU占用过程 ,这些过程在服务器上加载负载,并将整个过程扼杀在一起。 他们是Rack进程,看起来Passenger正在启动它们; 他们由site-runner用户拥有,该用户是拥有应用程序代码的非特许用户。 (Passenger自动运行站点代码作为拥有它的用户。)如果我重新启动Nginx并终止失控进程,它会有一段时间的帮助,但最终类似的进程会返回并重新陷入困境。 ETA:我现在正在查看passenger-status和passenger-memory-stats passenger-status ,这表明这些是Passenger的申请stream程。 如果它逃跑或挂起,我的应用程序必须有一个问题。 什么是我最好的select找出这是挂在哪里?

Rubyinput您的密码来创build应用程序

我刚刚在CentOS服务器上的rails上安装了ruby,使用directadmin :http: //blog.ilwilliams.net/installing-rails-3-with-apache-on-centos/ 我现在在一个非特权用户帐户(没有sudo),并试图创build一个应用程序使用rails new personal 但是,这下面做 create vendor/assets/stylesheets create vendor/assets/stylesheets/.gitkeep create vendor/plugins create vendor/plugins/.gitkeep run bundle install Enter your password to install the bundled RubyGems to your system: Sorry, try again. Enter your password to install the bundled RubyGems to your system: joe is not in the sudoers file. This incident will be reported. […]