以前、railsinstaller.org のパッケージ インストーラーを使用して、Mac OS X システムに Rails をインストールしました。奇妙な問題は常にありますが、大きな問題はありません。完全に削除してやり直すことにしましたが、さらに問題が発生しています。
Git、Homebrew、Ruby、およびその他の推奨されるインストールを完全に削除して、最初からやり直す価値はありますか?
ターミナルに入力するときに発生する問題は次のとおりです。
$ rvm reinstall 1.9.3
device-3ebf56 local (master)*: brew doctor
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:
/opt/sm/pkg/active/bin/curl-config
/opt/sm/pkg/active/bin/ncurses5-config
/opt/sm/pkg/active/bin/ncursesw5-config
/opt/sm/pkg/active/bin/pkg-config
/opt/sm/pkg/active/bin/xml2-config
/opt/sm/pkg/active/bin/xslt-config
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse_i32.la
/usr/local/lib/libosxfuse_i64.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/osxfuse.pc
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
clusterdb
createdb
createlang
createuser
dropdb
droplang
dropuser
ecpg
git
git-cvsserver
git-receive-pack
git-shell
git-upload-archive
git-upload-pack
gitk
pg_basebackup
pg_config
pg_dump
pg_dumpall
pg_restore
pg_upgrade
psql
reindexdb
vacuumdb
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
device-3ebf56 local (master)*: echo export PATH="/usr/local/bin:$PATH" >> ~/.basdevice-3ebf56 local (master)*: echo export PATH="/usr/local/bin:$PATH" >> ~/.bash_profile
編集:
お二方、ご回答ありがとうございます。
何をしているかが自分もわからない。
自作コードの削除を実行しようとしたところ、次のエラーが発生しました。アンインストールしたと思って再インストールしようとしたのですが、まだあると言われたので再インストールしてみました。これが理にかなっていることを願っています:
Last login: Fri Sep 27 18:03:54 on ttys000
-bash: __rvm_add_to_path: command not found
env: node: No such file or directory
device-3ebf56 ~: ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"It appears Homebrew is already installed. If your intent is to reinstall you
should do the following before running this installer again:
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
device-3ebf56 ~:
device-3ebf56 ~:
device-3ebf56 ~: rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
-bash: brew: command not found
device-3ebf56 ~: