質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

2回答

2669閲覧

$ brew install rbenv が出来ない

oyatsu8

総合スコア97

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2017/06/14 16:58

編集2017/06/15 09:44

rubyもターミナルもあまり使い慣れていない(非エンジニア)ものです。

Mac osx.8.5でruby on railsをインストールしたいのですが、
手順等をよみ、homebrew を使い

http://media.tech-salon.com/ruby-%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB-mac/

$ brew install rbenv

を実行すると、下記のエラーが出ます。

Error: Permission denied - /Users/<usrname>/Library/Logs/Homebrew/openssl/00.options.out

下記のページを見て、

https://github.com/caskroom/homebrew-cask/issues/2101

sudo chown -R <username> /Users/<username>/Library/Logs/Homebrew/openssl/00.options.out

というのも実行してみましたが、状態は変わりませんでした。

アドバイス頂けたら幸いです

追記:brew doctora を実行すると次のように出ます
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: The system curl on 10.8 and below is often incapable of supporting
modern secure connections & will fail on fetching formulae.

We recommend you:
brew install curl

Warning: "config" scripts exist outside your system or Homebrew directories.
./configure scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/Users/<usrname>/anaconda/bin/curl-config
/Users/<usrname>/anaconda/bin/freetype-config
/Users/<usrname>/anaconda/bin/libdynd-config
/Users/<usrname>/anaconda/bin/libpng-config
/Users/<usrname>/anaconda/bin/libpng16-config
/Users/<usrname>/anaconda/bin/python3-config
/Users/<usrname>/anaconda/bin/python3.5-config
/Users/<usrname>/anaconda/bin/python3.5m-config
/Users/<usrname>/anaconda/bin/xml2-config
/Users/<usrname>/anaconda/bin/xslt-config
/Library/Frameworks/GDAL.framework/Programs/gdal-config
/opt/ImageMagick/bin/Magick++-config
/opt/ImageMagick/bin/Magick-config
/opt/ImageMagick/bin/MagickCore-config
/opt/ImageMagick/bin/MagickWand-config
/opt/ImageMagick/bin/Wand-config

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run brew link on these:
cloog

Warning: You are using macOS 10.8.
We (and Apple) do not provide support for this old version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Warning: Some installed formula are missing dependencies.
You should brew install the missing dependencies:
brew install isl@0.12

Run brew missing for more details.
Kawamura-no-MacBook-Air:~ <usrname>$

自己解決:
よく読んでみたら下記のような記述があり、

Warning: The system curl on 10.8 and below is often incapable of supporting
modern secure connections & will fail on fetching formulae.

We recommend you:
brew install curl

brew install curl
をしてcurlを入れたところ、ちゃんとインストールできました。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

gouf

2017/06/14 19:03

chown -R を、もうすこし上の階層... `sudo chown -R <username> /Users/<username>/Library/Logs` と実行した場合にもpermission error は発生しますか?
gouf

2017/06/14 19:08

rbenv インストールをしようとして、エラーでコマンドが中断され、続行できないのですか?(続行できているのであれば 軽微なエラーとして無視することも出来ると思います)
oyatsu8

2017/06/15 02:53

回答をありがとうございます、エラーでコマンドが中断され、続行できないです。Error: Permission denied - /Users/<usrname>/Library/Logs/Homebrew/openssl/00.options.out のようなエラーが出てしまいます
oyatsu8

2017/06/15 04:26

curl を使えるようにしたら解決しました!ありがとうございます。ちなみにベストアンサーにしたいのですが選べないので、回答のところに書いていただけないかと、、
gouf

2017/06/15 09:24

解決方法をまとめ、自己回答し解決済みに設定するのが良いのではないでしょうか
guest

回答2

0

ベストアンサー

brew doctor ですが、とくに困ったことが、エラーで続行できない、といったことがなければ あまり出番はないように思います

Warning: The system curl on 10.8 and below is often incapable of supporting
modern secure connections & will fail on fetching formulae.

We recommend you:
brew install curl

しかし、メッセージの通り、システムに最初からあるcurl コマンドよりは、 brew install curl で扱える最新版のコマンドのほうがよさそうです

投稿2017/06/15 09:08

gouf

総合スコア2321

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

oyatsu8

2017/06/15 09:45

ありがとうございます 解決しました!
guest

0

$sudo brew install rbenv

は試して見ましたか?

投稿2017/06/15 01:20

hiyashikyuri

総合スコア388

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

oyatsu8

2017/06/15 04:24

回答ありがとうございます。試したのですができませんでした
oyatsu8

2017/06/15 09:46

curlをインストールしてから試したところ、上記のコマンドも出来ました。ありがとうございます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問