#!/bin/sh
#
# NAME: Anaconda3
# VER: 2022.10
# PLAT: linux-64
# LINES: 601
# MD5: 99d75ec01f88bdbe69e8829301036b13
export OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
unset LD_LIBRARY_PATH
if ! echo "$0" | grep '\.sh$' > /dev/null; then
printf 'Please run using "bash" or "sh", but not "." or "source"\\n' >&2
return 1
fi
# Determine RUNNING_SHELL; if SHELL is non-zero use that.
if [ -n "$SHELL" ]; then
RUNNING_SHELL="$SHELL"
else
if [ "$(uname)" = "Darwin" ]; then
RUNNING_SHELL=/bin/bash
else
if [ -d /proc ] && [ -r /proc ] && [ -d /proc/$$ ] && [ -r /proc/$$ ] && [ -L /proc/$$/exe ] && [ -r /proc/$$/exe ]; then
RUNNING_SHELL=$(readlink /proc/$$/exe)
fi
if [ -z "$RUNNING_SHELL" ] || [ ! -f "$RUNNING_SHELL" ]; then
RUNNING_SHELL=$(ps -p $$ -o args= | sed 's|^-||')
case "$RUNNING_SHELL" in
*/*)
;;
default)
RUNNING_SHELL=$(which "$RUNNING_SHELL")
;;
esac
fi
fi
fi
# Some final fallback locations
if [ -z "$RUNNING_SHELL" ] || [ ! -f "$RUNNING_SHELL" ]; then
if [ -f /bin/bash ]; then
RUNNING_SHELL=/bin/bash
else
if [ -f /bin/sh ]; then
RUNNING_SHELL=/bin/sh
fi
fi
fi
if [ -z "$RUNNING_SHELL" ] || [ ! -f "$RUNNING_SHELL" ]; then
printf 'Unable to determine your shell. Please set the SHELL env. var and re-run\\n' >&2
exit 1
fi
THIS_DIR=$(DIRNAME=$(dirname "$0"); cd "$DIRNAME"; pwd)
THIS_FILE=$(basename "$0")
THIS_PATH="$THIS_DIR/$THIS_FILE"
PREFIX=$HOME/anaconda3
BATCH=0
FORCE=0
SKIP_SCRIPTS=0
TEST=0
REINSTALL=0
USAGE="
usage: $0 [options]
Installs Anaconda3 2022.10
-b run install in batch mode (without manual intervention),
it is expected the license terms are agreed upon
-f no error if install prefix already exists
-h print this help message and exit
-p PREFIX install prefix, defaults to $PREFIX, must not contain spaces.
-s skip running pre/post-link/install scripts
-u update an existing installation
-t run package tests after installation (may install conda-build)
"
if which getopt > /dev/null 2>&1; then
OPTS=$(getopt bfhp:sut "$*" 2>/dev/null)
if [ ! $? ]; then
printf "%s\\n" "$USAGE"
exit 2
fi
eval set -- "$OPTS"
while true; do
case "$1" in
-h)
printf "%s\\n" "$USAGE"
exit 2
;;
-b)
BATCH=1
shift
;;
-f)
FORCE=1
shift
;;
-p)
PREFIX="$2"
shift
shift
;;
-s)
SKIP_SCRIPTS=1
shift
;;
-u)
FORCE=1
shift
;;
-t)
TEST=1
shift
;;
--)
shift
break
;;
*)
printf "ERROR: did not recognize option '%s', please try -h\\n" "$1"
exit 1
;;
esac
done
else
while getopts "bfhp:sut" x; do
case "$x" in
h)
printf "%s\\n" "$USAGE"
exit 2
;;
b)
BATCH=1
;;
f)
FORCE=1
;;
p)
PREFIX="$OPTARG"
;;
s)
SKIP_SCRIPTS=1
;;
u)
FORCE=1
;;
t)
TEST=1
;;
?)
printf "ERROR: did not recognize option '%s', please try -h\\n" "$x"
exit 1
;;
esac
done
fi
determine_glibc () {
# first parameter is min version; default minimum version to current x86_64
minimum_glibc_version=${1:-"2.17"}
# ldd seems to be consistent in that the version is always at the end after the last space.
# check that system_glibc is set to a meaningful value, e.g., 2.12, 2.17, 2.31, ...
system_glibc=$(ldd --version 2> /dev/null | head -n1 | awk '$NF ~ /^[0-9]+\.[0-9]+$/ {print $NF}')
if [ -n "${system_glibc}" ]; then
if [ "$(printf "${minimum_glibc_version}\n${system_glibc}\n" | sort -V | head -n1)" != "${minimum_glibc_version}" ]; then
printf "WARNING:\\n"
printf " The installer is not compatible with the version of the Linux distribution\\n"
printf " installed on your system. The version of GLIBC is no longer supported.\\n"
printf " Found version ${system_glibc}, which is less than ${minimum_glibc_version}\\n"
printf "Aborting installation.\\n"
exit 2
fi
fi
}
if [ "$BATCH" = "0" ] # interactive mode
then
determine_glibc "2.17"
if [ "$(uname -m)" != "x86_64" ]; then
printf "WARNING:\\n"
printf " Your operating system appears not to be 64-bit, but you are trying to\\n"
printf " install a 64-bit version of Anaconda3.\\n"
printf " Are sure you want to continue the installation? [yes|no]\\n"
printf "[no] >>> "
read -r ans
if [ "$ans" != "yes" ] && [ "$ans" != "Yes" ] && [ "$ans" != "YES" ] && \
[ "$ans" != "y" ] && [ "$ans" != "Y" ]
then
printf "Aborting installation\\n"
exit 2
fi
fi
if [ "$(uname)" != "Linux" ]; then
printf "WARNING:\\n"
printf " Your operating system does not appear to be Linux, \\n"
printf " but you are trying to install a Linux version of Anaconda3.\\n"
printf " Are sure you want to continue the installation? [yes|no]\\n"
printf "[no] >>> "
read -r ans
if [ "$ans" != "yes" ] && [ "$ans" != "Yes" ] && [ "$ans" != "YES" ] && \
[ "$ans" != "y" ] && [ "$ans" != "Y" ]
then
printf "Aborting installation\\n"
exit 2
fi
fi
printf "\\n"
printf "Welcome to Anaconda3 2022.10\\n"
printf "\\n"
printf "In order to continue the installation process, please review the license\\n"
printf "agreement.\\n"
printf "Please, press ENTER to continue\\n"
printf ">>> "
read -r dummy
pager="cat"
if command -v "more" > /dev/null 2>&1; then
pager="more"
fi
"$pager" <<EOF
==================================================
End User License Agreement - Anaconda Distribution
==================================================
Copyright 2015-2022, Anaconda, Inc.
All rights reserved under the 3-clause BSD License:
This End User License Agreement (the "Agreement") is a legal agreement between you and Anaconda, Inc. ("Anaconda") and governs your use of Anaconda Distribution (which was formerly known as Anaconda Individual Edition).
Subject to the terms of this Agreement, Anaconda hereby grants you a non-exclusive, non-transferable license to:
* Install and use the Anaconda Distribution (which was formerly known as Anaconda Individual Edition),
* Modify and create derivative works of sample source code delivered in Anaconda Distribution from Anaconda's repository, and;
* Redistribute code files in source (if provided to you by Anaconda as source) and binary forms, with or without modification subject to the requirements set forth below, and;
Anaconda may, at its option, make available patches, workarounds or other updates to Anaconda Distribution. Unless the updates are provided with their separate governing terms, they are deemed part of Anaconda Distribution licensed to you as provided in this Agreement. This Agreement does not entitle you to any support for Anaconda Distribution.
A
糖醋锦鲤
- 粉丝: 4
- 资源: 23
最新资源
- 嵌塞的CH32无人机飞控固件.zip
- 全国大学生电子设计竟赛四轴无人机组摄像头寻线追小车检测直角点完整及Light飞控推荐教程.zip
- 四轴无人机飞控软件层,需要底层支持,所有的调用均在时间表任务中完成(单位:毫秒),每一个.c文件中的.zip
- 实现键盘控制基于px4的无人机飞行.zip
- 四轴飞行器或四轴飞行器无人机在个人和专业应用领域都变得越来越热门。它易于操控,并广泛应用于各个领域,.zip
- 无人机、地面机器人外设供电模块。无人机或地面机器人上常常需要搭载miniPC或者其他外设,往往需要多.zip
- 体积超小的四轴无人机开源飞控。Editor_ VSCode, Compiler_ arm-none-.zip
- comsol模型案例该模型可以用来研究平板受液体冲击、气泡在液体中的运动、液滴对平板的亲水疏水分析等方向 本案例描述了油液两相溶液中,一个油泡再水中不断上升最后撞击平板 在案例中求解了油液两相流场
- 通过FIFO实现不同客户端的同步数据接收,如模拟无人机的图像和飞控数据.zip
- 无人机飞行定高控制.zip
- 项目以 STM32F411 作为飞行器主控芯片,实现一款四轴旋翼无人机.zip
- 无人机飞行管控平台.zip
- 小型无人机飞行控制仿真.zip
- 一个控制无人机(UAV)飞行的APP,可实现近地空遥感、巡田、处方图、变量植保.zip
- 星璇无人机飞控 持续开发中_.zip
- 这个仓库用于CAIA实验室的无人机远程飞行控制.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈