我试图生成一个用户,但出现了这个错误,如果我给了一个rails s同样的错误出现,我不能做任何事情,我在gem中给了一个bundle update,一个bundle install,但是什么都没有改变。我在4.6.2的GEMFILE中将rails的版本改为5.0.1,并给出了一个bundle update。我想使用版本5,但我不知道如何更新,我看到一个教程说我可以这样做,所以我就这样做了,只是现在出现了这个错误。
root@ubuntu:~/Projeto-video-3# rails model User name document kind status:integer notes:tex
Ruby提出了我不懂的LoadErrors。当共享对象文件存在时,它会抱怨打开它。
irb(main):001:0> require 'openssl'
LoadError: libssl.so.1.0.0: cannot open shared object file: No such file or directory - /usr/lib/ruby/2.3.0/x86_64-linux/openssl.so
from /usr/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in
我已经运行了命令: 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
Mac用户,请参阅:
我使用linux (openSUSE 12.3),运行nokogiri -v show:
WARNING: Nokogiri was built against LibXML version 2.8.0, but dynamically loaded 2.9.0
# Nokogiri (1.6.0)
---
warnings:
- Nokogiri was built against LibXML version 2.8.0, but dynamically loaded 2.9.0
nokogiri: 1.6.0
ruby:
version: 2.0.0
p
我试图在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
按照的指示,我转到以下行:
rvm install 1.9.2
返回:
ruby-1.9.2-p0 - #fetching
ruby-1.9.2-p0 - #extracting ruby-1.9.2-p0 to
mv: cannot move `/tmp/rvm_src_18035/ruby-1.9.2-p0' to `': No such file or directory
~/.rvm/scripts/manage: line 1237: ruby-1.9.2-p0 - #extracted to : command not found
Running autocon
我试图在CentOS7上安装ruby1.8.6并成功完成,但是ruby无法加载openssl。
我的安装步骤如下。
从源代码安装openssl 0.9.8。
wget http://www.openssl.org/source/openssl-0.9.8zb.tar.gz
tar xzf openssl-0.9.8zb.tar.gz
cd openssl-0.9.8zb
./config --prefix=/usr/local shared
make && make install
openssl version
OpenSSL 0.9.8zb 6 Aug 2014
cd
从源
作为chef-client的一个要求,我正在尝试在OpenSUSE 12.1上安装yajl-ruby。到目前为止,它返回了以下消息:
linux:~ # gem install yajl-ruby
Building native extensions. This could take a while...
ERROR: Error installing yajl-ruby:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
creating Makefile
make
gc
我使用Rails 4.0.5,在我的.bash_profile中有这个
-s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
但我发现了一个错误:
The program 'rails' can be found in the following packages:
* ruby-railties-3.2
* ruby-railties-4.0
Try:
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/
我已经用Ruby1.9.2建立了RVM系统,据我所知,它运行得很好。
但是当我试图编译乘客apache2模块时
passenger-install-apache2-module
它将其编译为系统的1.8.7 ( ext/ruby文件夹包含ruby-1.8.7-x86_64-linux),当我启动apache时,乘客会抱怨:
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /usr/local/rvm/