nodejs、ruby、gem、webpack都安装了,用过好几种语句,sass还是装不上,提示如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | Tom@Tom-PC MINGW64 ~ /Desktop $ ssh root@101.132.140.8 root@101.132.140.8's password: Last login: Mon Oct 9 22:19:32 2017 from 124.74.107.114 Welcome to Alibaba Cloud Elastic Compute Service ! - bash : unse: command not found - bash : rt: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ ~] # cd /usr/local/ [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # gem -v 1.3.7 [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # webpack -v 2.6.1 [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sudo gem install sass@3.4.24 ERROR: Could not find a valid gem 'sass@3.4.24' (>= 0) in any repository [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sass -v - bash : sass: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sudo su -c "gem install sass" Building native extensions. This could take a while ... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby .h Gem files will remain installed in /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 for in spection. Results logged to /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 /ext/ffi_c/gem_make .out [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sass -v - bash : sass: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sudo gem install sass --no-user-install Building native extensions. This could take a while ... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby .h Gem files will remain installed in /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 for in spection. Results logged to /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 /ext/ffi_c/gem_make .out [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sass -v - bash : sass: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sudo yum install rubygems Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile Package rubygems-1.3.7-5.el6.noarch already installed and latest version Nothing to do [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sass - bash : sass: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sudo gem install sass Building native extensions. This could take a while ... ERROR: Error installing sass: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby .h Gem files will remain installed in /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 for in spection. Results logged to /usr/lib/ruby/gems/1 .8 /gems/ffi-1 .9.18 /ext/ffi_c/gem_make .out [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # sass - bash : sass: command not found [root@iZuf6c3lh54r8qj8l3o6zlZ local ] # |