zsh:找不到命令:apt-get

时间:2012-03-10 00:03:01

标签: terminal osx-lion apt-get

要解决以下错误Cucumber Rails 3.1 uninitialized constant ActionController::Dispatcher (NameError),我正在关注此帖子 - > http://www.ruby-on-rails-outsourcing.com/articles/2011/01/07/getting-started-with-rvm-and-rails/

在我的终端上运行此命令

sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev

我收到此错误:zsh: command not found: apt-get。很少有帖子建议使用Macports,但我不知道如何使用它。

1 个答案:

答案 0 :(得分:0)

apt-get是一个Linux包管理器。在OS X上,您需要使用Mac特定的东西,如Macports或Homebrew。我建议您尝试Homebrew