macOS编译hadoop(3.2.4)的最佳实践

macOS版本:Catalina 10.15.7

编译的意义在于可以跑单元测试、学习框架、二次开发等等

参考内容:https://github.com/apache/hadoop/blob/branch-3.2.4/BUILDING.txt

hadoop

Install Xcode Command Line Tools

xcode-select --install

Install tools

brew install autoconf automake cmake wget

Install native libraries, only openssl is required to compile native code,
you may optionally install zlib, lz4, etc.

brew install openssl

Protocol Buffers 2.5.0 (required), since 2.5.0 is no longer in Homebrew,
we need to compile it from source

wget https://github.com/protocolbuffers/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.gz

tar zxvf protobuf-2.5.0.tar.gz

cd protobuf-2.5.0

./configure

make

make check

make install

protoc --version

jdk

直接下载并安装(https://www.oracle.com/java/technolo

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目前尚未发布 Emacs 30,因此还没有 Emacs 30 的源代码可供下载和编译。不过,如果 Emacs 30 发布后你需要在 macOS编译它,你可以尝试按照以下步骤进行: 1. 安装 Xcode:在 macOS编译 Emacs 需要安装 Xcode 开发工具。你可以在 App Store 上下载并安装 Xcode。 2. 安装 Homebrew:Homebrew 是一个非常流行的 macOS 包管理器,你可以使用它来安装必要的依赖项。你可以在终端中输入以下命令来安装 Homebrew: ``` /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` 3. 安装依赖项:在终端中输入以下命令来安装 Emacs 编译所需的依赖项: ``` brew install autoconf automake texinfo gtk+3 gnutls libxml2 librsvg imagemagick@6 ``` 4. 下载 Emacs 30 源代码:当 Emacs 30 发布后,你可以从 Emacs 官网或者 GitHub 上下载 Emacs 30 的源代码。 5. 配置和编译 Emacs:在终端中进入 Emacs 30 源代码目录,并执行以下命令来配置和编译 Emacs: ``` ./configure --with-native-compilation --with-modules --with-harfbuzz=no --with-cairo=no --with-json=no --with-xwidgets --with-imagemagick --with-jpeg --with-png --with-rsvg --with-tiff --with-xml2 --with-gnutls --with-gpm=no --without-gconf --without-gsettings --without-makeinfo --without-pop --without-mailutils make -j4 ``` 这将会进行 Emacs 的配置和编译。这可能需要一些时间,具体时间取决于你的机器性能。 6. 安装 Emacs:在终端中输入以下命令来安装 Emacs: ``` sudo make install ``` 这将会将 Emacs 安装到 /usr/local/bin 目录下。 完成以上步骤后,你就可以在终端中输入 emacs 命令来启动 Emacs 30 了。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值