0
我以前用ruby和rails下载了rvm,但是它提出了一个我无法解决的问题,所以我拿了宝石并在rvm中崩溃,但现在我要求安装它没有的红宝石,当我给它一个红宝石-v出现,已经安装,版本2.4.1,版本4.2.6轨道也是如此。我做的事?发生了什么?Rvm install ruby-2.4.1
rvm install ruby-2.4.1
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/16.04/x86_64/ruby-2.4.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..
Installing required packages: gawk, libyaml-dev, autoconf, libgdbm-dev, libncurses5-dev, automake, bison, libffi-dev....
Error running 'requirements_debian_libs_install gawk libyaml-dev autoconf libgdbm-dev libncurses5-dev automake bison libffi-dev',
showing last 15 lines of /usr/local/rvm/log/1497634607_ruby-2.4.1/package_install_gawk_libyaml-dev_autoconf_libgdbm-dev_libncurses5-dev_automake_bison_libffi-dev.log
autoconf-archive gnu-standards autoconf-doc bison-doc gawk-doc ncurses-doc
libyaml-doc
The following NEW packages will be installed:
autoconf automake bison gawk libbison-dev libffi-dev libgdbm-dev
libncurses5-dev libsigsegv2 libyaml-dev m4
0 upgraded, 11 newly installed, 0 to remove and 13 not upgraded.
Need to get 0 B/2,462 kB of archives.
After this operation, 9,047 kB of additional disk space will be used.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
++ return 100
++ return 100
Requirements installation failed with status: 100.
[email protected]:~# ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux-gnu]
[email protected]:~# rails -v
Rails 4.2.6
我解决了这个错误,我把Gemfile中的'宝石“OpenSSL的”,“2.0.4''但现在改变了错误, –
root @ ubuntu:〜/ teste#rails s =>引导WEBrick => Rails 4.2.6应用程序从http:// localhost:3000开始开发 =>运行'rails server -h' for更多启动选项 => Ctrl-C关闭服务器 /usr/lib/ruby/vendor_ruby/active_support/cor e_ext/numeric/conversions.rb:121:warning:constant :: Fixnum已弃用 /usr/lib/ruby/vendor_ruby/active_support/core_ext/numeric/conversions.rb:121:warning:constant :: Bignum已弃用 退出' –
/usr/lib/ruby/vendor_ruby/active_support/core_ext/numeric/conversions.rb:124:in中的块(2级):来自/ usr/lib的堆栈级别太深(SystemStackError) /ruby/vendor_ruby/active_support/core_ext/numeric/conversions.rb:131:in '...中的块(2级).../usr/local/lib/site_ruby中的4462级别... /2.4.0/rubygems/core_ext/kernel_require.rb:68:'require' from/root/teste/bin/spring:15:in'' from bin/rails:3:in'从bin/rails加载' :3:在'' –