Arch Linux を使用し、Ruby をインストールしています (これはバージョン 2.0.0 です)。
Ruby をインストールすると、以下を追加する必要があると表示されました。
$(ruby -rubygems -e "puts Gem.user_dir")/bin
私のパスに、.bashrcに追加しました
レールまたはその他の gem を gem インストールしようとすると、エラーが発生します: gem ネイティブ拡張機能をビルドできませんでした。これは完全なエラーです:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/lib/ruby/gems/2.0.0 directory.
[alexander@localhost ~]$ sudo gem install rails --no-user-install
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
creating Makefile
make "DESTDIR="
sh: make: command not found
Gem files will remain installed in /usr/lib/ruby/gems/2.0.0/gems/atomic-1.1.10 for inspection.
このエラーを調べると、人々は ruby-dev パッケージをインストールすることでこのエラーを解決していることがわかりますが、これは Arch Linux には存在しません。私が試すことができる他のオプションはありますか?
前もって感謝します!