terminal - zsh : command not found: apt-get

标签 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,但我不确定如何使用它。

最佳答案

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

关于terminal - zsh : command not found: apt-get,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9642599/

相关文章:

android-studio - 未找到 flutter 命令

node.js - 如何执行 "sudo nvm"?

installation - apt-get 损坏并且无法安装任何东西

c++ - 使用 Qt (QProcess) 运行 apt-get

c - 如何检测用户输入是 while 循环中的 [ Control ] + [ D ]

unix - 永恒颜色 : Unknown terminal type

xcode - Xcode 4.3.2在构建时崩溃

macos - 在 OS X 中如何等待应用程序关闭?

python - Eclipse 的 Mercurial 插件找不到 Python——如何修复?

linux - 无法安装 Java 6 和安装 7