2024-09-11

在 Mageia 9 上安装 ASDF

在 mageia 9 上安装 asdf

今天我们要在 Mageia 9 上安装 ASDF。接下来的步骤是将插件安装到 PHP 和 Node.js。

  1. 要在版本 0.14.1 上安装 ASDF,我使用了 Git + ZSH 版本:

c++olor:#f60; text-decoration:underline;’ href=”https://www.php.cn/zt/15841.html” target=”_blank”>git 克隆 https://github.com/asdf-vm/asdf.git ~/.asdf –branch v0.14.1

回声’。 “$HOME/.asdf/asdf.sh”‘ >> ~/.zshrc

echo ‘fpath=(${ASDF_DIR}/completions $fpath)’ >> ~/.zshrc

echo ‘autoload -Uz compinit && compinit’ >> ~/.zshrc

  1. 添加 Node.js 插件

sudo dnf install gnupg2 curl gawk

asdf插件添加nodejs https://github.com/asdf-vm/asdf-nodejs.git

  1. 添加 PHP 插件

sudo dnf install autoconf bison re2c libxml2-devel sqlite3-devel libgd-devel gcc-c++ lib64oniguruma-devel libpqxx-devel readline-devel libzip-devel

asdf 插件-add php https://github.com/asdf-community/asdf-php.git

完成,安装了 PHP 和 Node.js 的 ASDF。

以上就是在 Mageia 9 上安装 ASDF的详细内容,更多请关注php中文网其它相关文章!

https://www.php.cn/faq/995947.html

发表回复

Your email address will not be published. Required fields are marked *