You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I encountered an issue when using the lamp.sh script to install the LAMP stack on an ARM architecture server (e.g., aarch64). The script does not account for ARM architecture, and instead, it downloads the x86 version of MySQL, which leads to installation failure on ARM-based servers.
Here is the relevant section of the script responsible for downloading MySQL:
# Install mysql serverinstall_mysqld() {
common_install
is_64bit && sys_bit=x86_64 || sys_bit=i686
mysql_ver=$(echo ${mysql}| sed 's/[^0-9.]//g'| cut -d. -f1-2)cd${cur_dir}/software/
_info "Downloading and Extracting MySQL files..."
mysql_filename="${mysql}-linux-glibc2.12-${sys_bit}"if [ "${mysql_ver}"=="8.0" ];then
mysql_filename_url="https://cdn.mysql.com/Downloads/MySQL-${mysql_ver}/${mysql_filename}.tar.xz"
download_file "${mysql_filename}.tar.xz""${mysql_filename_url}"
tar Jxf ${mysql_filename}.tar.xz
else
mysql_filename_url="https://cdn.mysql.com/Downloads/MySQL-${mysql_ver}/${mysql_filename}.tar.gz"
download_file "${mysql_filename}.tar.gz""${mysql_filename_url}"
tar zxf ${mysql_filename}.tar.gz
fi
_info "Moving MySQL files..."
mv ${mysql_filename}/*${mysql_location}
config_mysql ${mysql_ver}
add_to_env "${mysql_location}"
}
Since the script assumes only x86 architecture, the MySQL installation fails on ARM systems. Here is the error message I encountered:
zsh: exec format error: mysql
Would it be possible to add support for ARM architecture in the script?
Thank you!
The text was updated successfully, but these errors were encountered:
Hi, I encountered an issue when using the
lamp.sh
script to install the LAMP stack on an ARM architecture server (e.g., aarch64). The script does not account for ARM architecture, and instead, it downloads the x86 version of MySQL, which leads to installation failure on ARM-based servers.Here is the relevant section of the script responsible for downloading MySQL:
Since the script assumes only x86 architecture, the MySQL installation fails on ARM systems. Here is the error message I encountered:
Would it be possible to add support for ARM architecture in the script?
Thank you!
The text was updated successfully, but these errors were encountered: