0

我之前使用 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 ~:
4

0 回答 0