2017-06-16 11 views
0

ルビーとレールでrvmをダウンロードしていましたが、解決できないという問題がありましたので、rvmで宝石を爆破しましたが、インストールしていないルビーをインストールすると、Ruby -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 
+0

私は「私はgemfile '宝石「のopenssl」に入れて、このエラーを解決2.0.4''が、今エラーを変更しました。 –

+0

root @ ubuntu:〜/ teste#rails s =>起動WEBrick => http:// localhost:3000でRails 4.2.6アプリケーションの開発を開始しました => 'rails server -h'をその他の起動オプション =>サーバをシャットダウンするためのCtrl-C /usr/lib/ruby​​/vendor_ruby/active_support/cor e_ext/numeric/conversions.rb:121:警告:定数:: Fixnumは非推奨になりました /usr/lib/ruby/vendor_ruby/active_support/core_ext/numeric/conversions.rb:121:警告:定数:: Bignumは非推奨になりました 終了' –

+0

/usr/lib/ruby/vendor_ruby/active_support/core_ext/numeric/conversions.rb:124:in 内のブロック(2レベル):スタックレベルが深すぎる(SystemStackError)from/usr/lib /usr/vendor_ruby/active_support/core_ext/numeric/conversions.rb:131:in/ 内のブロック(2レベル)... 4462レベル... /usr/local/lib/site_ruby// root/teste/bin/spring:15から ' ' bin/railsから:3:' ' load ' bin/railsから:3:'

'に' –

答えて

0

私はこのように、レールのバージョンを変更することで、問題をスカート:

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 
gem 'rails', github: 'rails/rails', branch: '4-2-stable' 
関連する問題