2 个版本
0.1.1 | 2022年11月29日 |
---|---|
0.1.0 | 2021年8月31日 |
#688 in 科学
每月 124 次下载
用于 birli
30KB
432 行
Rust AOFlagger
Rust 对 https://gitlab.com/aroffringa/aoflagger 的绑定
安装
先决条件
aoflagger_sys
本身只需要 AOFlagger
,版本 >= 3.0,但那需要许多依赖项。在 Ubuntu > 21.04 上,使用 apt install aoflagger-dev
即可,但对于特定于操作系统的说明,请查看 Linux 和 macOS CI 脚本和 Makefile.toml,因为这些是定期测试的。下面的说明可能更新频率较低,但文档更完善。
如果 AOFlagger
在非标准位置,可以将 AOFLAGGER_INCLUDE_DIR
和 AOFLAGGER_LIB
分别设置为包含和库目录,这允许 aoflagger_sys
找到正确的文件。
(Debian/Ubuntu) Linux 安装
# Prerequisites for rustup, cargo and cargo-make
sudo apt install -y gcc libssl-dev pkg-config curl unzip wget
# Run the Rustup install script, profile=default, toolchain=stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s -- -y
# Cargo make uses Makefile.toml to automate development tasks
cargo install --force cargo-make
# Use multiple cores when compiling C/C++ libraries
export MAKEFLAGS="-j $MAKEFLAGS"
# Install prerequisite C/C++ libraries
cargo make install_deps
# Ensure that rust can find the C/C++ libraries.
export LD_LIBRARY_PATH="/usr/local/lib/"
MacOS 安装
# Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Run the Rustup install script, profile=default, toolchain=stable
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s -- -y
# Cargo make uses Makefile.toml to automate development tasks
cargo install --force cargo-make
# Add the MWATelescope homebrew tap
brew tap mwaTelescope/tap
# Install prerequisite libraries
brew cask install casacore-data casacore aoflagger erfa
Windows 安装
不幸的是,大多数先决条件在 Windows 上不可用。然而,WSL 非常好。
依赖项
~0.5–2MB
~31K SLoC