我在railcast.com上的310铁路广播之后安装了ruby on rails。现在,我可以运行并创建一个新的rails,并使用rails s运行它。
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
这里是ruby版
ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux]
如果我执行rails -v,我会得到如下结果
The program
为了在RPM系统(OS基于CentOS)上安装Ruby1.9.2,我再次尝试使用RVM。
因此,一旦我安装了它,我就会尝试使用它:
[root@quackwall ~]# rvm use 1.9.2
Using /usr/local/rvm/gems/ruby-1.9.2-p136
[root@quackwall ~]# ruby
bash: ruby: command not found
[root@quackwall ~]# which ruby
/usr/bin/which: no ruby in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/u
我已经运行了命令: gem install bcrypt '3.1.7‘。
不幸的是,gem无法安装。相反,我得到了以下输出:
Fetching: bcrypt-3.1.7.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing bcrypt-ruby:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-head/bin/rub
当我运行傀儡客户端命令时,得到了500个错误。我在傀儡主服务器中找到了调试日志: (nginx版本:1.8.0,用客运安装-nginx-模块安装乘客)
来自应用程序的消息:启动web应用程序时发生了错误。它公布了一个Unix域套接字,其所有者与预期不同(应该是UID 0,但实际UID为52)。
乘客错误html原始输出:
An error occurred while starting the web application. It advertised a Unix domain socket that has a different owner than expected (should
当我推到Heroku时,我会得到以下错误:
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: Your app was upgraded to bundler 1.13.6.
remote: Previously you had a successful deploy with bundler 1.11.2.
remote:
remote: If you
rails@george:/srv/fsg_distro$ sudo passenger-status
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/ext/ruby/ruby-1.8.7-x86_64-linux
# cd /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/
我试图在Linux啤酒 (基于Arch的发行版)上安装Garuda Linux,但是安装脚本失败了,出现了以下错误:
==> Pouring portable-ruby-2.6.8.x86_64_linux.bottle.tar.gz
Error: Failed to install ruby 2.6.8!
Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6.8!
If there's no Homebrew Portable Ruby available for you