Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以增加对arm服务器的支持吗? #56

Open
hubin92 opened this issue Feb 20, 2022 · 1 comment
Open

可以增加对arm服务器的支持吗? #56

hubin92 opened this issue Feb 20, 2022 · 1 comment

Comments

@hubin92
Copy link

hubin92 commented Feb 20, 2022

No description provided.

@longware
Copy link

longware commented Apr 6, 2023

我也发现arm的bug了,此函数不准。

Check OS bit

check_os_bit(){
ARCHS=""
if [[ getconf WORD_BIT = '32' && getconf LONG_BIT = '64' ]] ; then
Is_64bit='y'
ARCHS="amd64"
else
Is_64bit='n'
ARCHS="386"
fi
}

----------以下是arm的环境--------------
ubuntu@instance-20220415-1349:$ getconf WORD_BIT
32
ubuntu@instance-20220415-1349:
$ getconf LONG_BIT
64
ubuntu@instance-20220415-1349:$ arch
aarch64
ubuntu@instance-20220415-1349:
$
ubuntu@instance-20220415-1349:$ uname -a
Linux instance-20220415-1349 5.13.0-1036-oracle #43
20.04.1-Ubuntu SMP Tue Jun 14 01:06:54 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@instance-20220415-1349:~$ more /etc/issue
Ubuntu 20.04.4 LTS \n \l

ubuntu@instance-20220415-1349:~$ more /etc/*-release
::::::::::::::
/etc/lsb-release
::::::::::::::
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
::::::::::::::
/etc/os-release
::::::::::::::
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants