En essayant d'installer zsteg sur le serveur Ubuntu (Linux 4.8.0-49-generic x86_64
), je rencontre l'erreur suivante:
$ Sudo gem install zsteg
Building native extensions. This could take a while...
ERROR: Error installing zsteg:
ERROR: Failed to build gem native extension.
current directory: /var/lib/gems/2.3.0/gems/Rainbow-2.2.2/ext
/usr/bin/Ruby2.3 mkrf_conf.rb
current directory: /var/lib/gems/2.3.0/gems/Rainbow-2.2.2/ext
/usr/bin/Ruby2.3 -rubygems /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake RUBYARCHDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/Rainbow-2.2.2 RUBYLIBDIR=/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/Rainbow-2.2.2
/usr/bin/Ruby2.3: No such file or directory -- /usr/share/rubygems-integration/all/gems/rake-10.5.0/bin/rake (LoadError)
rake failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.3.0/gems/Rainbow-2.2.2 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/Rainbow-2.2.2/gem_make.out
Ruby2.3, Ruby-dev et rake sont installés
et aussi essayé:
gem update --system
Si je n'utilise pas Sudo
, j'obtiens: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.3.0 directory.
S'il vous plaît aider.
Je viens de réinstaller rake et zsteg et cela a fonctionné pour moi.
update --system
Sudo gem install rake
Sudo gem install zsteg